From 623317a411116fbe24845f809a14fbab46c4b367 Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Thu, 16 Jul 2009 10:05:22 +0800 Subject: [PATCH 1/2] ALSA: HDA: audio support for Eee PC 900 --- sound/pci/hda/patch_realtek.c | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 3328a25..2dd52c6 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -180,6 +180,7 @@ enum { ALC662_5ST_DIG, ALC662_LENOVO_101E, ALC662_ASUS_EEEPC_P701, + ALC662_ASUS_EEEPC_P900, ALC662_ASUS_EEEPC_EP20, ALC663_ASUS_M51VA, ALC663_ASUS_G71V, @@ -18727,6 +18728,7 @@ static const char * const alc662_models[ALC662_MODEL_LAST] = { [ALC662_5ST_DIG] = "6stack-dig", [ALC662_LENOVO_101E] = "lenovo-101e", [ALC662_ASUS_EEEPC_P701] = "eeepc-p701", + [ALC662_ASUS_EEEPC_P900] = "eeepc-p900", [ALC662_ASUS_EEEPC_EP20] = "eeepc-ep20", [ALC662_ECS] = "ecs", [ALC663_ASUS_M51VA] = "m51va", @@ -18809,6 +18811,7 @@ static struct snd_pci_quirk alc662_cfg_tbl[] = { SND_PCI_QUIRK(0x1043, 0x19f3, "ASUS NB", ALC663_ASUS_MODE4), SND_PCI_QUIRK(0x1043, 0x8290, "ASUS P5GC-MX", ALC662_3ST_6ch_DIG), SND_PCI_QUIRK(0x1043, 0x82a1, "ASUS Eeepc", ALC662_ASUS_EEEPC_P701), + SND_PCI_QUIRK(0x1043, 0x8337, "ASUS Eeepc P900", ALC662_ASUS_EEEPC_P900), SND_PCI_QUIRK(0x1043, 0x82d1, "ASUS Eeepc EP20", ALC662_ASUS_EEEPC_EP20), SND_PCI_QUIRK(0x105b, 0x0cd6, "Foxconn", ALC662_ECS), SND_PCI_QUIRK(0x105b, 0x0d47, "Foxconn 45CMX/45GMX/45CMX-K", @@ -18897,6 +18900,20 @@ static struct alc_config_preset alc662_presets[] = { .setup = alc662_eeepc_setup, .init_hook = alc662_eeepc_inithook, }, + [ALC662_ASUS_EEEPC_P900] = { + .mixers = { alc662_eeepc_p701_mixer }, + .init_verbs = { alc662_init_verbs, + alc662_eeepc_sue_init_verbs }, + .num_dacs = ARRAY_SIZE(alc662_dac_nids), + .dac_nids = alc662_dac_nids, + .num_adc_nids = ARRAY_SIZE(alc861vd_adc_nids), + .adc_nids = alc662_adc_nids, + .num_channel_mode = ARRAY_SIZE(alc662_3ST_2ch_modes), + .channel_mode = alc662_3ST_2ch_modes, + .unsol_event = alc662_eeepc_unsol_event, + .setup = alc662_eeepc_setup, + .init_hook = alc662_eeepc_inithook, + }, [ALC662_ASUS_EEEPC_EP20] = { .mixers = { alc662_eeepc_ep20_mixer, alc662_chmode_mixer }, -- 1.7.4