asoc: set format param mask for SLIM_7_TX backend

Enable format mask for SLIM_7_TX backend to fix hardware
params setting failure.

Change-Id: I141bbed3d4272eb4e7d93027082d705f949a502f
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
This commit is contained in:
Prasad Kumpatla
2019-11-29 19:39:17 +05:30
parent 1cbefc9365
commit d7df12367f

View File

@@ -4435,6 +4435,8 @@ static int msm_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
break; break;
case MSM_BACKEND_DAI_SLIMBUS_7_TX: case MSM_BACKEND_DAI_SLIMBUS_7_TX:
param_set_mask(params, SNDRV_PCM_HW_PARAM_FORMAT,
slim_tx_cfg[SLIM_TX_7].bit_format);
rate->min = rate->max = slim_tx_cfg[SLIM_TX_7].sample_rate; rate->min = rate->max = slim_tx_cfg[SLIM_TX_7].sample_rate;
channels->min = channels->max = channels->min = channels->max =
slim_tx_cfg[SLIM_TX_7].channels; slim_tx_cfg[SLIM_TX_7].channels;