projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ac1544
)
ASoC: mediatek: mt8183-da7219: ignore TDM DAI link by default
author
Tzung-Bi Shih
<tzungbi@google.com>
Wed, 20 Jan 2021 09:22:37 +0000
(17:22 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 20 Jan 2021 18:45:34 +0000
(18:45 +0000)
hdmi-codec is an optional property. Ignore to bind TDM DAI link
if the property isn't specified.
Fixes: 5bdbe9771177 ("ASoC: mediatek: mt8183-da7219: use hdmi-codec")
Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Link:
https://lore.kernel.org/r/20210120092237.1553938-3-tzungbi@google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c
patch
|
blob
|
history
diff --git
a/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c
b/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c
index 078e58f1ad0b27b2e49837dc145e674689ce9b08..cfbd0c65c7a389564ebed1fed50f8dd32413245e 100644
(file)
--- a/
sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c
+++ b/
sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c
@@
-532,6
+532,7
@@
static struct snd_soc_dai_link mt8183_da7219_dai_links[] = {
.dpcm_playback = 1,
.ignore_suspend = 1,
.be_hw_params_fixup = mt8183_i2s_hw_params_fixup,
+ .ignore = 1,
.init = mt8183_da7219_max98357_hdmi_init,
SND_SOC_DAILINK_REG(tdm),
},
@@
-754,8
+755,10
@@
static int mt8183_da7219_max98357_dev_probe(struct platform_device *pdev)
}
}
- if (hdmi_codec && strcmp(dai_link->name, "TDM") == 0)
+ if (hdmi_codec && strcmp(dai_link->name, "TDM") == 0)
{
dai_link->codecs->of_node = hdmi_codec;
+ dai_link->ignore = 0;
+ }
if (!dai_link->platforms->name)
dai_link->platforms->of_node = platform_node;