ALSA: HDA: Add internal mic for IDT 92HD88B
PATCH 1/1 ALSA: HDA: Add internal mic for IDT 92HD88B
According to datasheet (and real-world testing), IDT 92HD88B can have internal mics at NID 0x11 and 0x20, so enable them accordingly.
Signature · 2 lines
David Henningsson, Canonical Ltd. http://launchpad.net/~diwic
Quoted 1 line
From
4fdc8bb0ab1e786821003cb448559efea9d5081aMon Sep 17 00:00:00 2001
From: David Henningsson <[email protected]>
Date: Tue, 4 Jan 2011 06:30:53 +0100
Subject: [PATCH] ALSA: HDA: Add internal mic for IDT 92HD88B
According to datasheet (and real-world testing), IDT 92HD88B can have internal mics at NID 0x11 and 0x20, so enable them accordingly.
--- sound/pci/hda/patch_sigmatel.c | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-)
sound/pci/hda/patch_sigmatel.c +11 -1
@@ -389,6 +389,9 @@ static hda_nid_t stac92hd83xxx_dmic_nids[STAC92HD83XXX_NUM_DMICS + 1] = {0x11 ,0x20 ,0 }; +#define STAC92HD88XXX_NUM_DMICS STAC92HD83XXX_NUM_DMICS +#define stac92hd88xxx_dmic_nids stac92hd83xxx_dmic_nids +#define STAC92HD87B_NUM_DMICS 1static hda_nid_t stac92hd87b_dmic_nids[STAC92HD87B_NUM_DMICS +1 ] = { 0x11, 0
@@ -5462,11 +5465,18 @@ again: spec->num_dmics =stac92xx_connected_ports (codec, stac92hd87b_dmic_nids,STAC92HD87B_NUM_DMICS ); -/* Fall through */ + spec->num_pins =ARRAY_SIZE (stac92hd88xxx_pin_nids); + spec->pin_nids = stac92hd88xxx_pin_nids; + spec->mono_nid =0 ; + spec->num_pwrs =0 ; +break ;case 0x111d7666 :case 0x111d7667 :case 0x111d7668 :case 0x111d7669 : + spec->num_dmics =stac92xx_connected_ports (codec, + stac92hd88xxx_dmic_nids, +STAC92HD88XXX_NUM_DMICS ); spec->num_pins =ARRAY_SIZE (stac92hd88xxx_pin_nids); spec->pin_nids = stac92hd88xxx_pin_nids; spec->mono_nid =0 ;
Signature · 1 line
1.7.1
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Takashi Iwai
AppliedAt Tue, 04 Jan 2011 06:57:27 +0100,
Quoted 7 lines · David Henningsson
According to datasheet (and real-world testing), IDT 92HD88B can have internal mics at NID
0x11and0x20, so enable them accordingly.Signed-off-by David Henningsson <[email protected]>
Thanks, applied.
Takashi
Quoted 57 lines
Signature · 4 lines
-- David Henningsson, Canonical Ltd. http://launchpad.net/~diwic [2 0001-ALSA-HDA-Add-internal-mic-for-IDT-92HD88B.patch <text/x-patch (7bit)>]Quoted 1 line
From
4fdc8bb0ab1e786821003cb448559efea9d5081aMon Sep 17 00:00:00 2001From: David Henningsson <[email protected]>
Date: Tue, 4 Jan 2011 06:30:53 +0100
Subject: [PATCH] ALSA: HDA: Add internal mic for IDT 92HD88BAccording to datasheet (and real-world testing), IDT 92HD88B can have internal mics at NID
0x11and0x20, so enable them accordingly.Signed-off-by David Henningsson <[email protected]>--- sound/pci/hda/patch_sigmatel.c | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-)sound/pci/hda/patch_sigmatel.c +11
-1@@ -389,6 +389,9 @@ static hda_nid_t stac92hd83xxx_dmic_nids[STAC92HD83XXX_NUM_DMICS + 1] = {0x11 ,0x20 ,0 }; +#define STAC92HD88XXX_NUM_DMICS STAC92HD83XXX_NUM_DMICS +#define stac92hd88xxx_dmic_nids stac92hd83xxx_dmic_nids +#define STAC92HD87B_NUM_DMICS 1static hda_nid_t stac92hd87b_dmic_nids[STAC92HD87B_NUM_DMICS +1 ] = { 0x11, 0@@ -5462,11 +5465,18 @@ again: spec->num_dmics =stac92xx_connected_ports (codec, stac92hd87b_dmic_nids,STAC92HD87B_NUM_DMICS ); -/* Fall through */ + spec->num_pins =ARRAY_SIZE (stac92hd88xxx_pin_nids); + spec->pin_nids = stac92hd88xxx_pin_nids; + spec->mono_nid =0 ; + spec->num_pwrs =0 ; +break ;case 0x111d7666 :case 0x111d7667 :case 0x111d7668 :case 0x111d7669 : + spec->num_dmics =stac92xx_connected_ports (codec, + stac92hd88xxx_dmic_nids, +STAC92HD88XXX_NUM_DMICS ); spec->num_pins =ARRAY_SIZE (stac92hd88xxx_pin_nids); spec->pin_nids = stac92hd88xxx_pin_nids; spec->mono_nid =0 ;Signature · 1 line
1.7.1