diff mbox

ASoC: ak4642: fixup channels_min

Message ID 877ftk8j88.wl%kuninori.morimoto.gx@renesas.com (mailing list archive)
State Accepted
Commit c01673e0b7236140eb5bbe1c7b30aa262f142d7e
Headers show

Commit Message

Kuninori Morimoto April 10, 2015, 8:46 a.m. UTC
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

ak4642 doesn't have Mono record, ak4643 have it, but not supported.
This patch fixes channel mismatch

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/codecs/ak4642.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Mark Brown April 10, 2015, 10:04 a.m. UTC | #1
On Fri, Apr 10, 2015 at 08:46:22AM +0000, Kuninori Morimoto wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> 
> ak4642 doesn't have Mono record, ak4643 have it, but not supported.
> This patch fixes channel mismatch

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/codecs/ak4642.c b/sound/soc/codecs/ak4642.c
index 24ceb36..13585e8 100644
--- a/sound/soc/codecs/ak4642.c
+++ b/sound/soc/codecs/ak4642.c
@@ -499,13 +499,13 @@  static struct snd_soc_dai_driver ak4642_dai = {
 	.name = "ak4642-hifi",
 	.playback = {
 		.stream_name = "Playback",
-		.channels_min = 1,
+		.channels_min = 2,
 		.channels_max = 2,
 		.rates = SNDRV_PCM_RATE_8000_48000,
 		.formats = SNDRV_PCM_FMTBIT_S16_LE },
 	.capture = {
 		.stream_name = "Capture",
-		.channels_min = 1,
+		.channels_min = 2,
 		.channels_max = 2,
 		.rates = SNDRV_PCM_RATE_8000_48000,
 		.formats = SNDRV_PCM_FMTBIT_S16_LE },