On Mon 14 Jun 2021 at 02:58, Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx> wrote: > From: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx> > > This patch switch to use snd_soc_daifmt_parse_format/clock_provider() from > snd_soc_of_parse_daifmt(). > > Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx> Reviewed-by: Jerome Brunet <jbrunet@xxxxxxxxxxxx> > --- > sound/soc/meson/meson-card-utils.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/sound/soc/meson/meson-card-utils.c b/sound/soc/meson/meson-card-utils.c > index 300ac8be46ef..415cc0046e4b 100644 > --- a/sound/soc/meson/meson-card-utils.c > +++ b/sound/soc/meson/meson-card-utils.c > @@ -119,9 +119,9 @@ unsigned int meson_card_parse_daifmt(struct device_node *node, > struct device_node *framemaster = NULL; > unsigned int daifmt; > > - daifmt = snd_soc_of_parse_daifmt(node, "", > - &bitclkmaster, &framemaster); > - daifmt &= ~SND_SOC_DAIFMT_MASTER_MASK; > + daifmt = snd_soc_daifmt_parse_format(node, NULL); > + > + snd_soc_daifmt_parse_clock_provider_as_phandle(node, NULL, &bitclkmaster, &framemaster); > > /* If no master is provided, default to cpu master */ > if (!bitclkmaster || bitclkmaster == cpu_node) {