From: Takashi Iwai <tiwai@suse.de>
To: "M. Vefa Bicakci" <bicave@superonline.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [Bisected regression] Microphone no longer works on Toshiba Satellite A100
Date: Mon, 25 May 2009 07:57:23 +0200 [thread overview]
Message-ID: <s5hk545d8sc.wl%tiwai@suse.de> (raw)
In-Reply-To: <4A198CAD.6090109@superonline.com>
At Sun, 24 May 2009 14:06:37 -0400,
M. Vefa Bicakci wrote:
>
> Takashi Iwai wrote:
> > At Sun, 24 May 2009 11:51:17 -0400,
> > M. Vefa Bicakci wrote:
> >> Dear Takashi Iwai,
> >>
> >> I am sorry for sending this e-mail to you directly. I was going to
> >> CC you with linux-kernel@majordomo.kernel.org but forgot to do so.
> >
> > Thanks for report.
> > Your post doesn't appear on LKML yet, at least it didn't reach to
> > me. Anyway, could you run alsa-info.sh with --no-upload option and
> > attach the generated file? The script is found at
> > http://www.alsa-project.org/alsa-info.sh
>
> Attached are two outputs from this script. Please read below to learn
> why there are two different outputs.
Thanks. Does the patch below work?
(snip)
> When one first boots this laptop, alsamixer does not show PCM playback and
> Digital Input capture channels. However, if I run a ALSA-compatible program
> which uses the PCM playback (such as mpg321) or the Digital Input capture
> channel (such as arecord), then the respective channels appear in alsamixer.
> Does this mean that a new "model=..." quirk needs to be written for this
> this laptop? ("model=toshiba" does not work properly.)
The PCM and Digital Capture Volume are implemented in alsa-lib softvol
plugin and is irrelevant with the driver model. They appear either
when you first use PCM via alsa-lib with that configuration, or when
you restore the previous volume setting via alsactl.
Usually distro udev or init script restores the previous volume via
alsactl, so this will appear after the very first use after the
installation...
thanks,
Takashi
---
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index bcbb736..0fd258e 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -776,6 +776,12 @@ static void alc_set_input_pin(struct hda_codec *codec, hda_nid_t nid,
pincap = (pincap & AC_PINCAP_VREF) >> AC_PINCAP_VREF_SHIFT;
if (pincap & AC_PINCAP_VREF_80)
val = PIN_VREF80;
+ else if (pincap & AC_PINCAP_VREF_50)
+ val = PIN_VREF50;
+ else if (pincap & AC_PINCAP_VREF_100)
+ val = PIN_VREF100;
+ else if (pincap & AC_PINCAP_VREF_GRD)
+ val = PIN_VREFGRD;
}
snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, val);
}
next prev parent reply other threads:[~2009-05-25 5:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4A196CF5.8010504@superonline.com>
[not found] ` <s5hskiuv4d2.wl%tiwai@suse.de>
2009-05-24 18:06 ` M. Vefa Bicakci
2009-05-25 5:57 ` Takashi Iwai [this message]
2009-05-25 22:40 ` M. Vefa Bicakci
2009-05-26 8:10 ` M. Vefa Bicakci
2009-05-24 15:49 M. Vefa Bicakci
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=s5hk545d8sc.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=bicave@superonline.com \
--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
Powered by JetHome