ASoC: meson: switch to use snd_soc_daifmt_parse_format/clock_provider()
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@renesas.com> Reviewed-by: Jerome Brunet <jbrunet@baylibre.com> Link: https://lore.kernel.org/r/8735tlw9cy.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Родитель
3bba941451
Коммит
0c4c7a9667
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче