mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-17 18:14:34 +08:00
ASoC: sti-sas: Use modern ASoC DAI format terminology
As part of moving to remove the old style defines for the bus clocks update the sti-sas driver to use more modern terminology for clocking. Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20220223002502.1451015-1-broonie@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
87d71a1287
commit
a325068e2b
@ -154,10 +154,10 @@ static int sti_sas_init_sas_registers(struct snd_soc_component *component,
|
|||||||
static int sti_sas_dac_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
|
static int sti_sas_dac_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
|
||||||
{
|
{
|
||||||
/* Sanity check only */
|
/* Sanity check only */
|
||||||
if ((fmt & SND_SOC_DAIFMT_MASTER_MASK) != SND_SOC_DAIFMT_CBS_CFS) {
|
if ((fmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) != SND_SOC_DAIFMT_CBC_CFC) {
|
||||||
dev_err(dai->component->dev,
|
dev_err(dai->component->dev,
|
||||||
"%s: ERROR: Unsupporter master mask 0x%x\n",
|
"%s: ERROR: Unsupported clocking 0x%x\n",
|
||||||
__func__, fmt & SND_SOC_DAIFMT_MASTER_MASK);
|
__func__, fmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user