mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
ALSA: firewire-lib: use inlune function to calculate frame bytes
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>
This commit is contained in:
parent
976b6c064a
commit
e84841f9ba
1 changed files with 2 additions and 2 deletions
|
@ -268,7 +268,7 @@ static void amdtp_write_s32(struct amdtp_out_stream *s,
|
||||||
|
|
||||||
channels = s->pcm_channels;
|
channels = s->pcm_channels;
|
||||||
src = (void *)runtime->dma_area +
|
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;
|
remaining_frames = runtime->buffer_size - s->pcm_buffer_pointer;
|
||||||
frame_step = s->data_block_quadlets - channels;
|
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;
|
channels = s->pcm_channels;
|
||||||
src = (void *)runtime->dma_area +
|
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;
|
remaining_frames = runtime->buffer_size - s->pcm_buffer_pointer;
|
||||||
frame_step = s->data_block_quadlets - channels;
|
frame_step = s->data_block_quadlets - channels;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue