[PATCH 1/1] ALSA: AT73C213: Rectify misleading comment.
10 Nov
2010
10 Nov
'10
2:49 p.m.
The Atmel SSC can divide by even numbers, not only powers of two.
Signed-off-by: Peter Rosin peda@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
5103
Age (days ago)
5103
Last active (days ago)
0 comments
1 participants
participants (1)
-
Peter Rosin