diff options
author | Mark Brown <broonie@kernel.org> | 2021-09-15 18:30:23 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-09-16 14:11:30 +0100 |
commit | 4a8cf938d5b6ee22c5a0bec84efb4b8068410ff4 (patch) | |
tree | bb6d09346dd73b528510691ea832f4466c0eae71 /sound/soc/atmel/atmel-i2s.c | |
parent | 6116df7fafabbd9b2b09bfd8d568cd5fad656125 (diff) | |
download | linux-stable-4a8cf938d5b6ee22c5a0bec84efb4b8068410ff4.tar.gz linux-stable-4a8cf938d5b6ee22c5a0bec84efb4b8068410ff4.tar.bz2 linux-stable-4a8cf938d5b6ee22c5a0bec84efb4b8068410ff4.zip |
ASoC: atmel: Convert to new style DAI format definitions
Convert the Atmel drivers to use the new style defines for clocking in DAI
formats.
Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Acked-by: Peter Rosin <peda@axentia.se>
Diffstat (limited to 'sound/soc/atmel/atmel-i2s.c')
-rw-r--r-- | sound/soc/atmel/atmel-i2s.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/atmel/atmel-i2s.c b/sound/soc/atmel/atmel-i2s.c index 6b3d9c05eaf2..1934767690b5 100644 --- a/sound/soc/atmel/atmel-i2s.c +++ b/sound/soc/atmel/atmel-i2s.c @@ -342,8 +342,8 @@ static int atmel_i2s_hw_params(struct snd_pcm_substream *substream, return -EINVAL; } - switch (dev->fmt & SND_SOC_DAIFMT_MASTER_MASK) { - case SND_SOC_DAIFMT_CBS_CFS: + switch (dev->fmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) { + case SND_SOC_DAIFMT_CBC_CFC: /* codec is slave, so cpu is master */ mr |= ATMEL_I2SC_MR_MODE_MASTER; ret = atmel_i2s_get_gck_param(dev, params_rate(params)); @@ -351,7 +351,7 @@ static int atmel_i2s_hw_params(struct snd_pcm_substream *substream, return ret; break; - case SND_SOC_DAIFMT_CBM_CFM: + case SND_SOC_DAIFMT_CBP_CFP: /* codec is master, so cpu is slave */ mr |= ATMEL_I2SC_MR_MODE_SLAVE; dev->gck_param = NULL; |