Skip to contentSkip to conversation

hda: STAC927x analog mic

PATCH Applied Matthew Ranostay 2 participants 3 messages Feb 21, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hda: STAC927x analog mic

Some laptops have a internal analog microphone that is not setup by the BIOS.

---

pci/hda/patch_sigmatel.c +2 -0
diff -r 6b53fa114faa pci/hda/patch_sigmatel.c
@@ -3629,6 +3629,8 @@ static int patch_stac927x(struct hda_cod
 		spec->mixer = stac927x_mixer;
 		break;
 	case STAC_DELL_BIOS:
+		/* configure the analog microphone on some laptops */
+		stac92xx_set_config_reg(codec, 0x0c, 0x90a79130);
 		/* correct the front output jack as a hp out */
 		stac92xx_set_config_reg(codec, 0x0f, 0x02270110);
 		/* correct the front input jack as a mic */
Applied
#1 lore raw

At Wed, 20 Feb 2008 21:49:59 -0500,

Quoted 4 lines · Matthew Ranostay

Some laptops have a internal analog microphone that is not setup by the BIOS.

Applied to HG tree.

BTW, are there boards / machines that have both analog and digital mics? Currently, we have "Digital Capture Volume". It was introduced as an alternative volume control for digital mics. But, this seems confusing people a lot because this volume works correctly at 50%, corresponding to 0dB. For systems that have only analog mics, this control doesn't make much sense.

Thus, I would love to make this control depending on the presence of digital mic if possible...

thanks,

Takashi

Quoted 14 lines

---
diff -r 6b53fa114faa pci/hda/patch_sigmatel.c

pci/hda/patch_sigmatel.c +2 -0
@@ -3629,6 +3629,8 @@ static int patch_stac927x(struct hda_cod
 		spec->mixer = stac927x_mixer;
 		break;
 	case STAC_DELL_BIOS:
+		/* configure the analog microphone on some laptops */
+		stac92xx_set_config_reg(codec, 0x0c, 0x90a79130);
 		/* correct the front output jack as a hp out */
 		stac92xx_set_config_reg(codec, 0x0f, 0x02270110);
 		/* correct the front input jack as a mic */
#2 lore raw
Quoted 6 lines · Takashi Iwai

At Wed, 20 Feb 2008 21:49:59 -0500,

Quoted 4 lines · Matthew Ranostay

Some laptops have a internal analog microphone that is not setup by the BIOS.

Quoted 6 lines
Quoted 1 line

Applied to HG tree.

BTW, are there boards / machines that have both analog and digital mics?

Yep there are several boards that have both analog and digital mics.

Quoted 29 lines

Currently, we have "Digital Capture Volume". It was introduced as an alternative volume control for digital mics. But, this seems confusing people a lot because this volume works correctly at 50%, corresponding to 0dB. For systems that have only analog mics, this control doesn't make much sense.

Thus, I would love to make this control depending on the presence of digital mic if possible...

thanks,

Takashi

Quoted 14 lines

---
diff -r 6b53fa114faa pci/hda/patch_sigmatel.c

pci/hda/patch_sigmatel.c +2 -0
@@ -3629,6 +3629,8 @@ static int patch_stac927x(struct hda_cod
 		spec->mixer = stac927x_mixer;
 		break;
 	case STAC_DELL_BIOS:
+		/* configure the analog microphone on some laptops */
+		stac92xx_set_config_reg(codec, 0x0c, 0x90a79130);
 		/* correct the front output jack as a hp out */
 		stac92xx_set_config_reg(codec, 0x0f, 0x02270110);
 		/* correct the front input jack as a mic */