Skip to contentSkip to conversation

ALSA: AT73C213: Rectify misleading comment.

PATCH New Peter Rosin 1 participant 1 message Nov 10, 2010 Sound

lore
Share & tools
lore
#0 lore raw

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

Quoted 1 line

From 0cacebce4aaa9a3ea460df8aac1cdd39e2e71527 Mon Sep 17 00:00:00 2001

From: Peter Rosin <[email protected]>
Date: Wed, 10 Nov 2010 15:49:44 +0100
Subject: [PATCH 1/1] ALSA: AT73C213: Rectify misleading comment.

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

sound/spi/at73c213.c +1 -1
index 1bc56b2..337a002 100644
@@ -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) {
Signature · 1 line
1.7.2.3