summaryrefslogtreecommitdiffstats
path: root/sound/soc/qcom/qdsp6/q6afe-dai.c
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2018-07-04 11:49:42 +0200
committerMark Brown <broonie@kernel.org>2018-07-04 16:41:40 +0200
commitf1478a1476d45c5d7b070c726f46a7b581d3103c (patch)
tree94d6a15d54c2aa8e239fe9dff1fe86acae81085b /sound/soc/qcom/qdsp6/q6afe-dai.c
parentASoC: qdsp6: q6routing: add slim rx routings (diff)
downloadlinux-f1478a1476d45c5d7b070c726f46a7b581d3103c.tar.xz
linux-f1478a1476d45c5d7b070c726f46a7b581d3103c.zip
ASoC: qdsp6: q6afe-dai: Do not overwrite slim dai num_channels
num_channels for slim dais are aready set int set_channel_map, do not overwrite them in hw_params. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/qcom/qdsp6/q6afe-dai.c')
-rw-r--r--sound/soc/qcom/qdsp6/q6afe-dai.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/qcom/qdsp6/q6afe-dai.c b/sound/soc/qcom/qdsp6/q6afe-dai.c
index 8dd3683eb367..074582afda85 100644
--- a/sound/soc/qcom/qdsp6/q6afe-dai.c
+++ b/sound/soc/qcom/qdsp6/q6afe-dai.c
@@ -81,7 +81,6 @@ static int q6slim_hw_params(struct snd_pcm_substream *substream,
struct q6afe_dai_data *dai_data = dev_get_drvdata(dai->dev);
struct q6afe_slim_cfg *slim = &dai_data->port_config[dai->id].slim;
- slim->num_channels = params_channels(params);
slim->sample_rate = params_rate(params);
switch (params_format(params)) {