aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci')
-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 85853b4e42dc..69b928449789 100644
--- a/sound/pci/hda/patch_hdmi.c
+++ b/sound/pci/hda/patch_hdmi.c
@@ -877,6 +877,8 @@ static int hdmi_pcm_open(struct hda_pcm_stream *hinfo,
877 struct hdmi_eld *eld; 877 struct hdmi_eld *eld;
878 struct hdmi_spec_per_cvt *per_cvt = NULL; 878 struct hdmi_spec_per_cvt *per_cvt = NULL;
879 879
880 hinfo->nid = 0; /* clear the leftover value */
881
880 /* Validate hinfo */ 882 /* Validate hinfo */
881 pin_idx = hinfo_to_pin_index(spec, hinfo); 883 pin_idx = hinfo_to_pin_index(spec, hinfo);
882 if (snd_BUG_ON(pin_idx < 0)) 884 if (snd_BUG_ON(pin_idx < 0))
@@ -1218,6 +1220,7 @@ static int generic_hdmi_build_pcms(struct hda_codec *codec)
1218 pstr = &info->stream[SNDRV_PCM_STREAM_PLAYBACK]; 1220 pstr = &info->stream[SNDRV_PCM_STREAM_PLAYBACK];
1219 pstr->substreams = 1; 1221 pstr->substreams = 1;
1220 pstr->ops = generic_ops; 1222 pstr->ops = generic_ops;
1223 pstr->nid = 1; /* FIXME: just for avoiding a debug WARNING */
1221 /* other pstr fields are set in open */ 1224 /* other pstr fields are set in open */
1222 } 1225 }
1223 1226