aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_hdmi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
index 030ca8652a1c..9f3586276871 100644
--- a/sound/pci/hda/patch_hdmi.c
+++ b/sound/pci/hda/patch_hdmi.c
@@ -1781,6 +1781,9 @@ static int generic_hdmi_build_controls(struct hda_codec *codec)
1781 struct snd_pcm_chmap *chmap; 1781 struct snd_pcm_chmap *chmap;
1782 struct snd_kcontrol *kctl; 1782 struct snd_kcontrol *kctl;
1783 int i; 1783 int i;
1784
1785 if (!codec->pcm_info[pin_idx].pcm)
1786 break;
1784 err = snd_pcm_add_chmap_ctls(codec->pcm_info[pin_idx].pcm, 1787 err = snd_pcm_add_chmap_ctls(codec->pcm_info[pin_idx].pcm,
1785 SNDRV_PCM_STREAM_PLAYBACK, 1788 SNDRV_PCM_STREAM_PLAYBACK,
1786 NULL, 0, pin_idx, &chmap); 1789 NULL, 0, pin_idx, &chmap);