소스 검색

ASoC: Declare 2 channels for WM8974

The device is a mono device but it can read two channel data and
many I2S controllers only understand 2 channels.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Mark Brown 16 년 전
부모
커밋
33d81af4d1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      sound/soc/codecs/wm8974.c

+ 2 - 2
sound/soc/codecs/wm8974.c

@@ -582,13 +582,13 @@ struct snd_soc_dai wm8974_dai = {
 	.playback = {
 		.stream_name = "Playback",
 		.channels_min = 1,
-		.channels_max = 1,
+		.channels_max = 2,   /* Only 1 channel of data */
 		.rates = WM8974_RATES,
 		.formats = WM8974_FORMATS,},
 	.capture = {
 		.stream_name = "Capture",
 		.channels_min = 1,
-		.channels_max = 1,
+		.channels_max = 2,   /* Only 1 channel of data */
 		.rates = WM8974_RATES,
 		.formats = WM8974_FORMATS,},
 	.ops = &wm8974_ops,