From: Takashi Iwai Subject: Re: Internal speaker output from Sony Vaio Z (2010 model) lost somewhere between 3.1.0 and 3.2.6 Date: Sat, 17 Mar 2012 11:13:41 +0100 Message-ID: References: <1331939409.22414.29.camel@adam> 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 48C3E243AB for ; Sat, 17 Mar 2012 11:13:44 +0100 (CET) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Adam Williamson Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Sat, 17 Mar 2012 11:00:33 +0100, Takashi Iwai wrote: > > At Fri, 16 Mar 2012 16:10:09 -0700, > Adam Williamson wrote: > > > > Welp, pretty much as the topic says. > > > > I just noticed today that sound is no longer playing from the internal > > speakers of my laptop, a 2010 model Sony Vaio Z. Plugging in headphones > > causes sound to be played fine through those. There are three possible > > choices for 'Connector' - 'Analog Speakers', 'Analog Output', and > > 'Analog Headphones' - but none of these seems to make sound come out of > > the internal speakers. The default is 'Analog Speakers', and when it's > > set to this, headphone output does work when headphones are plugged in. > > > > I've verified that it's broken on Fedora 16 kernels 3.2.6-4, 3.2.8-3 and > > 3.2.10-1. It's also broken in a very recent Fedora 17 kernel, 3.3.0rc6 > > or so. It works on a Fedora 16 live image, with kernel 3.1.0-1. > > Unfortunately the kernels before 3.2.6 have been trashed from Fedora's > > buildsystem archives, I think, so it's hard to narrow things down any > > further :/ > > > > the alsa-info output is > > http://www.alsa-project.org/db/?f=368e2359757b537d4daa0f5399830d3942540196 . > > At best, please provide the alsa-info.sh on the working kernel, too. > You could install 3.1.x in addition to the current one just to check > whether it works (i.e. no user-space side problem). > > The codec amp values for the speaker pin in the alsa-info.sh output > above looks OK, so the problem is something else such as GPIO. > In the case of GPIO, it can be turned on/off by hda-verb, e.g. > > hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_MASK 0x01 > hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DIR 0x01 > hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DATA 0x01 > > and/or > > hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_MASK 0x02 > hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DIR 0x02 > hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DATA 0x02 Or, it might be some ALC889 COEF fixup. In anyway, try sound git tree, too git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git Or you can build alsa-driver externally without upgrading the whole kernel. I don't know the status of Fedora, but SUSE or Ubuntu provide the update kernel module from the latest alsa-driver snapshot. The latest alsa-driver snapshot tarball is found at ftp://ftp.suse.com/pub/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz Takashi