mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: "Jan-Simon Möller" <dl9pf@gmx.de>
Cc: alsa-devel@alsa-project.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [alsa-devel]	hda-intel: no soundcard with current linus' git	tree
Date: Thu, 18 Oct 2007 16:39:50 +0200	[thread overview]
Message-ID: <s5hzlygzdu1.wl%tiwai@suse.de> (raw)
In-Reply-To: <200710181705.18265.dl9pf@gmx.de>

At Thu, 18 Oct 2007 17:05:17 +0200,
Jan-Simon Möller wrote:
> 
> Hi !
> 
> I compiled some different kernel and tried - no success without module, 
> module=fujitsu, module=laptop, model=asus. I went through the alsa doc and 
> found the section about Conexant 5047. I tried it and got some sound when 
> using module=laptop-hp.

No, it's Conexant 5045.  Slightly but fatally different from 5047.

Could you check whether the patch below fixes the problem?
Don't forget to adjust mixers after the patch.  You'll have PCM
and other volumes.  Unmute and raise them appropriately.

You may still have a weak mic input, though, but it's another
problem...


thanks,

Takashi

diff -r fb9512ce24e0 pci/hda/patch_conexant.c
--- a/pci/hda/patch_conexant.c	Thu Oct 18 10:48:43 2007 +0200
+++ b/pci/hda/patch_conexant.c	Thu Oct 18 17:26:58 2007 +0200
@@ -554,10 +554,16 @@ static struct snd_kcontrol_new cxt5045_m
 		.get = conexant_mux_enum_get,
 		.put = conexant_mux_enum_put
 	},
-	HDA_CODEC_VOLUME("Int Mic Volume", 0x1a, 0x01, HDA_INPUT),
-	HDA_CODEC_MUTE("Int Mic Switch", 0x1a, 0x01, HDA_INPUT),
-	HDA_CODEC_VOLUME("Ext Mic Volume", 0x1a, 0x02, HDA_INPUT),
-	HDA_CODEC_MUTE("Ext Mic Switch", 0x1a, 0x02, HDA_INPUT),
+	HDA_CODEC_VOLUME("Int Mic Capture Volume", 0x1a, 0x01, HDA_INPUT),
+	HDA_CODEC_MUTE("Int Mic Capture Switch", 0x1a, 0x01, HDA_INPUT),
+	HDA_CODEC_VOLUME("Ext Mic Capture Volume", 0x1a, 0x02, HDA_INPUT),
+	HDA_CODEC_MUTE("Ext Mic Capture Switch", 0x1a, 0x02, HDA_INPUT),
+	HDA_CODEC_VOLUME("PCM Playback Volume", 0x17, 0x0, HDA_INPUT),
+	HDA_CODEC_MUTE("PCM Playback Switch", 0x17, 0x0, HDA_INPUT),
+	HDA_CODEC_VOLUME("Int Mic Playback Volume", 0x17, 0x1, HDA_INPUT),
+	HDA_CODEC_MUTE("Int Mic Playback Switch", 0x17, 0x1, HDA_INPUT),
+	HDA_CODEC_VOLUME("Ext Mic Playback Volume", 0x17, 0x2, HDA_INPUT),
+	HDA_CODEC_MUTE("Ext Mic Playback Switch", 0x17, 0x2, HDA_INPUT),
 	HDA_BIND_VOL("Master Playback Volume", &cxt5045_hp_bind_master_vol),
 	{
 		.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
@@ -576,16 +582,15 @@ static struct hda_verb cxt5045_init_verb
 	{0x12, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN },
 	{0x14, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN|AC_PINCTL_VREF_80 },
 	/* HP, Amp  */
-	{0x11, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP },
-	{0x17, AC_VERB_SET_CONNECT_SEL,0x01},
-	{0x17, AC_VERB_SET_AMP_GAIN_MUTE,
-	 AC_AMP_SET_OUTPUT|AC_AMP_SET_RIGHT|AC_AMP_SET_LEFT|0x01},
-	{0x17, AC_VERB_SET_AMP_GAIN_MUTE,
-	 AC_AMP_SET_OUTPUT|AC_AMP_SET_RIGHT|AC_AMP_SET_LEFT|0x02},
-	{0x17, AC_VERB_SET_AMP_GAIN_MUTE,
-	 AC_AMP_SET_OUTPUT|AC_AMP_SET_RIGHT|AC_AMP_SET_LEFT|0x03},
-	{0x17, AC_VERB_SET_AMP_GAIN_MUTE,
-	 AC_AMP_SET_OUTPUT|AC_AMP_SET_RIGHT|AC_AMP_SET_LEFT|0x04},
+	{0x10, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT},
+	{0x10, AC_VERB_SET_CONNECT_SEL, 0x1},
+	{0x11, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP},
+	{0x11, AC_VERB_SET_CONNECT_SEL, 0x1},
+	{0x17, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)},
+	{0x17, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(1)},
+	{0x17, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(2)},
+	{0x17, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(3)},
+	{0x17, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(4)},
 	/* Record selector: Int mic */
 	{0x1a, AC_VERB_SET_CONNECT_SEL,0x1},
 	{0x1a, AC_VERB_SET_AMP_GAIN_MUTE,

  reply	other threads:[~2007-10-18 15:29 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-16 22:18 Thomas Meyer
2007-10-17  2:47 ` Maxim Levitsky
2007-10-17  8:42 ` Takashi Iwai
2007-10-17 18:17   ` Thomas Meyer
2007-10-18  1:51     ` Maxim Levitsky
2007-10-18  1:53       ` Maxim Levitsky
2007-10-18  5:57         ` Takashi Iwai
2007-10-18 14:21           ` Maxim Levitsky
2007-10-18 13:49             ` Takashi Iwai
2007-10-18 15:24               ` Maxim Levitsky
2007-10-18 14:47                 ` Takashi Iwai
2007-10-21 15:42               ` Thomas Meyer
2007-10-18  2:35 ` Jeff Garzik
2007-10-18  3:36   ` Maxim Levitsky
2007-10-18  3:38     ` Jeff Garzik
2007-10-18  4:10       ` Maxim Levitsky
2007-10-18  4:24         ` Jeff Garzik
2007-10-18  6:02       ` Takashi Iwai
2007-10-18  8:49   ` Jan-Simon Möller
2007-10-18  8:11     ` [alsa-devel] " Takashi Iwai
2007-10-18 11:50       ` Jan-Simon Möller
2007-10-18 15:05         ` Jan-Simon Möller
2007-10-18 14:39           ` Takashi Iwai [this message]
2007-10-18 16:19             ` Jan-Simon Möller
2007-10-19  5:05               ` Takashi Iwai
2007-10-19 10:46                 ` Jan-Simon Möller
2007-10-19 10:02                   ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5hzlygzdu1.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=dl9pf@gmx.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®