From: Takashi Iwai Subject: Re: [PATCH] Acer Aspire 8930G support Date: Tue, 02 Jun 2009 09:59:11 +0200 Message-ID: References: <4A24CD7B.4060809@marcansoft.com> 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 mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id A2B4324473 for ; Tue, 2 Jun 2009 09:59:11 +0200 (CEST) In-Reply-To: <4A24CD7B.4060809@marcansoft.com> 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: Hector Martin Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 02 Jun 2009 08:58:03 +0200, Hector Martin wrote: > > Getting this one to work has annoyed me to no end. > > Short story: this laptop has 5.1 built-in speakers which you *really* > want to use (the not-so-"sub" woofer is what makes the audio above > average for a laptop), so 6-channel support is important (plus a decent > asound.conf to upmix stereo). It also has the 3 typical jacks that ought > to have a selectable mode. And it's based on ALC889, which sucks. > > Rationale/explanations: > > The const_channel_count stuff was added because, for a laptop like this, > you always have 6 channels available (internal speakers) but still need > to set the mode for the 3 external jacks. Therefore, the device always > needs to be in 6-channel mode but there still needs to be a mixer > control for the jack mode. You could use line/mic-in at the same time as > the 6 internal speakers, for example. You might be tempted to make it > even smarter by dynamically switching the max channel count when > headphones are plugged in (therefore muting the internal speakers and > reducing the physical channel count to the jack channel mode), but as a > user I consider this to be harmful because I want the audio to blow up > to 6 channels / upmixed as soon as I unplug the headphones, and having > opened the device while in 2-channel mode would prevent this from > working (and always making 6-channel mode available doesn't do any harm). This change looks OK. > The hardware needs EAPD turned on and the DACs routed to the internal > speaker pins, so the patch adds those verbs. > > The ALC889 CLFE and subsequent (side/aux, here unused) DACs do NOT work > by default, at least here. I wasted much time trying to talk to > Realtek/pshou about this, but they just kept sending me useless updates > to patch_realtek.c that did nothing relevant. In the end I gave up and > brute forced the issue by trying to flip every bit in the proprietary > coefficient registers, and eventually found the two magic registers that > need to be cleared to enable all DACs. I have only heard Acer users > complain, but that might be because ALC889 is pretty new and using 5.1 > (and noticing the missing center/lfe channels) might not be that common. > If this is a generalized issue with all ALC889 systems then those verbs > should probably be moved to a common verb array. Oh, it's a good finding. > The internal mic is untested and probably doesn't work. > > These settings will probably work for other Acer Gemstone laptops with > the same 5.1 speaker config. When identified, those should be added to > the PCI subsystem ID list. The changes you made are fine, but could you reformat the patch as checkpatch.pl-clean and repost? thanks, Takashi