Title: [9133] trunk/sound/soc: soc:ad73311:fix ad73311 and bf5xx-i2s' channel_min/max
Revision
9133
Author
lliubbo
Date
2010-09-10 06:58:33 -0400 (Fri, 10 Sep 2010)

Log Message

soc:ad73311:fix ad73311 and bf5xx-i2s' channel_min/max

As Rob said in http://blackfin.uclinux.org/gf/forummessage/93065
"tone effectively generates 500 Hz, half the nominal frequency".

This commit fix it and willn't affect other drivers using bf5xx-i2s.

Modified Paths

Diff

Modified: trunk/sound/soc/blackfin/bf5xx-i2s.c (9132 => 9133)


--- trunk/sound/soc/blackfin/bf5xx-i2s.c	2010-09-07 20:07:58 UTC (rev 9132)
+++ trunk/sound/soc/blackfin/bf5xx-i2s.c	2010-09-10 10:58:33 UTC (rev 9133)
@@ -227,12 +227,12 @@
 	.suspend = bf5xx_i2s_suspend,
 	.resume = bf5xx_i2s_resume,
 	.playback = {
-		.channels_min = 2,
+		.channels_min = 1,
 		.channels_max = 2,
 		.rates = BF5XX_I2S_RATES,
 		.formats = BF5XX_I2S_FORMATS,},
 	.capture = {
-		.channels_min = 2,
+		.channels_min = 1,
 		.channels_max = 2,
 		.rates = BF5XX_I2S_RATES,
 		.formats = BF5XX_I2S_FORMATS,},

Modified: trunk/sound/soc/codecs/ad73311.c (9132 => 9133)


--- trunk/sound/soc/codecs/ad73311.c	2010-09-07 20:07:58 UTC (rev 9132)
+++ trunk/sound/soc/codecs/ad73311.c	2010-09-10 10:58:33 UTC (rev 9133)
@@ -34,13 +34,13 @@
 	.playback = {
 		.stream_name = "Playback",
 		.channels_min = 1,
-		.channels_max = 2,
+		.channels_max = 1,
 		.rates = SNDRV_PCM_RATE_8000,
 		.formats = SNDRV_PCM_FMTBIT_S16_LE, },
 	.capture = {
 		.stream_name = "Capture",
 		.channels_min = 1,
-		.channels_max = 2,
+		.channels_max = 1,
 		.rates = SNDRV_PCM_RATE_8000,
 		.formats = SNDRV_PCM_FMTBIT_S16_LE, },
 };
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to