From: Jerome Brunet Date: Fri, 21 Feb 2020 15:36:07 +0000 (+0100) Subject: ASoC: meson: axg-card: add toacodec support X-Git-Tag: v5.10.7~1331^2~226^2~113 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b38c4a8a0291c31a660cd77761202ebb18332fb7;p=platform%2Fkernel%2Flinux-rpi.git 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: Jerome Brunet Link: https://lore.kernel.org/r/20200221153607.1585499-4-jbrunet@baylibre.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/meson/axg-card.c b/sound/soc/meson/axg-card.c index 372dc69..4865163 100644 --- a/sound/soc/meson/axg-card.c +++ b/sound/soc/meson/axg-card.c @@ -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) { - 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,