projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a36bd8
)
ASoC: ak4671: Use modern ASoC DAI format terminology
author
Mark Brown
<broonie@kernel.org>
Mon, 20 Sep 2021 16:42:11 +0000
(17:42 +0100)
committer
Mark Brown
<broonie@kernel.org>
Mon, 27 Sep 2021 12:01:11 +0000
(13:01 +0100)
As part of moving to remove the old style defines for the bus clocks update
the ak4671 driver to use more modern terminology for clocking.
Signed-off-by: Mark Brown <broonie@kernel.org>
Link:
https://lore.kernel.org/r/20210920164211.16718-1-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/ak4671.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/ak4671.c
b/sound/soc/codecs/ak4671.c
index eb435235b5a31adfb579a97ae10cefd524fc41e5..e9d1251c42652034d29d60f56b6744d9e52d7678 100644
(file)
--- a/
sound/soc/codecs/ak4671.c
+++ b/
sound/soc/codecs/ak4671.c
@@
-520,11
+520,11
@@
static int ak4671_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
/* set master/slave audio interface */
mode = snd_soc_component_read(component, AK4671_PLL_MODE_SELECT1);
- switch (fmt & SND_SOC_DAIFMT_
MAST
ER_MASK) {
- case SND_SOC_DAIFMT_CB
M_CFM
:
+ switch (fmt & SND_SOC_DAIFMT_
CLOCK_PROVID
ER_MASK) {
+ case SND_SOC_DAIFMT_CB
P_CFP
:
mode |= AK4671_M_S;
break;
- case SND_SOC_DAIFMT_CB
M_CFS
:
+ case SND_SOC_DAIFMT_CB
P_CFC
:
mode &= ~(AK4671_M_S);
break;
default: