ASoC: imx-audmix: Update to modern clocking terminology
As part of moving to remove the old style defines for the bus clocks update the imx-audmix driver to use more modern terminology for clocking. Signed-off-by: Mark Brown <broonie@kernel.org> Reviewed-by: Fabio Estevam <festevam@gmail.com> Link: https://lore.kernel.org/r/20210921213542.31688-8-broonie@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
89efbdaaa4
commit
bf10102248
@ -80,8 +80,8 @@ static int imx_audmix_fe_hw_params(struct snd_pcm_substream *substream,
|
|||||||
u32 channels = params_channels(params);
|
u32 channels = params_channels(params);
|
||||||
int ret, dir;
|
int ret, dir;
|
||||||
|
|
||||||
/* For playback the AUDMIX is slave, and for record is master */
|
/* For playback the AUDMIX is consumer, and for record is provider */
|
||||||
fmt |= tx ? SND_SOC_DAIFMT_CBS_CFS : SND_SOC_DAIFMT_CBM_CFM;
|
fmt |= tx ? SND_SOC_DAIFMT_CBC_CFC : SND_SOC_DAIFMT_CBP_CFP;
|
||||||
dir = tx ? SND_SOC_CLOCK_OUT : SND_SOC_CLOCK_IN;
|
dir = tx ? SND_SOC_CLOCK_OUT : SND_SOC_CLOCK_IN;
|
||||||
|
|
||||||
/* set DAI configuration */
|
/* set DAI configuration */
|
||||||
@ -121,8 +121,8 @@ static int imx_audmix_be_hw_params(struct snd_pcm_substream *substream,
|
|||||||
if (!tx)
|
if (!tx)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* For playback the AUDMIX is slave */
|
/* For playback the AUDMIX is consumer */
|
||||||
fmt |= SND_SOC_DAIFMT_CBM_CFM;
|
fmt |= SND_SOC_DAIFMT_CBP_CFP;
|
||||||
|
|
||||||
/* set AUDMIX DAI configuration */
|
/* set AUDMIX DAI configuration */
|
||||||
ret = snd_soc_dai_set_fmt(asoc_rtd_to_cpu(rtd, 0), fmt);
|
ret = snd_soc_dai_set_fmt(asoc_rtd_to_cpu(rtd, 0), fmt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user