Commit b38c4a8a authored by Jerome Brunet's avatar Jerome Brunet Committed by Mark Brown

ASoC: meson: axg-card: add toacodec support

Make sure the axg audio card driver recognise the dai_link as a
codec-to-codec link if the cpu dai is the internal dac glue.
Signed-off-by: default avatarJerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20200221153607.1585499-4-jbrunet@baylibre.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent af2618a2
...@@ -303,7 +303,8 @@ static int axg_card_cpu_is_tdm_iface(struct device_node *np) ...@@ -303,7 +303,8 @@ static int axg_card_cpu_is_tdm_iface(struct device_node *np)
static int axg_card_cpu_is_codec(struct device_node *np) static int axg_card_cpu_is_codec(struct device_node *np)
{ {
return of_device_is_compatible(np, DT_PREFIX "g12a-tohdmitx"); return of_device_is_compatible(np, DT_PREFIX "g12a-tohdmitx") ||
of_device_is_compatible(np, DT_PREFIX "g12a-toacodec");
} }
static int axg_card_add_link(struct snd_soc_card *card, struct device_node *np, static int axg_card_add_link(struct snd_soc_card *card, struct device_node *np,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment