[alsa-devel] [PATCH 1/1] ALSA: firewire-lib: use inlune function to calculate frame bytes
Takashi Iwai
tiwai at suse.de
Thu Sep 26 10:38:15 CEST 2013
At Sat, 14 Sep 2013 00:35:47 +0900,
Takashi Sakamoto wrote:
>
> Calculating frame bytes can be replaced with inline function in
> include/sound/pcm.h.
>
> Signed-off-by: Takashi Sakamoto <o-takashi at sakamocchi.jp>
Thanks, applied now.
Takashi "there can be only one" Iwai
> ---
> sound/firewire/amdtp.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/sound/firewire/amdtp.c b/sound/firewire/amdtp.c
> index ea995af..4b08b25 100644
> --- a/sound/firewire/amdtp.c
> +++ b/sound/firewire/amdtp.c
> @@ -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;
>
> @@ -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;
>
> --
> 1.8.1.2
>
More information about the Alsa-devel
mailing list