Commit c7801a3c authored by Mark Brown's avatar Mark Brown

ASoC: ep93xx: Convert to modern clocking terminology

As part of the effort to remove our old APIs based on outdated terminology
update the EP93xx drivers to use modern terminology.
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210916143828.36215-1-broonie@kernel.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 501849d9
...@@ -60,7 +60,7 @@ static struct snd_soc_dai_link edb93xx_dai = { ...@@ -60,7 +60,7 @@ static struct snd_soc_dai_link edb93xx_dai = {
.name = "CS4271", .name = "CS4271",
.stream_name = "CS4271 HiFi", .stream_name = "CS4271 HiFi",
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
SND_SOC_DAIFMT_CBS_CFS, SND_SOC_DAIFMT_CBC_CFC,
.ops = &edb93xx_ops, .ops = &edb93xx_ops,
SND_SOC_DAILINK_REG(hifi), SND_SOC_DAILINK_REG(hifi),
}; };
......
...@@ -245,14 +245,14 @@ static int ep93xx_i2s_set_dai_fmt(struct snd_soc_dai *cpu_dai, ...@@ -245,14 +245,14 @@ static int ep93xx_i2s_set_dai_fmt(struct snd_soc_dai *cpu_dai,
return -EINVAL; return -EINVAL;
} }
switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) { switch (fmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) {
case SND_SOC_DAIFMT_CBS_CFS: case SND_SOC_DAIFMT_CBC_CFC:
/* CPU is master */ /* CPU is provider */
clk_cfg |= EP93XX_I2S_CLKCFG_MASTER; clk_cfg |= EP93XX_I2S_CLKCFG_MASTER;
break; break;
case SND_SOC_DAIFMT_CBM_CFM: case SND_SOC_DAIFMT_CBP_CFP:
/* Codec is master */ /* Codec is provider */
clk_cfg &= ~EP93XX_I2S_CLKCFG_MASTER; clk_cfg &= ~EP93XX_I2S_CLKCFG_MASTER;
break; break;
......
...@@ -70,7 +70,7 @@ static struct snd_soc_dai_link snappercl15_dai = { ...@@ -70,7 +70,7 @@ static struct snd_soc_dai_link snappercl15_dai = {
.name = "tlv320aic23", .name = "tlv320aic23",
.stream_name = "AIC23", .stream_name = "AIC23",
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
SND_SOC_DAIFMT_CBS_CFS, SND_SOC_DAIFMT_CBC_CFC,
.ops = &snappercl15_ops, .ops = &snappercl15_ops,
SND_SOC_DAILINK_REG(aic23), SND_SOC_DAILINK_REG(aic23),
}; };
......
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