linux/sound/pci/hda
Hector Martin 3b315d70b0 ALSA: hda - Acer Aspire 8930G support
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).

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.

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.

Signed-off-by: Hector Martin <hector@marcansoft.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-06-02 10:58:37 +02:00
..
hda_beep.c ALSA: hda - Fix digital beep tone calculation 2009-05-19 12:54:55 +02:00
hda_beep.h ALSA: hda - Fix digital beep tone calculation 2009-05-19 12:54:55 +02:00
hda_codec.c ALSA: hda - Support sync after writing a verb 2009-05-26 17:23:46 +02:00
hda_codec.h ALSA: hda - Split codec->name to vendor and chip name strings 2009-05-16 10:00:49 +02:00
hda_eld.c ALSA: hda - fix build warning when CONFIG_PROC_FS=n 2008-11-22 11:16:15 +01:00
hda_generic.c ALSA: hda - Cache pin-cap values 2009-03-23 13:08:33 +01:00
hda_hwdep.c ALSA: hda - Split codec->name to vendor and chip name strings 2009-05-16 10:00:49 +02:00
hda_intel.c ALSA: hda - Fix a typo in the previous patch 2009-05-31 09:28:12 +02:00
hda_local.h ALSA: hda - Cache pin-cap values 2009-03-23 13:08:33 +01:00
hda_proc.c ALSA: hda - Split codec->name to vendor and chip name strings 2009-05-16 10:00:49 +02:00
Kconfig ALSA: hda - Add Creative CA0110-IBG support 2009-04-16 08:54:53 +02:00
Makefile ALSA: hda - Add Creative CA0110-IBG support 2009-04-16 08:54:53 +02:00
patch_analog.c ALSA: hda - Fix init verbs of AD1884A mobile model 2009-04-23 08:24:48 +02:00
patch_atihdmi.c ALSA: hda - Remove duplicated strings from codec name 2008-12-18 09:17:56 +01:00
patch_ca0110.c ALSA: hda - Use snd_hda_codec_get_pincfg() in patch_ca0110.c 2009-04-20 10:51:38 +02:00
patch_cmedia.c ALSA: hda - Remove codec-specific pin save/restore functions 2009-02-20 16:48:40 +01:00
patch_conexant.c ALSA: hda - Compaq Presario CQ60 patching for Conexant 2009-05-28 07:36:20 +02:00
patch_intelhdmi.c ALSA: hda - add id for Intel IbexPeak integrated HDMI codec 2009-02-11 09:09:15 +01:00
patch_nvhdmi.c ALSA: hda - Support NVIDIA 8 channel HDMI audio 2009-06-01 11:05:26 +02:00
patch_realtek.c ALSA: hda - Acer Aspire 8930G support 2009-06-02 10:58:37 +02:00
patch_si3054.c ALSA: hda - Modularize HD-audio driver 2008-11-27 15:47:11 +01:00
patch_sigmatel.c ALSA: hda - Jack Mode changes for Sigmatel boards 2009-06-01 11:12:29 +02:00
patch_via.c ALSA: hda - Fix secondary SPDIF on VT1708S and VT1702 codecs 2009-05-08 07:55:28 +02:00