提交 1607b8ea 编写于 作者: T Takashi Iwai

ALSA: hda - Add model=auto for STAC/IDT codecs

Added the model=auto to STAC/IDT codecs to use the BIOS default setup
explicitly.  It can be used to disable the device-specific model quirk
in the driver.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 23f0c048
...@@ -280,6 +280,7 @@ STAC9200 ...@@ -280,6 +280,7 @@ STAC9200
gateway-m4 Gateway laptops with EAPD control gateway-m4 Gateway laptops with EAPD control
gateway-m4-2 Gateway laptops with EAPD control gateway-m4-2 Gateway laptops with EAPD control
panasonic Panasonic CF-74 panasonic Panasonic CF-74
auto BIOS setup (default)
STAC9205/9254 STAC9205/9254
============= =============
...@@ -288,6 +289,7 @@ STAC9205/9254 ...@@ -288,6 +289,7 @@ STAC9205/9254
dell-m43 Dell Precision dell-m43 Dell Precision
dell-m44 Dell Inspiron dell-m44 Dell Inspiron
eapd Keep EAPD on (e.g. Gateway T1616) eapd Keep EAPD on (e.g. Gateway T1616)
auto BIOS setup (default)
STAC9220/9221 STAC9220/9221
============= =============
...@@ -311,6 +313,7 @@ STAC9220/9221 ...@@ -311,6 +313,7 @@ STAC9220/9221
dell-d82 Dell (unknown) dell-d82 Dell (unknown)
dell-m81 Dell (unknown) dell-m81 Dell (unknown)
dell-m82 Dell XPS M1210 dell-m82 Dell XPS M1210
auto BIOS setup (default)
STAC9202/9250/9251 STAC9202/9250/9251
================== ==================
...@@ -322,6 +325,7 @@ STAC9202/9250/9251 ...@@ -322,6 +325,7 @@ STAC9202/9250/9251
m3 Some Gateway MX series laptops m3 Some Gateway MX series laptops
m5 Some Gateway MX series laptops (MP6954) m5 Some Gateway MX series laptops (MP6954)
m6 Some Gateway NX series laptops m6 Some Gateway NX series laptops
auto BIOS setup (default)
STAC9227/9228/9229/927x STAC9227/9228/9229/927x
======================= =======================
...@@ -331,6 +335,7 @@ STAC9227/9228/9229/927x ...@@ -331,6 +335,7 @@ STAC9227/9228/9229/927x
5stack D965 5stack + SPDIF 5stack D965 5stack + SPDIF
dell-3stack Dell Dimension E520 dell-3stack Dell Dimension E520
dell-bios Fixes with Dell BIOS setup dell-bios Fixes with Dell BIOS setup
auto BIOS setup (default)
STAC92HD71B* STAC92HD71B*
============ ============
...@@ -339,6 +344,7 @@ STAC92HD71B* ...@@ -339,6 +344,7 @@ STAC92HD71B*
dell-m4-2 Dell desktops dell-m4-2 Dell desktops
dell-m4-3 Dell desktops dell-m4-3 Dell desktops
hp-m4 HP dv laptops hp-m4 HP dv laptops
auto BIOS setup (default)
STAC92HD73* STAC92HD73*
=========== ===========
...@@ -348,11 +354,13 @@ STAC92HD73* ...@@ -348,11 +354,13 @@ STAC92HD73*
dell-m6-dmic Dell desktops/laptops with digital mics dell-m6-dmic Dell desktops/laptops with digital mics
dell-m6 Dell desktops/laptops with both type of mics dell-m6 Dell desktops/laptops with both type of mics
dell-eq Dell desktops/laptops dell-eq Dell desktops/laptops
auto BIOS setup (default)
STAC92HD83* STAC92HD83*
=========== ===========
ref Reference board ref Reference board
mic-ref Reference board with power managment for ports mic-ref Reference board with power managment for ports
auto BIOS setup (default)
STAC9872 STAC9872
======== ========
......
...@@ -43,6 +43,7 @@ enum { ...@@ -43,6 +43,7 @@ enum {
}; };
enum { enum {
STAC_AUTO,
STAC_REF, STAC_REF,
STAC_9200_OQO, STAC_9200_OQO,
STAC_9200_DELL_D21, STAC_9200_DELL_D21,
...@@ -62,6 +63,7 @@ enum { ...@@ -62,6 +63,7 @@ enum {
}; };
enum { enum {
STAC_9205_AUTO,
STAC_9205_REF, STAC_9205_REF,
STAC_9205_DELL_M42, STAC_9205_DELL_M42,
STAC_9205_DELL_M43, STAC_9205_DELL_M43,
...@@ -71,6 +73,7 @@ enum { ...@@ -71,6 +73,7 @@ enum {
}; };
enum { enum {
STAC_92HD73XX_AUTO,
STAC_92HD73XX_NO_JD, /* no jack-detection */ STAC_92HD73XX_NO_JD, /* no jack-detection */
STAC_92HD73XX_REF, STAC_92HD73XX_REF,
STAC_DELL_M6_AMIC, STAC_DELL_M6_AMIC,
...@@ -81,6 +84,7 @@ enum { ...@@ -81,6 +84,7 @@ enum {
}; };
enum { enum {
STAC_92HD83XXX_AUTO,
STAC_92HD83XXX_REF, STAC_92HD83XXX_REF,
STAC_92HD83XXX_PWR_REF, STAC_92HD83XXX_PWR_REF,
STAC_DELL_S14, STAC_DELL_S14,
...@@ -88,6 +92,7 @@ enum { ...@@ -88,6 +92,7 @@ enum {
}; };
enum { enum {
STAC_92HD71BXX_AUTO,
STAC_92HD71BXX_REF, STAC_92HD71BXX_REF,
STAC_DELL_M4_1, STAC_DELL_M4_1,
STAC_DELL_M4_2, STAC_DELL_M4_2,
...@@ -98,6 +103,7 @@ enum { ...@@ -98,6 +103,7 @@ enum {
}; };
enum { enum {
STAC_925x_AUTO,
STAC_925x_REF, STAC_925x_REF,
STAC_M1, STAC_M1,
STAC_M1_2, STAC_M1_2,
...@@ -110,6 +116,7 @@ enum { ...@@ -110,6 +116,7 @@ enum {
}; };
enum { enum {
STAC_922X_AUTO,
STAC_D945_REF, STAC_D945_REF,
STAC_D945GTP3, STAC_D945GTP3,
STAC_D945GTP5, STAC_D945GTP5,
...@@ -137,6 +144,7 @@ enum { ...@@ -137,6 +144,7 @@ enum {
}; };
enum { enum {
STAC_927X_AUTO,
STAC_D965_REF_NO_JD, /* no jack-detection */ STAC_D965_REF_NO_JD, /* no jack-detection */
STAC_D965_REF, STAC_D965_REF,
STAC_D965_3ST, STAC_D965_3ST,
...@@ -1488,6 +1496,7 @@ static unsigned int *stac9200_brd_tbl[STAC_9200_MODELS] = { ...@@ -1488,6 +1496,7 @@ static unsigned int *stac9200_brd_tbl[STAC_9200_MODELS] = {
}; };
static const char *stac9200_models[STAC_9200_MODELS] = { static const char *stac9200_models[STAC_9200_MODELS] = {
[STAC_AUTO] = "auto",
[STAC_REF] = "ref", [STAC_REF] = "ref",
[STAC_9200_OQO] = "oqo", [STAC_9200_OQO] = "oqo",
[STAC_9200_DELL_D21] = "dell-d21", [STAC_9200_DELL_D21] = "dell-d21",
...@@ -1633,6 +1642,7 @@ static unsigned int *stac925x_brd_tbl[STAC_925x_MODELS] = { ...@@ -1633,6 +1642,7 @@ static unsigned int *stac925x_brd_tbl[STAC_925x_MODELS] = {
}; };
static const char *stac925x_models[STAC_925x_MODELS] = { static const char *stac925x_models[STAC_925x_MODELS] = {
[STAC_925x_AUTO] = "auto",
[STAC_REF] = "ref", [STAC_REF] = "ref",
[STAC_M1] = "m1", [STAC_M1] = "m1",
[STAC_M1_2] = "m1-2", [STAC_M1_2] = "m1-2",
...@@ -1692,6 +1702,7 @@ static unsigned int *stac92hd73xx_brd_tbl[STAC_92HD73XX_MODELS] = { ...@@ -1692,6 +1702,7 @@ static unsigned int *stac92hd73xx_brd_tbl[STAC_92HD73XX_MODELS] = {
}; };
static const char *stac92hd73xx_models[STAC_92HD73XX_MODELS] = { static const char *stac92hd73xx_models[STAC_92HD73XX_MODELS] = {
[STAC_92HD73XX_AUTO] = "auto",
[STAC_92HD73XX_NO_JD] = "no-jd", [STAC_92HD73XX_NO_JD] = "no-jd",
[STAC_92HD73XX_REF] = "ref", [STAC_92HD73XX_REF] = "ref",
[STAC_DELL_M6_AMIC] = "dell-m6-amic", [STAC_DELL_M6_AMIC] = "dell-m6-amic",
...@@ -1748,6 +1759,7 @@ static unsigned int *stac92hd83xxx_brd_tbl[STAC_92HD83XXX_MODELS] = { ...@@ -1748,6 +1759,7 @@ static unsigned int *stac92hd83xxx_brd_tbl[STAC_92HD83XXX_MODELS] = {
}; };
static const char *stac92hd83xxx_models[STAC_92HD83XXX_MODELS] = { static const char *stac92hd83xxx_models[STAC_92HD83XXX_MODELS] = {
[STAC_92HD83XXX_AUTO] = "auto",
[STAC_92HD83XXX_REF] = "ref", [STAC_92HD83XXX_REF] = "ref",
[STAC_92HD83XXX_PWR_REF] = "mic-ref", [STAC_92HD83XXX_PWR_REF] = "mic-ref",
[STAC_DELL_S14] = "dell-s14", [STAC_DELL_S14] = "dell-s14",
...@@ -1802,6 +1814,7 @@ static unsigned int *stac92hd71bxx_brd_tbl[STAC_92HD71BXX_MODELS] = { ...@@ -1802,6 +1814,7 @@ static unsigned int *stac92hd71bxx_brd_tbl[STAC_92HD71BXX_MODELS] = {
}; };
static const char *stac92hd71bxx_models[STAC_92HD71BXX_MODELS] = { static const char *stac92hd71bxx_models[STAC_92HD71BXX_MODELS] = {
[STAC_92HD71BXX_AUTO] = "auto",
[STAC_92HD71BXX_REF] = "ref", [STAC_92HD71BXX_REF] = "ref",
[STAC_DELL_M4_1] = "dell-m4-1", [STAC_DELL_M4_1] = "dell-m4-1",
[STAC_DELL_M4_2] = "dell-m4-2", [STAC_DELL_M4_2] = "dell-m4-2",
...@@ -1973,6 +1986,7 @@ static unsigned int *stac922x_brd_tbl[STAC_922X_MODELS] = { ...@@ -1973,6 +1986,7 @@ static unsigned int *stac922x_brd_tbl[STAC_922X_MODELS] = {
}; };
static const char *stac922x_models[STAC_922X_MODELS] = { static const char *stac922x_models[STAC_922X_MODELS] = {
[STAC_922X_AUTO] = "auto",
[STAC_D945_REF] = "ref", [STAC_D945_REF] = "ref",
[STAC_D945GTP5] = "5stack", [STAC_D945GTP5] = "5stack",
[STAC_D945GTP3] = "3stack", [STAC_D945GTP3] = "3stack",
...@@ -2125,6 +2139,7 @@ static unsigned int *stac927x_brd_tbl[STAC_927X_MODELS] = { ...@@ -2125,6 +2139,7 @@ static unsigned int *stac927x_brd_tbl[STAC_927X_MODELS] = {
}; };
static const char *stac927x_models[STAC_927X_MODELS] = { static const char *stac927x_models[STAC_927X_MODELS] = {
[STAC_927X_AUTO] = "auto",
[STAC_D965_REF_NO_JD] = "ref-no-jd", [STAC_D965_REF_NO_JD] = "ref-no-jd",
[STAC_D965_REF] = "ref", [STAC_D965_REF] = "ref",
[STAC_D965_3ST] = "3stack", [STAC_D965_3ST] = "3stack",
...@@ -2222,6 +2237,7 @@ static unsigned int *stac9205_brd_tbl[STAC_9205_MODELS] = { ...@@ -2222,6 +2237,7 @@ static unsigned int *stac9205_brd_tbl[STAC_9205_MODELS] = {
}; };
static const char *stac9205_models[STAC_9205_MODELS] = { static const char *stac9205_models[STAC_9205_MODELS] = {
[STAC_9205_AUTO] = "auto",
[STAC_9205_REF] = "ref", [STAC_9205_REF] = "ref",
[STAC_9205_DELL_M42] = "dell-m42", [STAC_9205_DELL_M42] = "dell-m42",
[STAC_9205_DELL_M43] = "dell-m43", [STAC_9205_DELL_M43] = "dell-m43",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册