[PATCH v3 6/8] ASoC: meson: switch to use snd_soc_daifmt_parse_format/clock_provider()

Jerome Brunet jbrunet at baylibre.com
Fri Jun 18 16:26:10 CEST 2021


On Mon 14 Jun 2021 at 02:58, Kuninori Morimoto <kuninori.morimoto.gx at renesas.com> wrote:

> From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
>
> 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 at renesas.com>

Reviewed-by: Jerome Brunet <jbrunet at baylibre.com>

> ---
>  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) {



More information about the Alsa-devel mailing list