aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-11-17 05:09:23 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:17:26 -0500
commit8d88bc3d361bdd81a214eb9c5d06b291d06c603a (patch)
treedc3bfd15ff731e55bc8c2e29f54d050325a9ee1a /sound/pci/hda/hda_codec.c
parenta2a20939b1cc82222eb67a4631009338791f1acd (diff)
[ALSA] hda-codec - Fix assignment of speaker pin
Modules: HDA Codec driver,HDA generic driver Fix the auto-assignment of speaker pin. Handle it independently from line-out pins. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r--sound/pci/hda/hda_codec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index cfd50b56187b..2e9f5877386e 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -1889,7 +1889,6 @@ int snd_hda_parse_pin_def_config(struct hda_codec *codec, struct auto_pin_cfg *c
1889 loc = get_defcfg_location(def_conf); 1889 loc = get_defcfg_location(def_conf);
1890 switch (get_defcfg_device(def_conf)) { 1890 switch (get_defcfg_device(def_conf)) {
1891 case AC_JACK_LINE_OUT: 1891 case AC_JACK_LINE_OUT:
1892 case AC_JACK_SPEAKER:
1893 seq = get_defcfg_sequence(def_conf); 1892 seq = get_defcfg_sequence(def_conf);
1894 assoc = get_defcfg_association(def_conf); 1893 assoc = get_defcfg_association(def_conf);
1895 if (! assoc) 1894 if (! assoc)
@@ -1904,6 +1903,9 @@ int snd_hda_parse_pin_def_config(struct hda_codec *codec, struct auto_pin_cfg *c
1904 sequences[cfg->line_outs] = seq; 1903 sequences[cfg->line_outs] = seq;
1905 cfg->line_outs++; 1904 cfg->line_outs++;
1906 break; 1905 break;
1906 case AC_JACK_SPEAKER:
1907 cfg->speaker_pin = nid;
1908 break;
1907 case AC_JACK_HP_OUT: 1909 case AC_JACK_HP_OUT:
1908 cfg->hp_pin = nid; 1910 cfg->hp_pin = nid;
1909 break; 1911 break;