diff options
author | David Henningsson <david.henningsson@canonical.com> | 2011-01-04 00:30:53 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-01-10 04:49:26 -0500 |
commit | bdfe6f452f9005731a6784c88503432864343240 (patch) | |
tree | a4c09e461dd4c24cda65aaacb221d50ce8aa14f2 /sound/pci | |
parent | 70c673a48072ff73425b82800479e66f918b8718 (diff) |
ALSA: HDA: Add internal mic for IDT 92HD88B
BugLink: http://bugs.launchpad.net/bugs/696493
According to datasheet (and real-world testing), IDT 92HD88B can
have internal mics at NID 0x11 and 0x20, so enable them accordingly.
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 6131a92f0898..c8d812ecb943 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
@@ -389,6 +389,9 @@ static hda_nid_t stac92hd83xxx_dmic_nids[STAC92HD83XXX_NUM_DMICS + 1] = { | |||
389 | 0x11, 0x20, 0 | 389 | 0x11, 0x20, 0 |
390 | }; | 390 | }; |
391 | 391 | ||
392 | #define STAC92HD88XXX_NUM_DMICS STAC92HD83XXX_NUM_DMICS | ||
393 | #define stac92hd88xxx_dmic_nids stac92hd83xxx_dmic_nids | ||
394 | |||
392 | #define STAC92HD87B_NUM_DMICS 1 | 395 | #define STAC92HD87B_NUM_DMICS 1 |
393 | static hda_nid_t stac92hd87b_dmic_nids[STAC92HD87B_NUM_DMICS + 1] = { | 396 | static hda_nid_t stac92hd87b_dmic_nids[STAC92HD87B_NUM_DMICS + 1] = { |
394 | 0x11, 0 | 397 | 0x11, 0 |
@@ -5462,11 +5465,18 @@ again: | |||
5462 | spec->num_dmics = stac92xx_connected_ports(codec, | 5465 | spec->num_dmics = stac92xx_connected_ports(codec, |
5463 | stac92hd87b_dmic_nids, | 5466 | stac92hd87b_dmic_nids, |
5464 | STAC92HD87B_NUM_DMICS); | 5467 | STAC92HD87B_NUM_DMICS); |
5465 | /* Fall through */ | 5468 | spec->num_pins = ARRAY_SIZE(stac92hd88xxx_pin_nids); |
5469 | spec->pin_nids = stac92hd88xxx_pin_nids; | ||
5470 | spec->mono_nid = 0; | ||
5471 | spec->num_pwrs = 0; | ||
5472 | break; | ||
5466 | case 0x111d7666: | 5473 | case 0x111d7666: |
5467 | case 0x111d7667: | 5474 | case 0x111d7667: |
5468 | case 0x111d7668: | 5475 | case 0x111d7668: |
5469 | case 0x111d7669: | 5476 | case 0x111d7669: |
5477 | spec->num_dmics = stac92xx_connected_ports(codec, | ||
5478 | stac92hd88xxx_dmic_nids, | ||
5479 | STAC92HD88XXX_NUM_DMICS); | ||
5470 | spec->num_pins = ARRAY_SIZE(stac92hd88xxx_pin_nids); | 5480 | spec->num_pins = ARRAY_SIZE(stac92hd88xxx_pin_nids); |
5471 | spec->pin_nids = stac92hd88xxx_pin_nids; | 5481 | spec->pin_nids = stac92hd88xxx_pin_nids; |
5472 | spec->mono_nid = 0; | 5482 | spec->mono_nid = 0; |