aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_realtek.c
AgeCommit message (Collapse)AuthorFilesLines
2009-04-27ALSA: hda - Add amp initialization for realtek auto modeTakashi Iwai1-94/+145
In the realtek auto-probing mode, the initialization of amp with some magic COEF or EAPD verbs is applied only when the codec SSID has valid values to satisfy the realtek's definition. However, many devices don't provide in that way, thus the device doesn't work as is. This patch allows the same initialization code even if the SSID doesn't pass the bit test. Also, alc_subsystem_id() is changed just to check and define the type, so that it's called in the parser, instead of the initializer. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-04-21Merge branch 'fix/hda' into topic/hdaTakashi Iwai1-0/+1
2009-04-21ALSA: hda - Add quirk for Packard Bell RS65Takashi Iwai1-0/+1
Added a quirk (model=m51va) for Packard Bell RS65 with ALC663. Reference: Novell bnc#496787 https://bugzilla.novell.com/show_bug.cgi?id=496787 Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-04-21ALSA: hda - Fix a typo in debug print for realtek auto-detectionTakashi Iwai1-1/+1
The NID and ASS numbers were swapped... Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-04-21Merge branch 'topic/hda-cache' into topic/hdaTakashi Iwai1-0/+5
2009-04-21ALSA: hda - Add debug prints for Realtek auto-initTakashi Iwai1-0/+5
Added a couple of debug prints to show the checked id numbers in alc_subsystem_id(). Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-04-21ALSA: hda - Add quirks for Realtek codecsKailang Yang1-0/+98
- Support ASUS F81Se F5Q P80 U20A U80 U50 UX50 for ALC269 - Support ASUS F70SL UX20 X58LE F50Z N80Vc N81Te N505Tp Vx3V N5051A for ALC663 - Support DELL ZM1 for ALC272 Signed-off-by: Kailang Yang <kailang@realtek.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-04-21ALSA: hda - Fix alc662_init_verbsKailang Yang1-7/+0
Don't unmute unneeded amps for input mixers of ALC662 & co. It caused possible recording noises. Signed-off-by: Kailang Yang <kailang@realtek.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-04-15ALSA: hda - Add quirk mask for Fujitsu Amilo laptops with ALC883Takashi Iwai1-3/+2
Added the models for quirk bitmask 1734:110x and 1734:113x of Fujitsu laptops. This will fix the model detection for Amilo Xa3540. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-04-06ALSA: hda - enable SPDIF output for Intel DX58SO boardWu Fengguang1-0/+5
ALC889 has two SPDIF outputs: 0x06, 0x10. Board vendors can use either or both. DX58SO uses 0x10, but the driver assumes 0x06. The safe solution is to add 0x10 as slave output to the existing 0x06. Reported-by: Jeroen Van Breedam <jeroen.vanbreedam@sgr5.be> Tested-by: Jeroen Van Breedam <jeroen.vanbreedam@sgr5.be> Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-03-23ALSA: hda - Add quirk for Acer Ferrari 5000Takashi Iwai1-0/+1
Add a quirk model=acer-aspire for Acer Ferrari 5000 with ALC883 codec. Note that model=auto doesn't work for this laptop because of broken BIOS (that doesn't set the subsystem id properly). Tested-by: Russ Dill <russ.dill@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-03-23ALSA: hda - Don't create empty/single-item input sourceTakashi Iwai1-12/+35
In patch_realtek.c, don't create empty or single-item "Input Source" control elements that are simply superfluous. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-03-23ALSA: hda - Fix the wrong pin-cap check in patch_realtek.cTakashi Iwai1-11/+9
The check for the amp-output must be done for widget-caps rather than pin-caps as implemented in the recent change... Simply a thinko. Also, add the similar checks to all places that put output-amp mutes in the initialization. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-03-23ALSA: hda - Cache pin-cap valuesTakashi Iwai1-3/+3
Added snd_hda_query_pin_caps() to read and cache pin-cap values to avoid too frequently issuing the same verbs. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-03-23ALSA: hda - Avoid output amp manipulation to digital mic pinsTakashi Iwai1-1/+8
Don't set amp-out values to pins without PINCAP_OUT capability, which are usually assigned for digital mics on ALC663/ALC272. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-03-20ALSA: hda - Detect digital-mic inputs on ALC663 / ALC272Takashi Iwai1-16/+47
Fix the detection of digital-mic inputs on ALC663 / ALC272 codecs in the auto-detection mode. The automatic mic switch via plugging isn't implemented yet, though. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-03-16ALSA: hda - Fix ALC662 beep againTakashi Iwai1-1/+4
The previous commit breaks the (digital-) beep on ALC662. ALC662 has the connection index 0x05 while ALC662 and ALC272 have the index 0x04 for the beep widget. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-03-16ALSA: snd-hda-intel: Fix ALC662/ALC663 Beep Amplifier IndexJaroslav Kysela1-1/+1
ALC662/663 codecs have Beep Amplifier Index 0x04 not 0x05 in 0x0b NID. Confirmed by testing on real hardware. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-03-05ALSA: Fix sample rate of Lenovo Ideapad to 44.1kHzTakashi Iwai1-3/+31
Noises can be heard on analog outputs of (some model of) Lenovo Ideapad due to the hardware problem, and the only workaround right now is to fix the sample rate to 44.1kHz. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-03-05ALSA: hda - Fix check of ALC888S-VC in alc888_coef_init()Takashi Iwai1-1/+1
Fixed the wrong bits check to identify ALC888S-VC model in alc888_coef_init(). Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-03-04ALSA: hda - Map 3stack-hp model (ALC888) for HP Educ.arHerton Ronaldo Krzesinski1-0/+1
Added model=3stack-hp for HP Educ.ar desktop machine (103c:2a72). Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-03-04ALSA: hda - Add headphone automute support for 3stack-hp model (ALC888)Herton Ronaldo Krzesinski1-5/+33
Mute speaker outputs on headphone insertion for machines that use 3stack-hp model. Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-03-04ALSA: hda - Add 4 channel mode for 3stack-hp model (ALC888)Herton Ronaldo Krzesinski1-3/+24
Add additional 4 channel mode for 3stack-hp models. Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-03-04ALSA: hda - Fix conflict of mixer controls on Sony VAIO VGN-AR71STakashi Iwai1-0/+1
The recent update enabled the model=sony-assamd for all ALC262 with PCI SSID 104d:90xx. But this includes the VAIO VGN-AR* that has the primary codec of STAC92xx and the secondary ALC262 as a slave digital-only codec. For this device, the model=auto must be chosen to work properly. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-03-02ALSA: hda - Don't create a beep control for digital-only ALC268Takashi Iwai1-1/+1
When an ALC268 codec is set up as the digital-only (as found in Toshiba laptops), it shouldn't contain any beep control that conflict with the primary codec. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-27ALSA: hda - Fix an "unused variable" compile warningTakashi Iwai1-1/+0
Forgot to remove an unused variable. sound/pci/hda/patch_realtek.c: In function ‘alc882_auto_init_analog_input’: sound/pci/hda/patch_realtek.c:7018: warning: unused variable ‘vref’ Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-27ALSA: hda - Match all 103c:17xx devices for HP BPC modelTakashi Iwai1-1/+2
Use SND_PCI_QUIRK_MASK() to match all devices with 103c:17xx for HP BPC model. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-27Merge branch 'fix/hda' into topic/hdaTakashi Iwai1-0/+1
Conflicts: sound/pci/hda/patch_realtek.c
2009-02-27ALSA: hda - Add quirk for new HP xw seriesTakashi Iwai1-0/+1
Added model=hp-bpc for new HP xw series (103c:170b). Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-26ALSA: hda - Clean up the input pin setup in automatic modeTakashi Iwai1-36/+26
Clean up the input-pin setup in automatic mode in patch_realtek.c. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-26ALSA: hda - Clean up / fix quirk for Sony laptops with ALC262Takashi Iwai1-4/+2
Clean up / fix quirk entries for Sony laptops with ALC262 codec using NSD_PCI_QUIRK_MASK(). This also fixes the kernel bug #12780 http://bugme.linux-foundation.org/show_bug.cgi?id=12780 Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-23Merge branch 'test/hda-pincfg' into topic/hdaTakashi Iwai1-75/+3
2009-02-23Merge branch 'fix/hda' into topic/hdaTakashi Iwai1-0/+3
Conflicts: sound/pci/hda/patch_realtek.c
2009-02-23ALSA: hda - Quirk for Acer Aspire 6530GJuan Jesus Garcia de Soria1-0/+2
The Acer Aspire 6530G needs the 4930G "model" for the front mic to work properly. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-23ALSA: hda - add another MacBook Pro 3,1 SSIDLuke Yelavich1-0/+1
Reference: Ubuntu bug #33245 https://bugs.launchpad.net/bugs/332456 Signed-off-by: Luke Yelavich <themuso@ubuntu.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-23ALSA: hda - add support for "Maxdata Favorit 100XS" (Intel HDA/ALC260)Michael Schwingen1-0/+130
Signed-off-by: Michael Schwingen <michael@schwingen.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-20ALSA: hda - Remove realtek codec-specific pin save/restore functionsTakashi Iwai1-75/+3
Now it's done in the common code. Also use the common access functions for pin defaults. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-19ALSA: hda - Add digital-only mode for ALC268Takashi Iwai1-6/+13
ALC268 can be configured as digital-only, e.g. for HDMI, on some machines. Allow the parser to set up the digital-only mode. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-19ALSA: hda - Avoid doubly beep attachment in patch_alc268()Takashi Iwai1-6/+0
Remove the doubly attachment in patch_alc268(). The input beep is attached conditionally only when needed. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-19ALSA: hda - Don't enable beep for digital-only ALC262Takashi Iwai1-5/+8
When ALC262 codec is configured as digital-only, it's meaningless to add the digital beep input. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-18ALSA: hda - Add quirk for Acer X3200Takashi Iwai1-0/+1
Acer X3200 needs model=auto, otherwise model=acer is pre-selected. Reference: Novell bnc#476268 https://bugzilla.novell.com/show_bug.cgi?id=476268 Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-13ALSA: hda - Support multiple digital outs with auto-probingTakashi Iwai1-3/+19
Added the support of multiple digital outputs via auto-probing for Realtek ALC88x codecs. The multiple outputs are handled as slave streams, so only one PCM stream (and the corresponding IEC958* elements) is provided to control both digital outputs. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-13ALSA: hda - Add proper cleanup for multiout-dig for ALC codecsTakashi Iwai1-1/+10
The recent patch_realtek.c contains the slave digital-out support as well. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-13ALSA: hda - Add quirk for Acer AX1700-U3700ATakashi Iwai1-0/+1
Force model=auto for Acer AX1700-U3700A with ALC888 codec. Since Acer devices are handlded as model=acer as default, the auto parsing has to be specified explicitly. (Maybe it's better rather to remove this default model=acer handling, though.) Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-12ALSA: hda - Detect multiple digital-out pinsTakashi Iwai1-10/+10
Detect multiple digital-out pins in snd_hda_parse_pin_defconfig(). The dig_out_pin and dig_out_type fields become arrays. The codec parser still doesn't use this multiple pins detection, though. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-10Merge branch 'fix/hda' into topic/hdaTakashi Iwai1-0/+1
2009-02-10ALSA: hda - Add quirk for Asus z37e (1043:8284)Mackenzie Morgan1-0/+1
Added a quirk for Asus Z37E for fixing suspend/hibernation problem. Reference: https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/25896 http://launchpadlibrarian.net/17053575/0001-Add-quirk-for-ASUS-Z37E-to-make-sound-audible-afte.patch https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=4282 Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-10ALSA: hda - add digital beep support for ALC268Takashi Iwai1-6/+22
Added the digital beep support for ALC268. It was missing in the last patches. However, ALC268 has a strange pin use for widget 0x1d, which could be used as another purpose. So, the patch adds a check of the beep control before creating the hook for input layer. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-09ALSA: hda - Clean up quirk listsTakashi Iwai1-51/+46
Clean up quirk lists with bit masks. Also, sorted in numerical order for alc662_cfg_tbl[]. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-06ALSA: hda - Fix unused variable compile warningTakashi Iwai1-1/+1
sound/pci/hda/patch_realtek.c:12693: warning: unused variable ‘i’ Signed-off-by: Takashi Iwai <tiwai@suse.de>