[ALSA] hda-codec - Add first generation macbook subsystem ID
authorAbhijit Bhopatkar <bainonline@gmail.com>
Tue, 17 Apr 2007 09:57:16 +0000 (11:57 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 11 May 2007 14:56:03 +0000 (16:56 +0200)
First generation MacBooks were getting ignored by sigmatel drivers
and wrongly being identified as MACMINI. This patch makes them
identify as MACBOOK.

Signed-off-by: Abhijit Bhopatkar <bainonline@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pci/hda/patch_sigmatel.c

index 612d355b9e0160aaaed3323a2fee4baac67c9489..5e6d02cf6726668407c6967fae2a77d3a1bef4e7 100644 (file)
@@ -1911,6 +1911,9 @@ static int patch_stac922x(struct hda_codec *codec)
                 */
                printk(KERN_INFO "hda_codec: STAC922x, Apple subsys_id=%x\n", codec->subsystem_id);
                switch (codec->subsystem_id) {
+               case 0x106b0a00: /* MacBook First generatoin */
+                       spec->board_config = STAC_MACBOOK;
+                       break;
                case 0x106b0200: /* MacBook Pro first generation */
                        spec->board_config = STAC_MACBOOK_PRO_V1;
                        break;