summaryrefslogtreecommitdiffstats
path: root/drivers/soundwire/intel.c
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2019-06-06 13:23:04 +0200
committerVinod Koul <vkoul@kernel.org>2019-06-06 19:18:41 +0200
commit39194128701bf2af9bbc420ffe6e3cb5d2c16061 (patch)
tree926b22c4023c9235c3b034c7d35ad5139f5e5bbc /drivers/soundwire/intel.c
parentsoundwire: stream: fix bad unlock balance (diff)
downloadlinux-39194128701bf2af9bbc420ffe6e3cb5d2c16061.tar.xz
linux-39194128701bf2af9bbc420ffe6e3cb5d2c16061.zip
soundwire: intel: set dai min and max channels correctly
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>
Diffstat (limited to '')
-rw-r--r--drivers/soundwire/intel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c
index 31336b0271b0..60293a00a14e 100644
--- a/drivers/soundwire/intel.c
+++ b/drivers/soundwire/intel.c
@@ -715,8 +715,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;
}