Commit e28d8322 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Fix silent HP output on D975

Some desktops seems to have no HP/mic jack detection on the front panel,
which results in the silent output in the recent driver, because the
driver mutes the output (to save power) when no plug is detected.

This patch adds a new model that disables the jack-detection.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 1bda7128
...@@ -1063,6 +1063,7 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed. ...@@ -1063,6 +1063,7 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed.
STAC9227/9228/9229/927x STAC9227/9228/9229/927x
ref Reference board ref Reference board
ref-no-jd Reference board without HP/Mic jack detection
3stack D965 3stack 3stack D965 3stack
5stack D965 5stack + SPDIF 5stack D965 5stack + SPDIF
dell-3stack Dell Dimension E520 dell-3stack Dell Dimension E520
......
...@@ -127,6 +127,7 @@ enum { ...@@ -127,6 +127,7 @@ enum {
}; };
enum { enum {
STAC_D965_REF_NO_JD, /* no jack-detection */
STAC_D965_REF, STAC_D965_REF,
STAC_D965_3ST, STAC_D965_3ST,
STAC_D965_5ST, STAC_D965_5ST,
...@@ -2027,6 +2028,7 @@ static unsigned int dell_3st_pin_configs[14] = { ...@@ -2027,6 +2028,7 @@ static unsigned int dell_3st_pin_configs[14] = {
}; };
static unsigned int *stac927x_brd_tbl[STAC_927X_MODELS] = { static unsigned int *stac927x_brd_tbl[STAC_927X_MODELS] = {
[STAC_D965_REF_NO_JD] = ref927x_pin_configs,
[STAC_D965_REF] = ref927x_pin_configs, [STAC_D965_REF] = ref927x_pin_configs,
[STAC_D965_3ST] = d965_3st_pin_configs, [STAC_D965_3ST] = d965_3st_pin_configs,
[STAC_D965_5ST] = d965_5st_pin_configs, [STAC_D965_5ST] = d965_5st_pin_configs,
...@@ -2035,6 +2037,7 @@ static unsigned int *stac927x_brd_tbl[STAC_927X_MODELS] = { ...@@ -2035,6 +2037,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_D965_REF_NO_JD] = "ref-no-jd",
[STAC_D965_REF] = "ref", [STAC_D965_REF] = "ref",
[STAC_D965_3ST] = "3stack", [STAC_D965_3ST] = "3stack",
[STAC_D965_5ST] = "5stack", [STAC_D965_5ST] = "5stack",
...@@ -4899,6 +4902,10 @@ static int patch_stac927x(struct hda_codec *codec) ...@@ -4899,6 +4902,10 @@ static int patch_stac927x(struct hda_codec *codec)
*/ */
codec->bus->needs_damn_long_delay = 1; codec->bus->needs_damn_long_delay = 1;
/* no jack detecion for ref-no-jd model */
if (spec->board_config == STAC_D965_REF_NO_JD)
spec->hp_detect = 0;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment