aboutsummaryrefslogtreecommitdiffstats
path: root/sound/firewire
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2013-09-13 11:35:47 -0400
committerTakashi Iwai <tiwai@suse.de>2013-09-26 04:36:52 -0400
commite84841f9ba134d3aa4cad5c16d05712672583c76 (patch)
treef5804f7322574895d4936df836300dea7b023ae2 /sound/firewire
parent976b6c064a957445eb0573b270f2d0282630e9b9 (diff)
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>
Diffstat (limited to 'sound/firewire')
-rw-r--r--sound/firewire/amdtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/firewire/amdtp.c b/sound/firewire/amdtp.c
index ea995af6d049..4b08b25a4db8 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,
268 268
269 channels = s->pcm_channels; 269 channels = s->pcm_channels;
270 src = (void *)runtime->dma_area + 270 src = (void *)runtime->dma_area +
271 s->pcm_buffer_pointer * (runtime->frame_bits / 8); 271 frames_to_bytes(runtime, s->pcm_buffer_pointer);
272 remaining_frames = runtime->buffer_size - s->pcm_buffer_pointer; 272 remaining_frames = runtime->buffer_size - s->pcm_buffer_pointer;
273 frame_step = s->data_block_quadlets - channels; 273 frame_step = s->data_block_quadlets - channels;
274 274
@@ -294,7 +294,7 @@ static void amdtp_write_s16(struct amdtp_out_stream *s,
294 294
295 channels = s->pcm_channels; 295 channels = s->pcm_channels;
296 src = (void *)runtime->dma_area + 296 src = (void *)runtime->dma_area +
297 s->pcm_buffer_pointer * (runtime->frame_bits / 8); 297 frames_to_bytes(runtime, s->pcm_buffer_pointer);
298 remaining_frames = runtime->buffer_size - s->pcm_buffer_pointer; 298 remaining_frames = runtime->buffer_size - s->pcm_buffer_pointer;
299 frame_step = s->data_block_quadlets - channels; 299 frame_step = s->data_block_quadlets - channels;
300 300