diff mbox series

soundwire: intel: set dai min and max channels correctly

Message ID 20190606112304.16560-1-srinivas.kandagatla@linaro.org
State Accepted
Commit 39194128701bf2af9bbc420ffe6e3cb5d2c16061
Headers show
Series soundwire: intel: set dai min and max channels correctly | expand

Commit Message

Srinivas Kandagatla June 6, 2019, 11:23 a.m. UTC
Looks like there is a copy paste error.
This patch fixes it!

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

---
 drivers/soundwire/intel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.21.0

Comments

Vinod Koul June 6, 2019, 5:19 p.m. UTC | #1
On 06-06-19, 12:23, Srinivas Kandagatla wrote:
> Looks like there is a copy paste error.

> This patch fixes it!


Applied, thanks

-- 
~Vinod
diff mbox series

Patch

diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c
index 92be6ad84e8d..317873bc0555 100644
--- a/drivers/soundwire/intel.c
+++ b/drivers/soundwire/intel.c
@@ -721,8 +721,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;
 		}