From 0ed2465002757ef11297ba1832b2ee5b6a962f0e Mon Sep 17 00:00:00 2001 From: Binyuan Lan Date: Fri, 20 Mar 2020 18:43:13 +0800 Subject: [PATCH] ASoC: bt-sco: Compatible stereo format Although stereo transmission, actually only 1ch data, just to adapt the controller of only support stereo and above. Change-Id: I0f2d6d1b43954080a980d4e4b8ea8f3ca8207d7b Signed-off-by: Binyuan Lan --- sound/soc/codecs/bt-sco.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/bt-sco.c b/sound/soc/codecs/bt-sco.c index 4d286844e3c8..2be7ba425ee4 100644 --- a/sound/soc/codecs/bt-sco.c +++ b/sound/soc/codecs/bt-sco.c @@ -26,14 +26,14 @@ static struct snd_soc_dai_driver bt_sco_dai[] = { .playback = { .stream_name = "Playback", .channels_min = 1, - .channels_max = 1, + .channels_max = 2, .rates = SNDRV_PCM_RATE_8000, .formats = SNDRV_PCM_FMTBIT_S16_LE, }, .capture = { .stream_name = "Capture", .channels_min = 1, - .channels_max = 1, + .channels_max = 2, .rates = SNDRV_PCM_RATE_8000, .formats = SNDRV_PCM_FMTBIT_S16_LE, }, @@ -43,14 +43,14 @@ static struct snd_soc_dai_driver bt_sco_dai[] = { .playback = { .stream_name = "Playback", .channels_min = 1, - .channels_max = 1, + .channels_max = 2, .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000, .formats = SNDRV_PCM_FMTBIT_S16_LE, }, .capture = { .stream_name = "Capture", .channels_min = 1, - .channels_max = 1, + .channels_max = 2, .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000, .formats = SNDRV_PCM_FMTBIT_S16_LE, },