Skip to content

Commit

Permalink
ALSA: firewire-lib: use inlune function to calculate frame bytes
Browse files Browse the repository at this point in the history
Calculating frame bytes can be replaced with inline function in
include/sound/pcm.h.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Sakamoto authored and Takashi Iwai committed Sep 26, 2013
1 parent 976b6c0 commit e84841f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/firewire/amdtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ static void amdtp_write_s32(struct amdtp_out_stream *s,

channels = s->pcm_channels;
src = (void *)runtime->dma_area +
s->pcm_buffer_pointer * (runtime->frame_bits / 8);
frames_to_bytes(runtime, s->pcm_buffer_pointer);
remaining_frames = runtime->buffer_size - s->pcm_buffer_pointer;
frame_step = s->data_block_quadlets - channels;

Expand All @@ -294,7 +294,7 @@ static void amdtp_write_s16(struct amdtp_out_stream *s,

channels = s->pcm_channels;
src = (void *)runtime->dma_area +
s->pcm_buffer_pointer * (runtime->frame_bits / 8);
frames_to_bytes(runtime, s->pcm_buffer_pointer);
remaining_frames = runtime->buffer_size - s->pcm_buffer_pointer;
frame_step = s->data_block_quadlets - channels;

Expand Down

0 comments on commit e84841f

Please sign in to comment.