Skip to content

Commit

Permalink
ASoC: qdsp6: q6afe-dai: Do not overwrite slim dai num_channels
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Srinivas Kandagatla authored and Mark Brown committed Jul 4, 2018
1 parent 9191ffe commit f1478a1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/soc/qcom/qdsp6/q6afe-dai.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit f1478a1

Please sign in to comment.