aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-07-19 07:52:31 -0400
committerTakashi Iwai <tiwai@suse.de>2009-07-19 07:52:31 -0400
commit05e870d29aef0bf43124b2bd424103987fadd5b5 (patch)
treec16af622c5da784653a418cede6fa7b4b3357270 /sound/pci
parent3f3b7c1aed70fa25c6811f830c5fb1a7054681ae (diff)
parent2e9bf247066a293ebcd4672ddd487808ab5f2d1b (diff)
Merge branch 'fix/hda' into topic/hda
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/hda_codec.c6
-rw-r--r--sound/pci/hda/patch_realtek.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 35f0f223f85e..d686f4fcd780 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -347,6 +347,12 @@ int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid,
347 } 347 }
348 range_val = !!(parm & (1 << (shift-1))); /* ranges */ 348 range_val = !!(parm & (1 << (shift-1))); /* ranges */
349 val = parm & mask; 349 val = parm & mask;
350 if (val == 0) {
351 snd_printk(KERN_WARNING "hda_codec: "
352 "invalid CONNECT_LIST verb %x[%i]:%x\n",
353 nid, i, parm);
354 return 0;
355 }
350 parm >>= shift; 356 parm >>= shift;
351 if (range_val) { 357 if (range_val) {
352 /* ranges between the previous and this one */ 358 /* ranges between the previous and this one */
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 507a7720013e..454df58e983f 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -4501,6 +4501,12 @@ static int alc880_parse_auto_config(struct hda_codec *codec)
4501 &dig_nid, 1); 4501 &dig_nid, 1);
4502 if (err < 0) 4502 if (err < 0)
4503 continue; 4503 continue;
4504 if (dig_nid > 0x7f) {
4505 printk(KERN_ERR "alc880_auto: invalid dig_nid "
4506 "connection 0x%x for NID 0x%x\n", dig_nid,
4507 spec->autocfg.dig_out_pins[i]);
4508 continue;
4509 }
4504 if (!i) 4510 if (!i)
4505 spec->multiout.dig_out_nid = dig_nid; 4511 spec->multiout.dig_out_nid = dig_nid;
4506 else { 4512 else {