aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-07-30 12:08:54 -0400
committerTakashi Iwai <tiwai@suse.de>2009-07-30 12:08:54 -0400
commitd195658bd785e9384d2f70937034ceb13d5e4bcc (patch)
tree848dde2523b0d13dea331f2c433af71f9ec80268
parentfefd67f31ee7f5259344e36a237d59b47e8715cf (diff)
parent78735cffc2d9ab0dec32f1ba7cbc1d84b45bbf29 (diff)
Merge branch 'fix/hda' into topic/hda
-rw-r--r--sound/pci/hda/hda_eld.c4
-rw-r--r--sound/pci/hda/patch_sigmatel.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_eld.c b/sound/pci/hda/hda_eld.c
index fcad5ec31773..9446a5abea13 100644
--- a/sound/pci/hda/hda_eld.c
+++ b/sound/pci/hda/hda_eld.c
@@ -508,7 +508,7 @@ static void hdmi_write_eld_info(struct snd_info_entry *entry,
508 char name[64]; 508 char name[64];
509 char *sname; 509 char *sname;
510 long long val; 510 long long val;
511 int n; 511 unsigned int n;
512 512
513 while (!snd_info_get_line(buffer, line, sizeof(line))) { 513 while (!snd_info_get_line(buffer, line, sizeof(line))) {
514 if (sscanf(line, "%s %llx", name, &val) != 2) 514 if (sscanf(line, "%s %llx", name, &val) != 2)
@@ -539,7 +539,7 @@ static void hdmi_write_eld_info(struct snd_info_entry *entry,
539 sname++; 539 sname++;
540 n = 10 * n + name[4] - '0'; 540 n = 10 * n + name[4] - '0';
541 } 541 }
542 if (n < 0 || n > 31) /* double the CEA limit */ 542 if (n >= ELD_MAX_SAD)
543 continue; 543 continue;
544 if (!strcmp(sname, "_coding_type")) 544 if (!strcmp(sname, "_coding_type"))
545 e->sad[n].format = val; 545 e->sad[n].format = val;
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index c7e5de6e394e..e5fbec37ffdd 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -1794,6 +1794,8 @@ static struct snd_pci_quirk stac92hd73xx_cfg_tbl[] = {
1794 "Dell Studio 1537", STAC_DELL_M6_DMIC), 1794 "Dell Studio 1537", STAC_DELL_M6_DMIC),
1795 SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x02a0, 1795 SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x02a0,
1796 "Dell Studio 17", STAC_DELL_M6_DMIC), 1796 "Dell Studio 17", STAC_DELL_M6_DMIC),
1797 SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x02be,
1798 "Dell Studio 1555", STAC_DELL_M6_DMIC),
1797 {} /* terminator */ 1799 {} /* terminator */
1798}; 1800};
1799 1801