Subject: azalia patch to silent internal speakers of Dell Latitude D420
To: None <,>
From: Marcin Michal Jessa <>
List: current-users
Date: 11/26/2007 16:21:27

I just patched the azalia_codec.c to quiet internal speakers when 
plugging in head phones.
This is for Dell Latitude D420. I am on NetBSD 4.99.37

# diff -up /usr/src/sys/dev/pci/azalia_codec.c /home/yazzy/azalia_codec.c
--- /usr/src/sys/dev/pci/azalia_codec.c 2007-11-07 01:47:18.000000000 +0100
+++ /home/yazzy/azalia_codec.c  2007-11-26 15:36:13.000000000 +0100
@@ -3359,6 +3359,7 @@ stac9200_mixer_init(codec_t *this)
 #define STAC9200_DELL_INSPIRON6400_ID  0x01bd1028
 #define STAC9200_DELL_INSPIRON9400_ID  0x01cd1028
 #define STAC9200_DELL_640M_ID          0x01d81028
+#define STAC9200_DELL_LATITUDE_D420_ID 0x01d61028
 #define STAC9200_DELL_LATITUDE_D430_ID 0x02011028
 #define STAC9200_EVENT_HP      0
 #define STAC9200_NID_HP                0x0d
@@ -3366,6 +3367,7 @@ stac9200_mixer_init(codec_t *this)
        if (this->subid == STAC9200_DELL_INSPIRON6400_ID ||
            this->subid == STAC9200_DELL_INSPIRON9400_ID ||
            this->subid == STAC9200_DELL_640M_ID ||
+           this->subid == STAC9200_DELL_LATITUDE_D420_ID ||
            this->subid == STAC9200_DELL_LATITUDE_D430_ID) {
                /* Does every DELL model have the same pin configuration?
                 * I'm not sure. */

And relevant part of dmesg:

# dmesg |grep azalia
azalia0 at pci0 dev 27 function 0: Generic High Definition Audio Controller
azalia0: interrupting at ioapic0 pin 21 (irq 10)
azalia0: host: Intel 82801GB/GR High Definition Audio Controller (rev. 1)
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec[0]: Sigmatel STAC9200 (rev. 34.1)
azalia0: codec[0]: High Definition Audio rev. 1.0
azalia0: playback: max channels=2, encodings=1<PCM>
azalia0: playback: PCM 
azalia0: recording: max channels=2, encodings=1<PCM>
azalia0: recording: PCM 
azalia0: codec[1]: 0x14f1/0x2bfa (rev. 0.0)
azalia0: codec[1]: High Definition Audio rev. 0.9
azalia0: codec[1]: No support for modem function groups
azalia0: codec[1] has no audio function groups
audio0 at azalia0: full duplex, independent

Marcin Jessa.