ALSA: snd-atmel-ac97c: set correct size for buffer hardware parameter
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Thu, 2 Apr 2009 06:21:13 +0000 (08:21 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 6 Apr 2009 01:55:15 +0000 (03:55 +0200)
commitc42eec0f193ed408118e20d85ea8c2e69c529993
treeb20b925ccd9ec1840045a33b856b85c38e0a6358
parent128ed6a9266daac5d7b0e082339742e16caf7caa
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>
sound/atmel/ac97c.c