soundwire: intel: set dai min and max channels correctly
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 6 Jun 2019 11:23:04 +0000 (12:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 Jul 2019 06:11:07 +0000 (08:11 +0200)
[ Upstream commit 39194128701bf2af9bbc420ffe6e3cb5d2c16061 ]

Looks like there is a copy paste error.
This patch fixes it!

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soundwire/intel.c

index 0a8990e..a6e2581 100644 (file)
@@ -651,8 +651,8 @@ static int intel_create_dai(struct sdw_cdns *cdns,
                                return -ENOMEM;
                        }
 
-                       dais[i].playback.channels_min = 1;
-                       dais[i].playback.channels_max = max_ch;
+                       dais[i].capture.channels_min = 1;
+                       dais[i].capture.channels_max = max_ch;
                        dais[i].capture.rates = SNDRV_PCM_RATE_48000;
                        dais[i].capture.formats = SNDRV_PCM_FMTBIT_S16_LE;
                }