aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2009-04-02 02:21:13 -0400
committerTakashi Iwai <tiwai@suse.de>2009-04-05 21:55:15 -0400
commitc42eec0f193ed408118e20d85ea8c2e69c529993 (patch)
treeb20b925ccd9ec1840045a33b856b85c38e0a6358 /sound
parent128ed6a9266daac5d7b0e082339742e16caf7caa (diff)
ALSA: snd-atmel-ac97c: set correct size for buffer hardware parameter
This patch will set a proper maximum bytes for the buffer, which is: channels * bytes per sample * maximum periods * maximum bytes per period. It also sets the minimum periods to 6, a value chosen from testing, with a minimum of 6 periods the system has good time to fill in new audio data without skipping. Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/atmel/ac97c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c
index 4e8f66d40812..c9bc3458fa2d 100644
--- a/sound/atmel/ac97c.c
+++ b/sound/atmel/ac97c.c
@@ -151,10 +151,10 @@ static struct snd_pcm_hardware atmel_ac97c_hw = {
151 .rate_max = 48000, 151 .rate_max = 48000,
152 .channels_min = 1, 152 .channels_min = 1,
153 .channels_max = 2, 153 .channels_max = 2,
154 .buffer_bytes_max = 64 * 4096, 154 .buffer_bytes_max = 2 * 2 * 64 * 2048,
155 .period_bytes_min = 4096, 155 .period_bytes_min = 4096,
156 .period_bytes_max = 4096, 156 .period_bytes_max = 4096,
157 .periods_min = 4, 157 .periods_min = 6,
158 .periods_max = 64, 158 .periods_max = 64,
159}; 159};
160 160