aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-08-04 09:39:59 -0400
committerJaroslav Kysela <perex@perex.cz>2008-08-06 09:40:16 -0400
commit8c650087992f1d7a3a7be2e632f4e85a52d20619 (patch)
tree640e4683d04f033e46a38f300010c6efd4412bf9
parente8f9ae2a4a0654e7798b8c0ae956e3f0fdc23c8d (diff)
ALSA: hda: Add support for ECS/PC Chips boards with Sigmatel codecs
Thanks to Sistema Fenix (http://www.sistemafenix.com.br/) and CDI Brasil (www.cdibrasil.com.br/) for sponsoring this development. Signed-off-by: Gilberto <gilberto@sistemafenix.com.br> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r--sound/pci/hda/patch_sigmatel.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index 23a7b2228e3c..fac6b3ca5fe2 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -110,6 +110,7 @@ enum {
110 STAC_MACBOOK_PRO_V2, 110 STAC_MACBOOK_PRO_V2,
111 STAC_IMAC_INTEL, 111 STAC_IMAC_INTEL,
112 STAC_IMAC_INTEL_20, 112 STAC_IMAC_INTEL_20,
113 STAC_ECS_202,
113 STAC_922X_DELL_D81, 114 STAC_922X_DELL_D81,
114 STAC_922X_DELL_D82, 115 STAC_922X_DELL_D82,
115 STAC_922X_DELL_M81, 116 STAC_922X_DELL_M81,
@@ -1586,6 +1587,11 @@ static unsigned int intel_mac_v5_pin_configs[10] = {
1586 0x400000fc, 0x400000fb, 1587 0x400000fc, 0x400000fb,
1587}; 1588};
1588 1589
1590static unsigned int ecs202_pin_configs[10] = {
1591 0x0221401f, 0x02a19020, 0x01a19020, 0x01114010,
1592 0x408000f0, 0x01813022, 0x074510a0, 0x40c400f1,
1593 0x9037012e, 0x40e000f2,
1594};
1589 1595
1590static unsigned int *stac922x_brd_tbl[STAC_922X_MODELS] = { 1596static unsigned int *stac922x_brd_tbl[STAC_922X_MODELS] = {
1591 [STAC_D945_REF] = ref922x_pin_configs, 1597 [STAC_D945_REF] = ref922x_pin_configs,
@@ -1604,6 +1610,7 @@ static unsigned int *stac922x_brd_tbl[STAC_922X_MODELS] = {
1604 [STAC_MACBOOK_PRO_V2] = intel_mac_v3_pin_configs, 1610 [STAC_MACBOOK_PRO_V2] = intel_mac_v3_pin_configs,
1605 [STAC_IMAC_INTEL] = intel_mac_v2_pin_configs, 1611 [STAC_IMAC_INTEL] = intel_mac_v2_pin_configs,
1606 [STAC_IMAC_INTEL_20] = intel_mac_v3_pin_configs, 1612 [STAC_IMAC_INTEL_20] = intel_mac_v3_pin_configs,
1613 [STAC_ECS_202] = ecs202_pin_configs,
1607 [STAC_922X_DELL_D81] = dell_922x_d81_pin_configs, 1614 [STAC_922X_DELL_D81] = dell_922x_d81_pin_configs,
1608 [STAC_922X_DELL_D82] = dell_922x_d82_pin_configs, 1615 [STAC_922X_DELL_D82] = dell_922x_d82_pin_configs,
1609 [STAC_922X_DELL_M81] = dell_922x_m81_pin_configs, 1616 [STAC_922X_DELL_M81] = dell_922x_m81_pin_configs,
@@ -1627,6 +1634,7 @@ static const char *stac922x_models[STAC_922X_MODELS] = {
1627 [STAC_MACBOOK_PRO_V2] = "macbook-pro", 1634 [STAC_MACBOOK_PRO_V2] = "macbook-pro",
1628 [STAC_IMAC_INTEL] = "imac-intel", 1635 [STAC_IMAC_INTEL] = "imac-intel",
1629 [STAC_IMAC_INTEL_20] = "imac-intel-20", 1636 [STAC_IMAC_INTEL_20] = "imac-intel-20",
1637 [STAC_ECS_202] = "ecs202",
1630 [STAC_922X_DELL_D81] = "dell-d81", 1638 [STAC_922X_DELL_D81] = "dell-d81",
1631 [STAC_922X_DELL_D82] = "dell-d82", 1639 [STAC_922X_DELL_D82] = "dell-d82",
1632 [STAC_922X_DELL_M81] = "dell-m81", 1640 [STAC_922X_DELL_M81] = "dell-m81",
@@ -1713,6 +1721,33 @@ static struct snd_pci_quirk stac922x_cfg_tbl[] = {
1713 "unknown Dell", STAC_922X_DELL_D81), 1721 "unknown Dell", STAC_922X_DELL_D81),
1714 SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x01d7, 1722 SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x01d7,
1715 "Dell XPS M1210", STAC_922X_DELL_M82), 1723 "Dell XPS M1210", STAC_922X_DELL_M82),
1724 /* ECS/PC Chips boards */
1725 SND_PCI_QUIRK(0x1019, 0x2144,
1726 "ECS/PC chips", STAC_ECS_202),
1727 SND_PCI_QUIRK(0x1019, 0x2608,
1728 "ECS/PC chips", STAC_ECS_202),
1729 SND_PCI_QUIRK(0x1019, 0x2633,
1730 "ECS/PC chips P17G/1333", STAC_ECS_202),
1731 SND_PCI_QUIRK(0x1019, 0x2811,
1732 "ECS/PC chips", STAC_ECS_202),
1733 SND_PCI_QUIRK(0x1019, 0x2812,
1734 "ECS/PC chips", STAC_ECS_202),
1735 SND_PCI_QUIRK(0x1019, 0x2813,
1736 "ECS/PC chips", STAC_ECS_202),
1737 SND_PCI_QUIRK(0x1019, 0x2814,
1738 "ECS/PC chips", STAC_ECS_202),
1739 SND_PCI_QUIRK(0x1019, 0x2815,
1740 "ECS/PC chips", STAC_ECS_202),
1741 SND_PCI_QUIRK(0x1019, 0x2816,
1742 "ECS/PC chips", STAC_ECS_202),
1743 SND_PCI_QUIRK(0x1019, 0x2817,
1744 "ECS/PC chips", STAC_ECS_202),
1745 SND_PCI_QUIRK(0x1019, 0x2818,
1746 "ECS/PC chips", STAC_ECS_202),
1747 SND_PCI_QUIRK(0x1019, 0x2819,
1748 "ECS/PC chips", STAC_ECS_202),
1749 SND_PCI_QUIRK(0x1019, 0x2820,
1750 "ECS/PC chips", STAC_ECS_202),
1716 {} /* terminator */ 1751 {} /* terminator */
1717}; 1752};
1718 1753