From: Takashi Iwai <tiwai@suse.de>
To: Jonathan Woithe <jwoithe@just42.net>
Cc: Raymond Yau <superquad.vortex2@gmail.com>,
alsa-devel@alsa-project.org, peter.golden@btinternet.com
Subject: Re: HDA regression on Fujitsu S7020 laptop (ALC260 codec)
Date: Tue, 08 Jan 2013 15:48:57 +0100 [thread overview]
Message-ID: <s5hvcb7ohly.wl%tiwai@suse.de> (raw)
In-Reply-To: <20130105071605.GA11323@marvin.atrad.com.au>
At Sat, 5 Jan 2013 17:46:05 +1030,
Jonathan Woithe wrote:
>
> On Sat, Jan 05, 2013 at 02:32:38PM +0800, Raymond Yau wrote:
> > > > Does this mean that the internal speaker and line out at Sep right (dock
> > > > line out) at same node 0x10 ?
> > >
> > > Here is what I know:
> > >
> > > Node 0x10 = Internal speaker
> >
> > -static const struct hda_verb alc260_fujitsu_init_verbs[] = {
> > - /* Disable all GPIOs */
> > - {0x01, AC_VERB_SET_GPIO_MASK, 0},
> > - /* Internal speaker is connected to headphone pin */
> > - {0x10, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP},
> >
> > The auto model won't set pin ctls to HP when pin default is line out or
> > speaker
> >
> > https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1091868/comments/9
>
> Do you require feedback from me about this? As far as I can tell it's just
> an observation which might partly explain why the speaker doesn't work on
> the S7020.
>
> In case it helps clarify things, perhaps I should explain some of the
> comments which were previously contained within alc260_quirks.c (since I
> wrote them).
>
> /* Internal speaker is connected to headphone pin */
>
> Node 0x10 is notionally labelled "headphone pin" in the ALC260 datasheet.
You can forget the pin notion in the datasheet. It's just pin
assignment Realtek thought as a standard arrangement.
> However, on the S7020 it is instead electrically connected to the internal
> speaker.
>
> /* Headphone/Line-out jack connects to Line1 pin; make it an output */
>
> Node 0x14 is described as "Line1 pin" in the ALC260 datasheet. On the S7020
> the designers have chosen to connect it to the headphone/line-out jack on
> the laptop.
>
> /* Mic/Line-in jack is connected to mic1 pin, so make it an input */
>
> This is perhaps the only consistent pin on the laptop. The "mic1" pin of
> the ALC260 is conected to the "Mic/Line-in" hack on the laptop.
>
> In other words, on this particular laptop (and probably many others) the
> designers have been fairly free when connecting pins to physical entities.
>
> > Refer to your 3.3.5 info
>
> What for, exactly? Sorry, I'm confused as to what you're asking for here.
>
> > Does auto mute work in kernel 3.3.5 since unsolicited event is not enabled ?
>
> No idea - I have no interest in using auto-mute and have never had the
> inclination to test it or look into it.
>
> I've just looked now. 3.3.5 was booted, alsamixer does not show any
> "automute" control to enable or disable this. In any case, automute is
> certainly not happening, so I'm guessing the answer to your question is no.
There is no automute behavior switching control in the 3.3.x kernel
driver, so no wonder :)
I took a look at your alsa-info.sh outputs now, but unfortunately I
see no obvious problem there. At least, the path to the speaker looks
sane:
================================================================
Node 0x02 [Audio Output] wcaps 0x11: Stereo
Device: name="ALC260 Analog", type="Audio", device=0
Converter: stream=0, channel=0
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x09 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
Control: name="PCM Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x00 0x00] [0x00 0x00]
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
Amp-Out vals: [0x33 0x33]
Connection: 2
0x02 0x07
Node 0x10 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Control: name="PCM Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Control: name="Speaker Phantom Jack", index=0, device=0
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x0001003f: IN OUT HP EAPD Detect Trigger ImpSense
EAPD 0x2: EAPD
Pin Default 0xe4011110: [Both] Line Out at Sep Right
Conn = 1/8, Color = Black
DefAssociation = 0x1, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Connection: 1
0x09
================================================================
And all GPIOs are cleared too.
The differences are that the old driver cleared unused pins such as
0x0f, 0x11, 0x13 and 0x15. Could you try to set the pin ctl to 0 for
these widgets via hda-verb on the fly?
Other than that, the headphone jack is set up with the HP amp and the
mic is with VREF 50. They can be changed on the fly, too.
thanks,
Takashi
next prev parent reply other threads:[~2013-01-08 14:48 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-28 13:52 HDA regression on Fujitsu S7020 laptop (ALC260 codec) Jonathan Woithe
2013-01-03 10:39 ` Takashi Iwai
2013-01-03 12:27 ` Jonathan Woithe
2013-01-03 12:31 ` Jonathan Woithe
2013-01-04 2:34 ` Raymond Yau
2013-01-04 3:24 ` Jonathan Woithe
2013-01-04 4:15 ` Raymond Yau
2013-01-04 4:24 ` Jonathan Woithe
2013-01-05 1:31 ` Raymond Yau
2013-01-05 3:12 ` Jonathan Woithe
2013-01-05 6:32 ` Raymond Yau
2013-01-05 7:16 ` Jonathan Woithe
2013-01-07 2:43 ` Raymond Yau
2013-01-08 14:48 ` Takashi Iwai [this message]
2013-01-13 4:39 ` Jonathan Woithe
2013-01-13 9:00 ` Takashi Iwai
2013-02-10 11:47 ` Jonathan Woithe
2013-02-11 9:02 ` Takashi Iwai
2013-02-16 11:25 ` Jonathan Woithe
2013-02-17 8:32 ` Takashi Iwai
2013-02-17 12:53 ` Jonathan Woithe
2013-02-17 16:59 ` Takashi Iwai
2013-02-17 17:00 ` Takashi Iwai
2013-02-18 8:49 ` Takashi Iwai
2013-02-18 12:50 ` Jonathan Woithe
2013-02-18 12:58 ` Raymond Yau
2013-02-18 22:13 ` Jonathan Woithe
2013-02-20 10:33 ` Takashi Iwai
2013-02-20 12:10 ` Jonathan Woithe
2013-02-20 13:14 ` Takashi Iwai
2013-02-21 12:15 ` Jonathan Woithe
2013-02-21 13:24 ` Raymond Yau
2013-02-21 13:52 ` Jonathan Woithe
2013-02-21 14:01 ` Raymond Yau
2013-02-21 22:32 ` Jonathan Woithe
2013-03-01 11:16 ` Jonathan Woithe
2013-03-07 18:43 ` Takashi Iwai
2013-01-10 14:41 ` Raymond Yau
2013-01-10 14:50 ` Takashi Iwai
2013-01-08 14:13 ` Takashi Iwai
2013-01-04 9:02 ` David Henningsson
2013-01-04 9:35 ` Takashi Iwai
2013-01-05 2:49 ` Jonathan Woithe
2013-01-05 4:45 ` David Henningsson
2013-01-05 7:27 ` Jonathan Woithe
[not found] <mailman.1440.1362696800.805.alsa-devel@alsa-project.org>
2013-03-10 4:58 ` Jonathan Woithe
2013-03-11 8:52 ` Takashi Iwai
2013-03-12 22:25 ` Jonathan Woithe
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=s5hvcb7ohly.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=jwoithe@just42.net \
--cc=peter.golden@btinternet.com \
--cc=superquad.vortex2@gmail.com \
/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