Commit 5d6124e5 authored by Charles Keepax's avatar Charles Keepax Committed by Mark Brown

ASoC: ep93xx: Update to use set_fmt_new callback

As part of updating the core to directly tell drivers if they are clock
provider or consumer update this CPU side driver to use the new direct
callback.
Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220519154318.2153729-7-ckeepax@opensource.cirrus.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 04ea2404
...@@ -246,12 +246,12 @@ static int ep93xx_i2s_set_dai_fmt(struct snd_soc_dai *cpu_dai, ...@@ -246,12 +246,12 @@ static int ep93xx_i2s_set_dai_fmt(struct snd_soc_dai *cpu_dai,
} }
switch (fmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) { switch (fmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) {
case SND_SOC_DAIFMT_CBC_CFC: case SND_SOC_DAIFMT_BP_FP:
/* CPU is provider */ /* CPU is provider */
clk_cfg |= EP93XX_I2S_CLKCFG_MASTER; clk_cfg |= EP93XX_I2S_CLKCFG_MASTER;
break; break;
case SND_SOC_DAIFMT_CBP_CFP: case SND_SOC_DAIFMT_BC_FC:
/* Codec is provider */ /* Codec is provider */
clk_cfg &= ~EP93XX_I2S_CLKCFG_MASTER; clk_cfg &= ~EP93XX_I2S_CLKCFG_MASTER;
break; break;
...@@ -398,7 +398,7 @@ static const struct snd_soc_dai_ops ep93xx_i2s_dai_ops = { ...@@ -398,7 +398,7 @@ static const struct snd_soc_dai_ops ep93xx_i2s_dai_ops = {
.shutdown = ep93xx_i2s_shutdown, .shutdown = ep93xx_i2s_shutdown,
.hw_params = ep93xx_i2s_hw_params, .hw_params = ep93xx_i2s_hw_params,
.set_sysclk = ep93xx_i2s_set_sysclk, .set_sysclk = ep93xx_i2s_set_sysclk,
.set_fmt = ep93xx_i2s_set_dai_fmt, .set_fmt_new = ep93xx_i2s_set_dai_fmt,
}; };
#define EP93XX_I2S_FORMATS (SNDRV_PCM_FMTBIT_S32_LE) #define EP93XX_I2S_FORMATS (SNDRV_PCM_FMTBIT_S32_LE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment