Skip to content

Commit

Permalink
ASoC: meson: switch to use snd_soc_daifmt_parse_format/clock_provider()
Browse files Browse the repository at this point in the history
This patch switch to use snd_soc_daifmt_parse_format/clock_provider() from
snd_soc_of_parse_daifmt().

Signed-off-by: Kuninori Morimoto <[email protected]>
Reviewed-by: Jerome Brunet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
morimoto authored and broonie committed Jun 21, 2021
1 parent 3bba941 commit 0c4c7a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/soc/meson/meson-card-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0c4c7a9

Please sign in to comment.