diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2019-06-06 12:23:04 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-14 08:11:07 +0200 |
commit | 07c96e8e8021ebba02d03ab46450b8fd1ad5739a (patch) | |
tree | dc310570411b4ebc14c47bfc7541bf86a57f1a6f | |
parent | c7e427e28a3a2d1b89b8f9fa7c3f559774d91a7b (diff) | |
download | linux-stable-07c96e8e8021ebba02d03ab46450b8fd1ad5739a.tar.gz linux-stable-07c96e8e8021ebba02d03ab46450b8fd1ad5739a.tar.bz2 linux-stable-07c96e8e8021ebba02d03ab46450b8fd1ad5739a.zip |
soundwire: intel: set dai min and max channels correctly
[ 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>
-rw-r--r-- | drivers/soundwire/intel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c index 0a8990e758f9..a6e2581ada70 100644 --- a/drivers/soundwire/intel.c +++ b/drivers/soundwire/intel.c @@ -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; } |