Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4c77b97 authored by Meng Wang's avatar Meng Wang
Browse files

asoc: send codec dma data alignment when it's set



Only send codec dma data alignment cmd when it's set.

Change-Id: I413c28bc01b4f49aa0291b868852dfb5835add8e
Signed-off-by: default avatarMeng Wang <mengw@codeaurora.org>
parent d187ddf2
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -12602,12 +12602,13 @@ static int msm_dai_q6_cdc_dma_prepare(struct snd_pcm_substream *substream,
			dai_data->port_config.cdc_dma.data_format =
				AFE_LINEAR_PCM_DATA_PACKED_16BIT;

		if (dai_data->cdc_dma_data_align) {
			rc = afe_send_cdc_dma_data_align(dai->id,
				dai_data->cdc_dma_data_align);
			if (rc)
				pr_debug("%s: afe send data alignment failed %d\n",
					__func__, rc);

		}
		rc = afe_port_start(dai->id, &dai_data->port_config,
						dai_data->rate);
		if (rc < 0)