diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-01-13 00:34:08 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-01-26 20:24:11 +0000 |
commit | c0dea82c3c141c33ca22ca85f80e592028840864 (patch) | |
tree | 66aee355bba147c335bb30e04694fe003b53ced5 /sound/arm/aaci.c | |
parent | f006d8fc53c461aa66a9265597494f83ddf4f53d (diff) | |
download | kernel_goldelico_gta04-c0dea82c3c141c33ca22ca85f80e592028840864.zip kernel_goldelico_gta04-c0dea82c3c141c33ca22ca85f80e592028840864.tar.gz kernel_goldelico_gta04-c0dea82c3c141c33ca22ca85f80e592028840864.tar.bz2 |
ALSA: AACI: use snd_pcm_lib_period_bytes()
Use the helper rather than open-coding this.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'sound/arm/aaci.c')
-rw-r--r-- | sound/arm/aaci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/arm/aaci.c b/sound/arm/aaci.c index 1e6d5f6..a8f9538 100644 --- a/sound/arm/aaci.c +++ b/sound/arm/aaci.c @@ -541,11 +541,11 @@ static int aaci_pcm_prepare(struct snd_pcm_substream *substream) struct snd_pcm_runtime *runtime = substream->runtime; struct aaci_runtime *aacirun = runtime->private_data; + aacirun->period = snd_pcm_lib_period_bytes(substream); aacirun->start = runtime->dma_area; aacirun->end = aacirun->start + snd_pcm_lib_buffer_bytes(substream); aacirun->ptr = aacirun->start; - aacirun->period = - aacirun->bytes = frames_to_bytes(runtime, runtime->period_size); + aacirun->bytes = aacirun->period; return 0; } |