[alsa-devel] [PATCH] ALSA: hda: Add support for Medion WIM2160
This adds support for the Medion WIM2160 soundcard. There's no PCI quirk added because it has the same PCI id as the Medion MD2.
Signed-off-by: Maurus Cuelenaere mcuelenaere@gmail.com --- sound/pci/hda/patch_realtek.c | 53 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 53 insertions(+), 0 deletions(-)
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index da34095..79833e6 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -226,6 +226,7 @@ enum { ALC888_ACER_ASPIRE_7730G, ALC883_MEDION, ALC883_MEDION_MD2, + ALC883_MEDION_WIM2160, ALC883_LAPTOP_EAPD, ALC883_LENOVO_101E_2ch, ALC883_LENOVO_NB0763, @@ -8247,6 +8248,42 @@ static struct snd_kcontrol_new alc883_medion_md2_mixer[] = { { } /* end */ };
+static struct snd_kcontrol_new alc883_medion_wim2160_mixer[] = { + HDA_CODEC_VOLUME("Front Playback Volume", 0x0c, 0x0, HDA_OUTPUT), + HDA_BIND_MUTE("Front Playback Switch", 0x0c, 2, HDA_INPUT), + HDA_CODEC_MUTE("Speaker Playback Switch", 0x15, 0x0, HDA_OUTPUT), + HDA_CODEC_MUTE("Headphone Playback Switch", 0x1a, 0x0, HDA_OUTPUT), + HDA_CODEC_VOLUME("Line Playback Volume", 0x08, 0x0, HDA_INPUT), + HDA_CODEC_MUTE("Line Playback Switch", 0x08, 0x0, HDA_INPUT), + { } /* end */ +}; + +static struct hda_verb alc883_medion_wim2160_verbs[] = { + /* Unmute front mixer */ + {0x0c, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)}, + {0x0c, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(1)}, + + /* Set speaker pin to front mixer */ + {0x15, AC_VERB_SET_CONNECT_SEL, 0x00}, + + /* Init headphone pin */ + {0x1a, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP}, + {0x1a, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, + {0x1a, AC_VERB_SET_CONNECT_SEL, 0x00}, + {0x1a, AC_VERB_SET_UNSOLICITED_ENABLE, ALC880_HP_EVENT | AC_USRSP_EN}, + + { } /* end */ +}; + +/* toggle speaker-output according to the hp-jack state */ +static void alc883_medion_wim2160_setup(struct hda_codec *codec) +{ + struct alc_spec *spec = codec->spec; + + spec->autocfg.hp_pins[0] = 0x1a; + spec->autocfg.speaker_pins[0] = 0x15; +} + static struct snd_kcontrol_new alc883_acer_aspire_mixer[] = { HDA_CODEC_VOLUME("Front Playback Volume", 0x0c, 0x0, HDA_OUTPUT), HDA_BIND_MUTE("Front Playback Switch", 0x0c, 2, HDA_INPUT), @@ -8956,6 +8993,7 @@ static const char *alc882_models[ALC882_MODEL_LAST] = { [ALC888_ACER_ASPIRE_7730G] = "acer-aspire-7730g", [ALC883_MEDION] = "medion", [ALC883_MEDION_MD2] = "medion-md2", + [ALC883_MEDION_WIM2160] = "medion-wim2160", [ALC883_LAPTOP_EAPD] = "laptop-eapd", [ALC883_LENOVO_101E_2ch] = "lenovo-101e", [ALC883_LENOVO_NB0763] = "lenovo-nb0763", @@ -9578,6 +9616,21 @@ static struct alc_config_preset alc882_presets[] = { .setup = alc883_medion_md2_setup, .init_hook = alc_automute_amp, }, + [ALC883_MEDION_WIM2160] = { + .mixers = { alc883_medion_wim2160_mixer }, + .init_verbs = { alc883_init_verbs, alc883_medion_wim2160_verbs }, + .num_dacs = ARRAY_SIZE(alc883_dac_nids), + .dac_nids = alc883_dac_nids, + .dig_out_nid = ALC883_DIGOUT_NID, + .num_adc_nids = ARRAY_SIZE(alc883_adc_nids), + .adc_nids = alc883_adc_nids, + .num_channel_mode = ARRAY_SIZE(alc883_3ST_2ch_modes), + .channel_mode = alc883_3ST_2ch_modes, + .input_mux = &alc883_capture_source, + .unsol_event = alc_automute_amp_unsol_event, + .setup = alc883_medion_wim2160_setup, + .init_hook = alc_automute_amp, + }, [ALC883_LAPTOP_EAPD] = { .mixers = { alc883_base_mixer }, .init_verbs = { alc883_init_verbs, alc882_eapd_verbs },
At Tue, 6 Apr 2010 18:12:52 +0200, Maurus Cuelenaere wrote:
This adds support for the Medion WIM2160 soundcard. There's no PCI quirk added because it has the same PCI id as the Medion MD2.
Signed-off-by: Maurus Cuelenaere mcuelenaere@gmail.com
Thanks for the patch.
Before applying it, a usual question -- doesn't model=auto work for your device? If not, please give alsa-info.sh output (run with --no-upload option).
thanks,
Takashi
sound/pci/hda/patch_realtek.c | 53 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 53 insertions(+), 0 deletions(-)
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index da34095..79833e6 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -226,6 +226,7 @@ enum { ALC888_ACER_ASPIRE_7730G, ALC883_MEDION, ALC883_MEDION_MD2,
- ALC883_MEDION_WIM2160, ALC883_LAPTOP_EAPD, ALC883_LENOVO_101E_2ch, ALC883_LENOVO_NB0763,
@@ -8247,6 +8248,42 @@ static struct snd_kcontrol_new alc883_medion_md2_mixer[] = { { } /* end */ };
+static struct snd_kcontrol_new alc883_medion_wim2160_mixer[] = {
- HDA_CODEC_VOLUME("Front Playback Volume", 0x0c, 0x0, HDA_OUTPUT),
- HDA_BIND_MUTE("Front Playback Switch", 0x0c, 2, HDA_INPUT),
- HDA_CODEC_MUTE("Speaker Playback Switch", 0x15, 0x0, HDA_OUTPUT),
- HDA_CODEC_MUTE("Headphone Playback Switch", 0x1a, 0x0, HDA_OUTPUT),
- HDA_CODEC_VOLUME("Line Playback Volume", 0x08, 0x0, HDA_INPUT),
- HDA_CODEC_MUTE("Line Playback Switch", 0x08, 0x0, HDA_INPUT),
- { } /* end */
+};
+static struct hda_verb alc883_medion_wim2160_verbs[] = {
- /* Unmute front mixer */
- {0x0c, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)},
- {0x0c, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(1)},
- /* Set speaker pin to front mixer */
- {0x15, AC_VERB_SET_CONNECT_SEL, 0x00},
- /* Init headphone pin */
- {0x1a, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP},
- {0x1a, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE},
- {0x1a, AC_VERB_SET_CONNECT_SEL, 0x00},
- {0x1a, AC_VERB_SET_UNSOLICITED_ENABLE, ALC880_HP_EVENT | AC_USRSP_EN},
- { } /* end */
+};
+/* toggle speaker-output according to the hp-jack state */ +static void alc883_medion_wim2160_setup(struct hda_codec *codec) +{
- struct alc_spec *spec = codec->spec;
- spec->autocfg.hp_pins[0] = 0x1a;
- spec->autocfg.speaker_pins[0] = 0x15;
+}
static struct snd_kcontrol_new alc883_acer_aspire_mixer[] = { HDA_CODEC_VOLUME("Front Playback Volume", 0x0c, 0x0, HDA_OUTPUT), HDA_BIND_MUTE("Front Playback Switch", 0x0c, 2, HDA_INPUT), @@ -8956,6 +8993,7 @@ static const char *alc882_models[ALC882_MODEL_LAST] = { [ALC888_ACER_ASPIRE_7730G] = "acer-aspire-7730g", [ALC883_MEDION] = "medion", [ALC883_MEDION_MD2] = "medion-md2",
- [ALC883_MEDION_WIM2160] = "medion-wim2160", [ALC883_LAPTOP_EAPD] = "laptop-eapd", [ALC883_LENOVO_101E_2ch] = "lenovo-101e", [ALC883_LENOVO_NB0763] = "lenovo-nb0763",
@@ -9578,6 +9616,21 @@ static struct alc_config_preset alc882_presets[] = { .setup = alc883_medion_md2_setup, .init_hook = alc_automute_amp, },
- [ALC883_MEDION_WIM2160] = {
.mixers = { alc883_medion_wim2160_mixer },
.init_verbs = { alc883_init_verbs, alc883_medion_wim2160_verbs },
.num_dacs = ARRAY_SIZE(alc883_dac_nids),
.dac_nids = alc883_dac_nids,
.dig_out_nid = ALC883_DIGOUT_NID,
.num_adc_nids = ARRAY_SIZE(alc883_adc_nids),
.adc_nids = alc883_adc_nids,
.num_channel_mode = ARRAY_SIZE(alc883_3ST_2ch_modes),
.channel_mode = alc883_3ST_2ch_modes,
.input_mux = &alc883_capture_source,
.unsol_event = alc_automute_amp_unsol_event,
.setup = alc883_medion_wim2160_setup,
.init_hook = alc_automute_amp,
- }, [ALC883_LAPTOP_EAPD] = { .mixers = { alc883_base_mixer }, .init_verbs = { alc883_init_verbs, alc882_eapd_verbs },
-- 1.7.0.3 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Sorry, forgot to reply-all.
On Tue, Apr 6, 2010 at 19:03, Takashi Iwai tiwai@suse.de wrote:
At Tue, 6 Apr 2010 18:12:52 +0200, Maurus Cuelenaere wrote:
This adds support for the Medion WIM2160 soundcard. There's no PCI quirk added because it has the same PCI id as the Medion MD2.
Signed-off-by: Maurus Cuelenaere mcuelenaere@gmail.com
Thanks for the patch.
Before applying it, a usual question -- doesn't model=auto work for your device? If not, please give alsa-info.sh output (run with --no-upload option).
Last time I tried, it didn't. Do you want me to retry?
Attached is the output of alsa-info.sh with the patch applied (and model=medion-wim2160).
At Tue, 6 Apr 2010 19:08:45 +0200, Maurus Cuelenaere wrote:
[1 <text/plain; UTF-8 (quoted-printable)>] Sorry, forgot to reply-all.
On Tue, Apr 6, 2010 at 19:03, Takashi Iwai tiwai@suse.de wrote:
At Tue, 6 Apr 2010 18:12:52 +0200, Maurus Cuelenaere wrote:
This adds support for the Medion WIM2160 soundcard. There's no PCI quirk added because it has the same PCI id as the Medion MD2.
Signed-off-by: Maurus Cuelenaere mcuelenaere@gmail.com
Thanks for the patch.
Before applying it, a usual question -- doesn't model=auto work for your device? If not, please give alsa-info.sh output (run with --no-upload option).
Last time I tried, it didn't. Do you want me to retry?
Yes, please. Please elaborate what didn't work, and give the corresponding alsa-inf.sh output, too.
thanks,
Takashi
Op 07-04-10 08:08, Takashi Iwai schreef:
At Tue, 6 Apr 2010 19:08:45 +0200, Maurus Cuelenaere wrote:
[1<text/plain; UTF-8 (quoted-printable)>] Sorry, forgot to reply-all.
On Tue, Apr 6, 2010 at 19:03, Takashi Iwaitiwai@suse.de wrote:
At Tue, 6 Apr 2010 18:12:52 +0200, Maurus Cuelenaere wrote:
This adds support for the Medion WIM2160 soundcard. There's no PCI quirk added because it has the same PCI id as the Medion MD2.
Signed-off-by: Maurus Cuelenaeremcuelenaere@gmail.com
Thanks for the patch.
Before applying it, a usual question -- doesn't model=auto work for your device? If not, please give alsa-info.sh output (run with --no-upload option).
Last time I tried, it didn't. Do you want me to retry?
Yes, please. Please elaborate what didn't work, and give the corresponding alsa-inf.sh output, too.
I've tried several different configurations, all of these were performed by booting the kernel with bootparameter "snd-hda-intel.model=<model>"
model=medion-wim2160: audio works, hp switching works, hp works model=generic: audio works, hp does not no parameters: nothing works model=auto: audio works, hp does not
The odd thing is that yesterday model=auto worked great, even including automatic headphone switching.. Does the HDA chip perhaps retain its configuration across warm/cold reboots?
Also, sometimes I needed to unmute and increase the volume when booting some configurations.
At Wed, 07 Apr 2010 13:48:28 +0200, Maurus Cuelenaere wrote:
Op 07-04-10 08:08, Takashi Iwai schreef:
At Tue, 6 Apr 2010 19:08:45 +0200, Maurus Cuelenaere wrote:
[1<text/plain; UTF-8 (quoted-printable)>] Sorry, forgot to reply-all.
On Tue, Apr 6, 2010 at 19:03, Takashi Iwaitiwai@suse.de wrote:
At Tue, 6 Apr 2010 18:12:52 +0200, Maurus Cuelenaere wrote:
This adds support for the Medion WIM2160 soundcard. There's no PCI quirk added because it has the same PCI id as the Medion MD2.
Signed-off-by: Maurus Cuelenaeremcuelenaere@gmail.com
Thanks for the patch.
Before applying it, a usual question -- doesn't model=auto work for your device? If not, please give alsa-info.sh output (run with --no-upload option).
Last time I tried, it didn't. Do you want me to retry?
Yes, please. Please elaborate what didn't work, and give the corresponding alsa-inf.sh output, too.
I've tried several different configurations, all of these were performed by booting the kernel with bootparameter "snd-hda-intel.model=<model>"
model=medion-wim2160: audio works, hp switching works, hp works model=generic: audio works, hp does not no parameters: nothing works model=auto: audio works, hp does not
The odd thing is that yesterday model=auto worked great, even including automatic headphone switching.. Does the HDA chip perhaps retain its configuration across warm/cold reboots?
Also, sometimes I needed to unmute and increase the volume when booting some configurations.
I fixed a few things today, and it might have broken. Or your version didn't include the fix yet? Anyway, please specify what version you've tested.
If you tested git tree, use git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6.git either master, for-next or topic/hda branch.
If you build from alsa-driver external tree, use snapshot tarball ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz
The corresponding GIT commits can be found in alsa-driver/HEAD and alsa-driver/alsa-kernel/HEAD files.
thanks,
Takashi
Op 07-04-10 13:58, Takashi Iwai schreef:
At Wed, 07 Apr 2010 13:48:28 +0200, Maurus Cuelenaere wrote:
Op 07-04-10 08:08, Takashi Iwai schreef:
At Tue, 6 Apr 2010 19:08:45 +0200, Maurus Cuelenaere wrote:
[1<text/plain; UTF-8 (quoted-printable)>] Sorry, forgot to reply-all.
On Tue, Apr 6, 2010 at 19:03, Takashi Iwaitiwai@suse.de wrote:
At Tue, 6 Apr 2010 18:12:52 +0200, Maurus Cuelenaere wrote:
This adds support for the Medion WIM2160 soundcard. There's no PCI quirk added because it has the same PCI id as the Medion MD2.
Signed-off-by: Maurus Cuelenaeremcuelenaere@gmail.com
Thanks for the patch.
Before applying it, a usual question -- doesn't model=auto work for your device? If not, please give alsa-info.sh output (run with --no-upload option).
Last time I tried, it didn't. Do you want me to retry?
Yes, please. Please elaborate what didn't work, and give the corresponding alsa-inf.sh output, too.
I've tried several different configurations, all of these were performed by booting the kernel with bootparameter "snd-hda-intel.model=<model>"
model=medion-wim2160: audio works, hp switching works, hp works model=generic: audio works, hp does not no parameters: nothing works model=auto: audio works, hp does not
The odd thing is that yesterday model=auto worked great, even including automatic headphone switching.. Does the HDA chip perhaps retain its configuration across warm/cold reboots?
Also, sometimes I needed to unmute and increase the volume when booting some configurations.
I fixed a few things today, and it might have broken. Or your version didn't include the fix yet? Anyway, please specify what version you've tested.
If you tested git tree, use git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6.git either master, for-next or topic/hda branch.
If you build from alsa-driver external tree, use snapshot tarball ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz
The corresponding GIT commits can be found in alsa-driver/HEAD and alsa-driver/alsa-kernel/HEAD files.
I've been using official 2.6.33, I can try your git tree.
Do you want me to test it with model=auto?
At Wed, 07 Apr 2010 13:59:37 +0200, Maurus Cuelenaere wrote:
Op 07-04-10 13:58, Takashi Iwai schreef:
At Wed, 07 Apr 2010 13:48:28 +0200, Maurus Cuelenaere wrote:
Op 07-04-10 08:08, Takashi Iwai schreef:
At Tue, 6 Apr 2010 19:08:45 +0200, Maurus Cuelenaere wrote:
[1<text/plain; UTF-8 (quoted-printable)>] Sorry, forgot to reply-all.
On Tue, Apr 6, 2010 at 19:03, Takashi Iwaitiwai@suse.de wrote:
At Tue, 6 Apr 2010 18:12:52 +0200, Maurus Cuelenaere wrote:
> This adds support for the Medion WIM2160 soundcard. > There's no PCI quirk added because it has the same PCI id as the > Medion MD2. > > Signed-off-by: Maurus Cuelenaeremcuelenaere@gmail.com > > Thanks for the patch.
Before applying it, a usual question -- doesn't model=auto work for your device? If not, please give alsa-info.sh output (run with --no-upload option).
Last time I tried, it didn't. Do you want me to retry?
Yes, please. Please elaborate what didn't work, and give the corresponding alsa-inf.sh output, too.
I've tried several different configurations, all of these were performed by booting the kernel with bootparameter "snd-hda-intel.model=<model>"
model=medion-wim2160: audio works, hp switching works, hp works model=generic: audio works, hp does not no parameters: nothing works model=auto: audio works, hp does not
The odd thing is that yesterday model=auto worked great, even including automatic headphone switching.. Does the HDA chip perhaps retain its configuration across warm/cold reboots?
Also, sometimes I needed to unmute and increase the volume when booting some configurations.
I fixed a few things today, and it might have broken. Or your version didn't include the fix yet? Anyway, please specify what version you've tested.
If you tested git tree, use git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6.git either master, for-next or topic/hda branch.
If you build from alsa-driver external tree, use snapshot tarball ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz
The corresponding GIT commits can be found in alsa-driver/HEAD and alsa-driver/alsa-kernel/HEAD files.
I've been using official 2.6.33, I can try your git tree.
Do you want me to test it with model=auto?
Yes. That's the very reason :)
Takashi
Op 07-04-10 14:02, Takashi Iwai schreef:
At Wed, 07 Apr 2010 13:59:37 +0200, Maurus Cuelenaere wrote:
Op 07-04-10 13:58, Takashi Iwai schreef:
At Wed, 07 Apr 2010 13:48:28 +0200, Maurus Cuelenaere wrote:
Op 07-04-10 08:08, Takashi Iwai schreef:
At Tue, 6 Apr 2010 19:08:45 +0200, Maurus Cuelenaere wrote:
[1<text/plain; UTF-8 (quoted-printable)>] Sorry, forgot to reply-all.
On Tue, Apr 6, 2010 at 19:03, Takashi Iwaitiwai@suse.de wrote:
> At Tue, 6 Apr 2010 18:12:52 +0200, > Maurus Cuelenaere wrote: > > > >> This adds support for the Medion WIM2160 soundcard. >> There's no PCI quirk added because it has the same PCI id as the >> Medion MD2. >> >> Signed-off-by: Maurus Cuelenaeremcuelenaere@gmail.com >> >> >> > Thanks for the patch. > > Before applying it, a usual question -- doesn't model=auto work for > your device? If not, please give alsa-info.sh output (run with > --no-upload option). > > > > Last time I tried, it didn't. Do you want me to retry?
Yes, please. Please elaborate what didn't work, and give the corresponding alsa-inf.sh output, too.
I've tried several different configurations, all of these were performed by booting the kernel with bootparameter "snd-hda-intel.model=<model>"
model=medion-wim2160: audio works, hp switching works, hp works model=generic: audio works, hp does not no parameters: nothing works model=auto: audio works, hp does not
The odd thing is that yesterday model=auto worked great, even including automatic headphone switching.. Does the HDA chip perhaps retain its configuration across warm/cold reboots?
Also, sometimes I needed to unmute and increase the volume when booting some configurations.
I fixed a few things today, and it might have broken. Or your version didn't include the fix yet? Anyway, please specify what version you've tested.
If you tested git tree, use git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6.git either master, for-next or topic/hda branch.
If you build from alsa-driver external tree, use snapshot tarball ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz
The corresponding GIT commits can be found in alsa-driver/HEAD and alsa-driver/alsa-kernel/HEAD files.
I've been using official 2.6.33, I can try your git tree.
Do you want me to test it with model=auto?
Yes. That's the very reason :)
Audio works, headphone output does not and so does automatic speaker-headphone switching (haven't tested line in).
Attached is the output of alsa-info.sh
Tested version was commit 489008cd58740fe3842822681d33bf87c07c3412 on branch sound-2.6/topic/hda.
At Wed, 07 Apr 2010 14:35:36 +0200, Maurus Cuelenaere wrote:
Op 07-04-10 14:02, Takashi Iwai schreef:
At Wed, 07 Apr 2010 13:59:37 +0200, Maurus Cuelenaere wrote:
Op 07-04-10 13:58, Takashi Iwai schreef:
At Wed, 07 Apr 2010 13:48:28 +0200, Maurus Cuelenaere wrote:
Op 07-04-10 08:08, Takashi Iwai schreef:
At Tue, 6 Apr 2010 19:08:45 +0200, Maurus Cuelenaere wrote:
> [1<text/plain; UTF-8 (quoted-printable)>] > Sorry, forgot to reply-all. > > On Tue, Apr 6, 2010 at 19:03, Takashi Iwaitiwai@suse.de wrote: > > > >> At Tue, 6 Apr 2010 18:12:52 +0200, >> Maurus Cuelenaere wrote: >> >> >> >>> This adds support for the Medion WIM2160 soundcard. >>> There's no PCI quirk added because it has the same PCI id as the >>> Medion MD2. >>> >>> Signed-off-by: Maurus Cuelenaeremcuelenaere@gmail.com >>> >>> >>> >> Thanks for the patch. >> >> Before applying it, a usual question -- doesn't model=auto work for >> your device? If not, please give alsa-info.sh output (run with >> --no-upload option). >> >> >> >> > Last time I tried, it didn't. Do you want me to retry? > > > Yes, please. Please elaborate what didn't work, and give the corresponding alsa-inf.sh output, too.
I've tried several different configurations, all of these were performed by booting the kernel with bootparameter "snd-hda-intel.model=<model>"
model=medion-wim2160: audio works, hp switching works, hp works model=generic: audio works, hp does not no parameters: nothing works model=auto: audio works, hp does not
The odd thing is that yesterday model=auto worked great, even including automatic headphone switching.. Does the HDA chip perhaps retain its configuration across warm/cold reboots?
Also, sometimes I needed to unmute and increase the volume when booting some configurations.
I fixed a few things today, and it might have broken. Or your version didn't include the fix yet? Anyway, please specify what version you've tested.
If you tested git tree, use git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6.git either master, for-next or topic/hda branch.
If you build from alsa-driver external tree, use snapshot tarball ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz
The corresponding GIT commits can be found in alsa-driver/HEAD and alsa-driver/alsa-kernel/HEAD files.
I've been using official 2.6.33, I can try your git tree.
Do you want me to test it with model=auto?
Yes. That's the very reason :)
Audio works, headphone output does not and so does automatic speaker-headphone switching (haven't tested line in).
Attached is the output of alsa-info.sh
Tested version was commit 489008cd58740fe3842822681d33bf87c07c3412 on branch sound-2.6/topic/hda.
OK, thanks for checking. The problem is that BIOS doesn't set up the pins correctly, especially the headphone pin. So, the quirk is mandatory, more or less.
I applied your patch to fix/hda branch now.
thanks,
Takashi
Op 07-04-10 14:57, Takashi Iwai schreef:
At Wed, 07 Apr 2010 14:35:36 +0200, Maurus Cuelenaere wrote:
Audio works, headphone output does not and so does automatic speaker-headphone switching (haven't tested line in).
Attached is the output of alsa-info.sh
Tested version was commit 489008cd58740fe3842822681d33bf87c07c3412 on branch sound-2.6/topic/hda.
OK, thanks for checking. The problem is that BIOS doesn't set up the pins correctly, especially the headphone pin. So, the quirk is mandatory, more or less.
I applied your patch to fix/hda branch now.
Ok, thanks.
participants (2)
-
Maurus Cuelenaere
-
Takashi Iwai