ASoC: enable external display only for QGKI
Add external display dai links to sound card only when CONFIG_AUDIO_QGKI is enabled. Change-Id: Ic67def877cddeb08aebcfc00ab4886826905b7c2 Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
2ff57c7749
commit
f6ace7d5da
@@ -6291,6 +6291,7 @@ static struct snd_soc_dai_link msm_wcn_btfm_be_dai_links[] = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if IS_ENABLED(CONFIG_AUDIO_QGKI)
|
||||||
static struct snd_soc_dai_link ext_disp_be_dai_link[] = {
|
static struct snd_soc_dai_link ext_disp_be_dai_link[] = {
|
||||||
/* DISP PORT BACK END DAI Link */
|
/* DISP PORT BACK END DAI Link */
|
||||||
{
|
{
|
||||||
@@ -6317,6 +6318,7 @@ static struct snd_soc_dai_link ext_disp_be_dai_link[] = {
|
|||||||
SND_SOC_DAILINK_REG(display_port1),
|
SND_SOC_DAILINK_REG(display_port1),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct snd_soc_dai_link msm_mi2s_be_dai_links[] = {
|
static struct snd_soc_dai_link msm_mi2s_be_dai_links[] = {
|
||||||
{
|
{
|
||||||
@@ -6789,7 +6791,9 @@ static struct snd_soc_dai_link msm_lahaina_dai_links[
|
|||||||
ARRAY_SIZE(msm_wsa_cdc_dma_be_dai_links) +
|
ARRAY_SIZE(msm_wsa_cdc_dma_be_dai_links) +
|
||||||
ARRAY_SIZE(msm_rx_tx_cdc_dma_be_dai_links) +
|
ARRAY_SIZE(msm_rx_tx_cdc_dma_be_dai_links) +
|
||||||
ARRAY_SIZE(msm_va_cdc_dma_be_dai_links) +
|
ARRAY_SIZE(msm_va_cdc_dma_be_dai_links) +
|
||||||
|
#if IS_ENABLED(CONFIG_AUDIO_QGKI)
|
||||||
ARRAY_SIZE(ext_disp_be_dai_link) +
|
ARRAY_SIZE(ext_disp_be_dai_link) +
|
||||||
|
#endif
|
||||||
ARRAY_SIZE(msm_wcn_be_dai_links) +
|
ARRAY_SIZE(msm_wcn_be_dai_links) +
|
||||||
ARRAY_SIZE(msm_afe_rxtx_lb_be_dai_link) +
|
ARRAY_SIZE(msm_afe_rxtx_lb_be_dai_link) +
|
||||||
ARRAY_SIZE(msm_wcn_btfm_be_dai_links)];
|
ARRAY_SIZE(msm_wcn_btfm_be_dai_links)];
|
||||||
@@ -7071,6 +7075,7 @@ static struct snd_soc_card *populate_snd_card_dailinks(struct device *dev)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if IS_ENABLED(CONFIG_AUDIO_QGKI)
|
||||||
rc = of_property_read_u32(dev->of_node,
|
rc = of_property_read_u32(dev->of_node,
|
||||||
"qcom,ext-disp-audio-rx", &val);
|
"qcom,ext-disp-audio-rx", &val);
|
||||||
if (!rc && val) {
|
if (!rc && val) {
|
||||||
@@ -7081,6 +7086,7 @@ static struct snd_soc_card *populate_snd_card_dailinks(struct device *dev)
|
|||||||
sizeof(ext_disp_be_dai_link));
|
sizeof(ext_disp_be_dai_link));
|
||||||
total_links += ARRAY_SIZE(ext_disp_be_dai_link);
|
total_links += ARRAY_SIZE(ext_disp_be_dai_link);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
rc = of_property_read_u32(dev->of_node, "qcom,wcn-bt", &val);
|
rc = of_property_read_u32(dev->of_node, "qcom,wcn-bt", &val);
|
||||||
if (!rc && val) {
|
if (!rc && val) {
|
||||||
|
Reference in New Issue
Block a user