From: Takashi Iwai Subject: Re: HDA regression on Fujitsu S7020 laptop (ALC260 codec) Date: Sun, 13 Jan 2013 10:00:16 +0100 Message-ID: References: <20130104032449.GA15708@marvin.atrad.com.au> <20130104042423.GD15726@marvin.atrad.com.au> <20130105031254.GD11016@marvin.atrad.com.au> <20130105071605.GA11323@marvin.atrad.com.au> <20130113043936.GA8822@marvin.atrad.com.au> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id B19AE2615F2 for ; Sun, 13 Jan 2013 10:00:17 +0100 (CET) In-Reply-To: <20130113043936.GA8822@marvin.atrad.com.au> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Jonathan Woithe Cc: Raymond Yau , alsa-devel@alsa-project.org, peter.golden@btinternet.com List-Id: alsa-devel@alsa-project.org At Sun, 13 Jan 2013 15:09:36 +1030, Jonathan Woithe wrote: > > On Tue, Jan 08, 2013 at 03:48:57PM +0100, Takashi Iwai wrote: > > > 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. > > Absolutely - that was abundantly clear when I first added the S7020 details > years ago. The comment was only made in an attempt to make the comments in > the original driver clearer to those reading them now. > > > > 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 wasn't surprised since I thought this too. However, I was asked to test > it so I did. > > > 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: > > : > > And all GPIOs are cleared too. > > Agreed. Given that the headphone jack works and the respective pin > definition is very similar, I also can't see any obvious reason why things > are getting messed up. Something subtle perhaps? A possible cause I noticed later is the lack of the headphone amp on the speaker pin. This might be abused for controlling the speaker amp. > > 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? > > I will try this, hopefully in the next few days. Like you I suspect, I > can't see that this should make any difference to the speaker's ability to > put out audio or to ALSA's ability to populate alsa-mixer correctly, but > it's easy enough to eliminate it through testing. > > > 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. > > I'll run through some of these variations and let you know the result. > > I noticed your big refactoring patch go past last week. Is there anything > in there which I should test in relation to the ALC260 / Fujitsu issue > we've been discussing, or should I await further info? It's worth to test my latest code, yes. There are lots of fixes there, too, together with code refactoring. You can test either master, test/hda-gen-parser or test/hda-migrate branch of sound-unstable tree: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-unstable.git Or if you want to avoid the kernel rebuild, you can try alsa-driver externally from a snapshot tarball: ftp://ftp.suse.com/pub/people/tiwai/snapshot/alsa-driver-unstable-snapshot.tar.gz thanks, Takashi