diff options
author | Tobin Davis <tdavis@dsl-only.net> | 2008-02-03 14:31:47 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-04-24 06:00:06 -0400 |
commit | bf277785d6921b8a9f8339ad5ad632aef6cae73c (patch) | |
tree | 9c0a1c9d6f9196bb59d90aa4027fe8e90d32ce0f /sound/pci/hda/patch_sigmatel.c | |
parent | dc952e693e3653d0fa50ee1986a47d88de3465b7 (diff) |
[ALSA] HDA - Add support for the OQO Model 2
This patch adds support for the OQO Model 2 Ultra Mobile PC.
Signed-off-by: Tobin Davis <tdavis@dsl-only.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index caf48edaa921..4c3c4e6ce3d6 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
@@ -39,6 +39,7 @@ | |||
39 | 39 | ||
40 | enum { | 40 | enum { |
41 | STAC_REF, | 41 | STAC_REF, |
42 | STAC_9200_OQO, | ||
42 | STAC_9200_DELL_D21, | 43 | STAC_9200_DELL_D21, |
43 | STAC_9200_DELL_D22, | 44 | STAC_9200_DELL_D22, |
44 | STAC_9200_DELL_D23, | 45 | STAC_9200_DELL_D23, |
@@ -1052,9 +1053,15 @@ static unsigned int dell9200_m27_pin_configs[8] = { | |||
1052 | 0x90170310, 0x04a11020, 0x90170310, 0x40f003fc, | 1053 | 0x90170310, 0x04a11020, 0x90170310, 0x40f003fc, |
1053 | }; | 1054 | }; |
1054 | 1055 | ||
1056 | static unsigned int oqo9200_pin_configs[8] = { | ||
1057 | 0x40c000f0, 0x404000f1, 0x0221121f, 0x02211210, | ||
1058 | 0x90170111, 0x90a70120, 0x400000f2, 0x400000f3, | ||
1059 | }; | ||
1060 | |||
1055 | 1061 | ||
1056 | static unsigned int *stac9200_brd_tbl[STAC_9200_MODELS] = { | 1062 | static unsigned int *stac9200_brd_tbl[STAC_9200_MODELS] = { |
1057 | [STAC_REF] = ref9200_pin_configs, | 1063 | [STAC_REF] = ref9200_pin_configs, |
1064 | [STAC_9200_OQO] = oqo9200_pin_configs, | ||
1058 | [STAC_9200_DELL_D21] = dell9200_d21_pin_configs, | 1065 | [STAC_9200_DELL_D21] = dell9200_d21_pin_configs, |
1059 | [STAC_9200_DELL_D22] = dell9200_d22_pin_configs, | 1066 | [STAC_9200_DELL_D22] = dell9200_d22_pin_configs, |
1060 | [STAC_9200_DELL_D23] = dell9200_d23_pin_configs, | 1067 | [STAC_9200_DELL_D23] = dell9200_d23_pin_configs, |
@@ -1069,6 +1076,7 @@ static unsigned int *stac9200_brd_tbl[STAC_9200_MODELS] = { | |||
1069 | 1076 | ||
1070 | static const char *stac9200_models[STAC_9200_MODELS] = { | 1077 | static const char *stac9200_models[STAC_9200_MODELS] = { |
1071 | [STAC_REF] = "ref", | 1078 | [STAC_REF] = "ref", |
1079 | [STAC_9200_OQO] = "oqo", | ||
1072 | [STAC_9200_DELL_D21] = "dell-d21", | 1080 | [STAC_9200_DELL_D21] = "dell-d21", |
1073 | [STAC_9200_DELL_D22] = "dell-d22", | 1081 | [STAC_9200_DELL_D22] = "dell-d22", |
1074 | [STAC_9200_DELL_D23] = "dell-d23", | 1082 | [STAC_9200_DELL_D23] = "dell-d23", |
@@ -1153,6 +1161,8 @@ static struct snd_pci_quirk stac9200_cfg_tbl[] = { | |||
1153 | STAC_9200_GATEWAY), | 1161 | STAC_9200_GATEWAY), |
1154 | SND_PCI_QUIRK(0x107b, 0x0318, "Gateway ML3019, MT3707", | 1162 | SND_PCI_QUIRK(0x107b, 0x0318, "Gateway ML3019, MT3707", |
1155 | STAC_9200_GATEWAY), | 1163 | STAC_9200_GATEWAY), |
1164 | /* OQO Mobile */ | ||
1165 | SND_PCI_QUIRK(0x1106, 0x3288, "OQO Model 2", STAC_9200_OQO), | ||
1156 | {} /* terminator */ | 1166 | {} /* terminator */ |
1157 | }; | 1167 | }; |
1158 | 1168 | ||
@@ -3147,7 +3157,8 @@ static int patch_stac9200(struct hda_codec *codec) | |||
3147 | spec->num_adcs = 1; | 3157 | spec->num_adcs = 1; |
3148 | spec->num_pwrs = 0; | 3158 | spec->num_pwrs = 0; |
3149 | 3159 | ||
3150 | if (spec->board_config == STAC_9200_GATEWAY) | 3160 | if (spec->board_config == STAC_9200_GATEWAY || |
3161 | spec->board_config == STAC_9200_OQO) | ||
3151 | spec->init = stac9200_eapd_init; | 3162 | spec->init = stac9200_eapd_init; |
3152 | else | 3163 | else |
3153 | spec->init = stac9200_core_init; | 3164 | spec->init = stac9200_core_init; |