[PATCH 1/1] ALSA: AT73C213: Rectify misleading comment.

Peter Rosin peda at axentia.se
Wed Nov 10 15:49:44 CET 2010


The Atmel SSC can divide by even numbers, not only powers of two.

Signed-off-by: Peter Rosin <peda at axentia.se>

diff --git a/sound/spi/at73c213.c b/sound/spi/at73c213.c
index 1bc56b2..337a002 100644
--- a/sound/spi/at73c213.c
+++ b/sound/spi/at73c213.c
@@ -155,7 +155,7 @@ static int snd_at73c213_set_bitrate(struct snd_at73c213 *chip)
 	if (max_tries < 1)
 		max_tries = 1;
 
-	/* ssc_div must be a power of 2. */
+	/* ssc_div must be even. */
 	ssc_div = (ssc_div + 1) & ~1UL;
 
 	if ((ssc_rate / (ssc_div * 2 * 16)) < BITRATE_MIN) {
-- 
1.7.2.3



More information about the Alsa-devel mailing list