Explorar o código

asoc: fix for applying parameters for codec dma

Fix for getting the parameters for codec dma interface
from mixer controls and apply to port config.

CRs-Fixed: 2248380
Change-Id: I351c32e868b8fd3fde3eabbeef89b625a7bf8598
Signed-off-by: Mangesh Kunchamwar <[email protected]>
Mangesh Kunchamwar %!s(int64=6) %!d(string=hai) anos
pai
achega
9d2cada0af
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      asoc/msm-dai-q6-v2.c

+ 3 - 0
asoc/msm-dai-q6-v2.c

@@ -9405,6 +9405,9 @@ static int msm_dai_q6_cdc_dma_hw_params(
 		return -EINVAL;
 	}
 
+	dai_data->rate = params_rate(params);
+	dai_data->channels = params_channels(params);
+
 	dai_data->port_config.cdc_dma.cdc_dma_cfg_minor_version =
 				AFE_API_VERSION_CODEC_DMA_CONFIG;
 	dai_data->port_config.cdc_dma.sample_rate = dai_data->rate;