aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_analog.c
AgeCommit message (Collapse)AuthorFilesLines
2009-07-26Merge branch 'fix/hda' into for-linusTakashi Iwai1-1/+1
* fix/hda: ALSA: hda - Fix mute control with some ALC262 models ALSA: hda - Restore GPIO1 properly at resume with AD1984A ALSA: hda - Use snprintf() to be safer
2009-07-22ALSA: hda - Restore GPIO1 properly at resume with AD1984ATakashi Iwai1-1/+1
The commit 099db17e66294b02814dee01c81d9abbbeece93e introduced a regression at suspend/resume where the GPIO1 bit isn't properly restored, thus the speaker output gets muted initially after resume. The fix is simple, use the cached write for storing GPIO data. Reference: Novell bnc#522764 https://bugzilla.novell.com/show_bug.cgi?id=522764 Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-07-03Merge branch 'fix/hda' into for-linusTakashi Iwai1-1/+26
* fix/hda: ALSA: hda - Add sanity check in PCM open callback ALSA: hda - Call snd_pcm_lib_hw_rates() again after codec open callback ALSA: hda - Avoid invalid formats and rates with shared SPDIF ALSA: hda - Improve ASUS eeePC 1000 mixer ALSA: hda - Add GPIO1 control at muting with HP laptops
2009-07-03ALSA: hda - Add GPIO1 control at muting with HP laptopsTakashi Iwai1-1/+26
HP laptops with AD1984A codecs (at least mobile models) need to set GPIO1 appropriately to indicate the mute state. The BIOS checks this bit to judge whether the mute on or off is sent via F8 key. Without changing this bit, the BIOS can be confused and may toggle the mute wrongly. Reference: Novell bnc#515266 https://bugzilla.novell.com/show_bug.cgi?id=515266 Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-07-02Merge branch 'fix/hda' into for-linusTakashi Iwai1-0/+1
* fix/hda: ALSA: hda - Add quirk for HP 6930p ALSA: hda - Add missing static to patch_ca0110()
2009-07-01ALSA: hda - Add quirk for HP 6930pTakashi Iwai1-0/+1
Added a quirk model=laptop for HP 6930p (103c:30dc) with AD1984A codec. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-06-24ALSA: hda - Fix support for Samsung P50 with AD1986A codecTakashi Iwai1-0/+41
Samsung P50 requires the HP auto-muting unlike other Samsung models. Added a new model=samsung-p50 to support this. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-06-24ALSA: hda - Generalize the pin-detect quirk for Lenovo N100Takashi Iwai1-2/+8
Add a new flag to ad_spec struct so that the same hack can be used for any other models (if any). This also allows other models to reuse the auto-mute functions. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-06-24ALSA: hda - Simplify AD1986A mixer definitionsTakashi Iwai1-56/+21
Split mixer element arrays of AD1986A models to several pieces so that each model can share the same mixer arrays. This removes lots of duplicated data. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-04-23ALSA: hda - Fix init verbs of AD1884A mobile modelTakashi Iwai1-1/+44
The current ad1884a-mobile model has a problem that the speaker output doesn't work sometimes after boot or power-saving on some HP laptops. It seems that the verbs accessing to the non-functional widgets cause this problem. This patch simplifies the init verbs for mobile model not to touch unnecessary setups so that it avoids the speaker-mute problem. Reference: Novell bnc#495668 https://bugzilla.novell.com/show_bug.cgi?id=495668 Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-04-16ALSA: hda - Add upper-limit of mixer amp for AD1884A-laptop model, tooTakashi Iwai1-0/+8
Add the upper-limit of mixer amp for AD1884A-laptop model just like the mobile model for some HP laptops. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-04-07ALSA: hda - add missing comma in ad1884_slave_volsAkinobu Mita1-1/+1
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: <stable@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-25ALSA: hda - Clean up / fix quirks for HP laptops with AD1984ATakashi Iwai1-3/+2
Use SND_PCI_QUIRK_MASK() to clean up / support better HP laptops with AD1984A codec. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-23Merge branch 'test/hda-pincfg' into topic/hdaTakashi Iwai1-2/+1
2009-02-23ALSA: hda - Don't give over 0dB volume for AD1984A HP laptopsTakashi Iwai1-0/+8
Set the upper limit 0dB to the volume of mixer amp 0x20 for AD1984A HP laptops. The overloaded volume may damage the internal speaker. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-20ALSA: hda - Remove codec-specific pin save/restore functionsTakashi Iwai1-2/+1
Replace the accessor to pin defaults with the common code for caching. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-16ALSA: hda - Clean up quirks for HP laptops with AD1984ATakashi Iwai1-2/+1
Clean up quirks for HP laptops with AD1984A using SND_PCI_QUIRK_MASK() Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-13Merge branch 'fix/hda' into topic/hdaTakashi Iwai1-3/+12
2009-02-13ALSA: hda - Add snd_hda_multi_out_dig_cleanup()Takashi Iwai1-1/+10
Added the helper function snd_hda_multi_out_dig_cleanup() to clean up the digital outputs with multi setup. This call is needed in cases the codec supports multiple digital outputs as slaves. Otherwise the slave widgets aren't properly cleaned up. For a single digital output (e.g. in patch_conexant.c), this call isn't needed. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-13ALSA: hda - Add missing terminator in slave dig-out arrayTakashi Iwai1-2/+2
Added the missing terminator for ad1989b_slave_dig_outs[]. Cc: <stable@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-12ALSA: hda - Detect multiple digital-out pinsTakashi Iwai1-1/+1
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-09ALSA: hda - Clean up quirk listsTakashi Iwai1-6/+4
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 - Use digital beep for AD codecsTakashi Iwai1-52/+88
Use digital beep instead of analog pc-beep for AD codecs. Create the beep mixer controls dynamically on demand. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-05ALSA: hda - Add quirk for another HP laptopTakashi Iwai1-0/+1
Add model=laptop entry for another HP laptop (103c:3077) with AD1984A. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-02-05ALSA: hda - Add quirk for HP zenith laptopTakashi Iwai1-0/+1
Added model=laptop for another HP laptop (103c:3072) with AD1984A codec. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-01-23ALSA: hda - Fix wrong initial verb for AD1984 thinkpad modelTakashi Iwai1-1/+1
The docking mic-boost (0x25) has no mute bit. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-01-23ALSA: hda - Fix invalid verbs for mic-boosts on AD1884*Takashi Iwai1-4/+4
The mic-boosts (0x14 and 0x15) on AD1884* codecs are input-amps, not output-amps. Fix the invalid initialization verbs. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-01-23ALSA: hda - Remove invalid amp initializations for AD1988* codecsTakashi Iwai1-12/+0
The ADC widgets on AD1988* codecs have no amp controls. Remove invalid initialization verbs. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-01-23ALSA: hda - Fix initial verbs for mic-boosts on AD1981HDTakashi Iwai1-2/+2
The mic boosts (NID 0x08 and 0x18) are input-amps, not output-amps. Fix the initial verbs for them. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-01-07ALSA: hda - Fix typos for AD1882 codecsClemens Fruhwirth1-2/+2
Fixed typos of codec-id checks for AD1882/AD1882A. Cc: stable@kernel.org Signed-off-by: Takashi Iwai <tiwai@suse.de>
2009-01-07ALSA: hda - Add quirk for HP 2230sTakashi Iwai1-0/+1
Added a quirk for HP 2230s, model=laptop, with AD1984A codec. Reference: Novell bnc#461660 https://bugzilla.novell.com/show_bug.cgi?id=461660 Signed-off-by: Takashi Iwai <tiwai@suse.de>
2008-12-10ALSA: hda - Add quirk for HP6730B laptopTakashi Iwai1-0/+1
Added model=laptop for HP 6730B laptop with AD1984A codec. Reference: Novell bnc#457909 https://bugzilla.novell.com/show_bug.cgi?id=457909 Signed-off-by: Takashi Iwai <tiwai@suse.de> Cc: stable@kernel.org
2008-11-27ALSA: hda - Modularize HD-audio driverTakashi Iwai1-2/+24
Split the monolithc HD-audio driver into several pieces: - snd-hda-intel HD-audio PCI controller driver; loaded via udev - snd-hda-codec HD-audio codec bus driver - snd-hda-codec-* Specific HD-audio codec drivers When built as modules, snd-hda-codec (that is invoked by snd-hda-intel) looks up the codec vendor ID and loads the corresponding codec module automatically via request_module(). When built in a kernel, each codec drivers are statically hooked up before probing the PCI. This patch adds appropriate EXPORT_SYMBOL_GPL()'s and the module information for each driver, and driver-linking codes between codec-bus and codec drivers. TODO: - Avoid EXPORT_SYMBOL*() when built-in kernel - Restore __devinit appropriately depending on the condition Signed-off-by: Takashi Iwai <tiwai@suse.de>
2008-11-21ALSA: hda - make laptop-eapd model back for AD1986ATakashi Iwai1-3/+46
The changes specific for Samsung laptops seem unapplicable to other hardware models like ASUS. The mic inputs are lost on such hardware by the change 5d5d5f43f1b835c375de9bd270cce030d16e2871. This patch adds back the old laptop-eapd model, and create a new model "samsung" for the new one specific to Samsung laptops with automatic mic selection feature. Reference: kernel bugzilla #12070 http://bugzilla.kernel.org/show_bug.cgi?id=12070 Signed-off-by: Takashi Iwai <tiwai@suse.de>
2008-11-12Merge branch 'topic/fix/hda' into topic/hdaTakashi Iwai1-0/+2
Conflicts: sound/pci/hda/patch_sigmatel.c
2008-11-10ALSA: hda - Make the HP EliteBook 8530p use AD1884A model laptopTravis Place1-0/+1
Added a QUIRK to patch_analog.c for the HP Elitebook 8530p (IDs 0x103c:0x30e7) to use AD1884A model 'laptop' by default. Playback and Capture confirmed working. Signed-off-by: Travis Place <wishie@wishie.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2008-11-09ALSA: hda - Add another HP model (6730s) for AD1884AMichel Marti1-0/+1
Added model=laptop for another HP machine (103c:3614) with AD1884A codec. Signed-off-by: Michel Marti <mma@objectxp.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2008-10-29Merge branch 'topic/fix/hda' into topic/hdaTakashi Iwai1-0/+1
2008-10-28ALSA: hda - Add another HP model for AD1884ATakashi Iwai1-0/+1
Added a quirk entry for another HP mobile device with AD1884A codec. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2008-10-13ALSA: hda - Use generic array helpersTakashi Iwai1-29/+27
Use generic array helpers to simplify array handling in snd-hda-intel. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2008-09-23ALSA: HDA: patch_analog: Quirk for Asus P5Q Premium/Pro boards.Robin H. Johnson1-0/+1
Use 6STACK_DIG for the AD2000BX variant of the AD1989B chip used by Asus on their Asus P5Q Premium and Pro boards. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-09-23ALSA: HDA: patch_analog: Implement multiple outputs for AD1988Robin H. Johnson1-1/+8
Implement the slave_dig_outs for AD1989 cards. Untested due to lack of hardware. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-09-23ALSA: HDA: patch_analog: Fix SPDIF output on AD1989BRobin H. Johnson1-1/+5
The SPDIF pins for AD1989 are not enabled by default. Set OUT bit so that they actually work. Also initialize the HDMI SPDIF at the same time. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-08-25ALSA: hda - Add AD1882A codec supportTakashi Iwai1-17/+57
Added the basic support of AD1882A codec chip. It's almost compatible with AD1882, but with a digital mic and some differences in connections. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-08-13ALSA: hda - initialize node 0x21 properly on AD1988 codecsTakashi Iwai1-0/+6
The widget node 0x21 should be initialized as unmuted/full (0dB) as default. This will reduce additional manual work by user at the first time use. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-07-10ALSA: hda - Add missing Thinkpad Z60m supportTakashi Iwai1-0/+1
Added the missing SSID of Thinkpad Z60m for model=thinkpad with AD1981HD. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-06-18ALSA: hda - Fix wrong volumes in AD1988 auto-probe modeTakashi Iwai1-11/+21
Don't create mixer volume elements for Headphone and Speaker if they use the same DAC as normal line-outs on AD1988. Otherwise the amp value gets screwed up, e.g. https://bugzilla.novell.com/show_bug.cgi?id=398255 Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-06-13ALSA: hda - Remove unused mutexTakashi Iwai1-5/+0
Removed unused mutex from patch_*.c. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-05-30[ALSA] hda - Fix mic input on HP2133Takashi Iwai1-22/+28
The mic pins are wrongly assigned on AD1884A mobile model. The mic handling is fixed for the automatic mic selection, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2008-05-24[ALSA] hda - Add model for ASUS P5K-E/WIFI-APTravis Place1-0/+1
Added a config table entry for the ASUS P5K-E/WIFI-AP mainboard (ID 1043:8227) to use AD1988_6STACK_DIG Signed-off-by: Travis Place <wishie@wishie.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>