diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-02-05 14:33:45 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-02-05 14:33:45 +0300 |
commit | 9db028827315550ea7e65898eebaf15d2456d830 (patch) | |
tree | 4ba3067537cfd0d809fcac0396b2dab986c9930b /sound/soc/intel/boards/bxt_rt298.c | |
parent | c7e661a1c2ae98a4754db6a85fc686b4a89322ad (diff) | |
parent | 42b716359beca10684195fd6e93a74ecd8ca8003 (diff) | |
download | linux-9db028827315550ea7e65898eebaf15d2456d830.tar.xz |
Merge tag 'asoc-v5.6-2' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v5.6
A collection of updates for bugs fixed since the initial pull
request, the most important one being the addition of COMMON_CLK
for wcd934x which is needed for MFD to be merged.
Diffstat (limited to 'sound/soc/intel/boards/bxt_rt298.c')
-rw-r--r-- | sound/soc/intel/boards/bxt_rt298.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sound/soc/intel/boards/bxt_rt298.c b/sound/soc/intel/boards/bxt_rt298.c index 067a97e7e6a8..4b67f261377c 100644 --- a/sound/soc/intel/boards/bxt_rt298.c +++ b/sound/soc/intel/boards/bxt_rt298.c @@ -529,12 +529,15 @@ static int bxt_card_late_probe(struct snd_soc_card *card) int err, i = 0; char jack_name[NAME_SIZE]; - pcm = list_first_entry(&ctx->hdmi_pcm_list, struct bxt_hdmi_pcm, - head); - component = pcm->codec_dai->component; + if (list_empty(&ctx->hdmi_pcm_list)) + return -EINVAL; - if (ctx->common_hdmi_codec_drv) + if (ctx->common_hdmi_codec_drv) { + pcm = list_first_entry(&ctx->hdmi_pcm_list, struct bxt_hdmi_pcm, + head); + component = pcm->codec_dai->component; return hda_dsp_hdmi_build_controls(card, component); + } list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { component = pcm->codec_dai->component; @@ -555,9 +558,6 @@ static int bxt_card_late_probe(struct snd_soc_card *card) i++; } - if (!component) - return -EINVAL; - return hdac_hdmi_jack_port_init(component, &card->dapm); } |