summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'topic/hda' into for-linusTakashi Iwai2009-03-2415-1457/+2533
|\
| * ALSA: hda - Add quirk for Acer Ferrari 5000Takashi Iwai2009-03-231-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>
| * ALSA: hda - Use cached calls to get widget caps and pin capsTakashi Iwai2009-03-232-4/+2
| | | | | | | | | | | | | | | | | | | | Replace with the standard function calls to use caches for reading the widget caps and pin caps. hda_proc.c is still using the direct verbs to get raw values as much as possible. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda - Don't create empty/single-item input sourceTakashi Iwai2009-03-231-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>
| * ALSA: hda - Fix the wrong pin-cap check in patch_realtek.cTakashi Iwai2009-03-231-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>
| * ALSA: hda - Cache pin-cap valuesTakashi Iwai2009-03-235-8/+24
| | | | | | | | | | | | | | 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>
| * ALSA: hda - Avoid output amp manipulation to digital mic pinsTakashi Iwai2009-03-231-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>
| * ALSA: hda - Add function id to proc outputPascal de Bruijn2009-03-233-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch does two things: Output Intel HDA Function Id in /proc/asound/cardX/codec#X Align Vendor/Subsystem/Revision Ids to 8 characters, front-padded with zeros Before: Vendor Id: 0x11d41884 Subsystem Id: 0x103c281a Revision Id: 0x100100 After: Function Id: 0x1 Vendor Id: 0x11d41884 Subsystem Id: 0x103c281a Revision Id: 0x0100100 As report on the Kernel Bugzilla #12888 Signed-off-by: Pascal de Bruijn <pascal@unilogicnetworks.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * Merge branch 'topic/hda-optimize' into topic/hdaTakashi Iwai2009-03-201-25/+54
| |\
| | * ALSA: hda - Don't reset stream at each prepare callbackTakashi Iwai2009-03-191-11/+22
| | | | | | | | | | | | | | | | | | | | | Don't reset the stream at each prepare callback but do it only once after the open. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| | * ALSA: hda - Don't reset BDL unnecessarilyTakashi Iwai2009-03-191-14/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So far, the prepare callback is called multiple times, BDL entries are reset and re-programmed at each time. This patch adds the check to avoid the reset of BDL entries when the same parameters are used. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - Detect digital-mic inputs on ALC663 / ALC272Takashi Iwai2009-03-201-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>
| * | ALSA: hda - Don't show the current connection for power widgetsTakashi Iwai2009-03-191-2/+4
| |/ | | | | | | | | | | | | The power-widgets have no connection selection, so skip the check in proc output, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * Merge branch 'fix/hda' into topic/hdaTakashi Iwai2009-03-181-13/+26
| |\
| * | ALSA: snd-hda-intel - add checks for invalid values to *query_supported_pcm()Jaroslav Kysela2009-03-181-8/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If ratesp or formatsp values are zero, wrong values are passed to ALSA's the PCM midlevel code. The bug is showed more later than expected. Also, clean a bit the code. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - Fix ALC662 beep againTakashi Iwai2009-03-161-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>
| * | ALSA: snd-hda-intel: Fix ALC662/ALC663 Beep Amplifier IndexJaroslav Kysela2009-03-161-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>
| * | ALSA: hda - Add another HP model with IDT92HD71bx codecTakashi Iwai2009-03-131-0/+2
| | | | | | | | | | | | | | | | | | HP laptops require GPIO0 on as EAPD. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - power up before codec initializationTakashi Iwai2009-03-132-12/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | Change the power state of each widget before starting the initialization work so that all verbs are executed properly. Also, keep power-up during hwdep reconfiguration. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - Add model=vaio for STAC9872Takashi Iwai2009-03-121-2/+31
| | | | | | | | | | | | | | | | | | Add the default pin config for model=vaio (in case of broken BIOS). Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - Print multiple out-amp values of pin widgets on Conext codecsTakashi Iwai2009-03-123-2/+14
| | | | | | | | | | | | | | | | | | | | | Add a flag to work around the non-standard amp-value handling on Conexant codecs. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - Add comments for the previous fix for conexant codecsTakashi Iwai2009-03-121-0/+6
| | | | | | | | | | | | Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - fix headphone settings and master volume (Conexant CX20551)Gregorio Guidi2009-03-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Update the places where the 0x1d widget is used for Conexant 5047, fixing mismatch introduced after changing the connection. Signed-off-by: Gregorio Guidi <gregorio.guidi@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - Clean up Cxt5047 parserTakashi Iwai2009-03-101-70/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up Conexant 5047 pareser code: - Split mixer elements to separate arrays to reduce the duplicated entires - Fix mixer element names to the standard ones - Remove unneeded cxt5047_hp2_unsol_event; the normal unsol_event handler works fine. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - Fix / clean up init verbs for Cxt5047 codecTakashi Iwai2009-03-101-33/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the initial connections of output pins 0x13 and 0x1d for Conexant 5047 codec to point to the mixer amp properly. Removed unneeded (doubly) verbs from arrays, also removed the unneeded changing of widget 0x1c, which is now completely unused. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - Remove superfluous verbs for Cxt5047 laptop-eapd modelTakashi Iwai2009-03-101-5/+2
| | | | | | | | | | | | | | | | | | | | | Remove superfluous verbs from cxt5047_toshiba_init_verbs[]. Also fix comments and minor coding style issues. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - Create "Capture Source" control dynamically in patch_conexant.cTakashi Iwai2009-03-101-44/+17
| | | | | | | | | | | | | | | | | | | | | | | | Create "Capture Source" control dynamically for Conexant codecs. If only one capture item is available, don't create such a control since it's just useless. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - Create vmaster for conexant codecsTakashi Iwai2009-03-101-11/+36
| | | | | | | | | | | | | | | | | | | | | Instead of binding volumes, create a virtual master volume for Conexant codecs. This allows separate HP and speaker volume controls. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - Fix coding style issues in last two patchesTakashi Iwai2009-03-101-13/+13
| | | | | | | | | | | | | | | | | | Also re-ordered the quirk entries per SSID. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - Rework on patch_sigmatel.c for HP HDX16/HDX18Christoph Plattner2009-03-101-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | Code rework, comments of mail tiwai@suse.de (2009-03-09) incorporated. Code tested on HP HDX16 (not tested on HDX18 yet). Signed-off-by: Christoph Plattner <christoph.plattner@gmx.at> Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - Added HP HDX16/HDX18 notebook support for HDA codecs (82HD71)Christoph Plattner2009-03-101-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | Added codec recognition of HP HDX platforms and added support of the MUTE LED (orange/white). For this feature the CONFIG_SND_HDA_POWER_SAVE is needed to use event handling for mute control. Signed-off-by: Christoph Plattner <christoph.plattner@gmx.at> Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - Assign HP and speaker DACs before mic/line-inTakashi Iwai2009-03-061-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | Assign DACs to HP and speaker before mic-in/line-in shared outputs. This improves the usability as it results in more intuitive mixer names. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - Connect to primary DAC if no individual DAC is availableTakashi Iwai2009-03-061-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | In stac92xx_auto_fill_dac_nids[], connect to the primary DAC if no individual DAC is available for each pin. This ensures that the pin works somehow at least. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - Create multiple HP / speaker controls with indexTakashi Iwai2009-03-061-19/+14
| | | | | | | | | | | | | | | | | | | | | Create multiple "Headphone" and "Speaker" controls with non-zero index numbers instead of "Headphone2", etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - Allow slave controls with non-zero indicesTakashi Iwai2009-03-061-8/+13
| | | | | | | | | | | | | | | | | | Fix snd_hda_add_vmaster() to check the non-zero indices of slave controls. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - Create output controls according to pin types for IDT/STACTakashi Iwai2009-03-061-69/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve the parser to pick up more intuitive control names for the outputs judging from the pin type, instead of fixed names assigned to channels. Also, revive the multi-HP workaround since this change fixes the problem with the multi-HP detection. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | Merge branch 'fix/hda' into topic/hdaTakashi Iwai2009-03-061-2/+4
| |\ \
| * | | ALSA: Fix sample rate of Lenovo Ideapad to 44.1kHzTakashi Iwai2009-03-051-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>
| * | | ALSA: hda - Fix check of ALC888S-VC in alc888_coef_init()Takashi Iwai2009-03-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed the wrong bits check to identify ALC888S-VC model in alc888_coef_init(). Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | | ALSA: hda - Map 3stack-hp model (ALC888) for HP Educ.arHerton Ronaldo Krzesinski2009-03-041-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>
| * | | ALSA: hda - Add headphone automute support for 3stack-hp model (ALC888)Herton Ronaldo Krzesinski2009-03-041-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>
| * | | ALSA: hda - Add 4 channel mode for 3stack-hp model (ALC888)Herton Ronaldo Krzesinski2009-03-041-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>
| * | | ALSA: hda - Fix conflict of mixer controls on Sony VAIO VGN-AR71STakashi Iwai2009-03-041-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>
| * | | ALSA: hda - Fix HP dv6736 mic inputTakashi Iwai2009-03-041-5/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the mic input of HP dv6736 with Conexant 5051 codec chip. This laptop seems have no mic-switching per jack connection. A new model hp-dv6736 is introduced to match with the h/w implementation. Reference: Novell bnc#480753 https://bugzilla.novell.com/show_bug.cgi?id=480753 Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | | ALSA: hda - Fix gcc compile warningTakashi Iwai2009-03-031-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's false positive, but annoying. sound/pci/hda/hda_codec.c: In function ‘get_empty_pcm_device’: sound/pci/hda/hda_codec.c:2772: warning: ‘dev’ may be used uninitialized in this function Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | | ALSA: hda - Add more hint options for IDT/Sigmatel codecsTakashi Iwai2009-03-021-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow more options to be set/reset via hwdep hint entry. hp_detect, gpio_mask, gpio_dir, gpio_data, eapd_mask and eapd_switch can be checked. For example, to disable hp_detect on the fly, # echo "hp_detect=0" > /sys/class/sound/hwC0D0/hints Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | | ALSA: hda - Create "Analog Loopback" controls optionallyTakashi Iwai2009-03-021-13/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't create "Analog Loopback" controls as default since these controls are usually more harmful than useful for normal users. Only created when "loopback = yes" hint is given. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | | ALSA: hda - Add show for init_verbs and hints sysfs entriesTakashi Iwai2009-03-021-2/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Added the show method for init_verbs and hints hwdep sysfs entries. They show the current values. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | | ALSA: hda - Add hint string helper functionsTakashi Iwai2009-03-022-13/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added snd_hda_get_hint() and snd_hda_get_bool_hint() helper functions to retrieve a hint value. Internally, the hint is stored in a pair of two strings, key and val. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | | ALSA: hda - Don't return a fatal error at PCM-creation errorsTakashi Iwai2009-03-021-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't return a fatal error to the driver but continue to probe when any error occurs at creating PCM streams for each codec. It's often non-fatal and keeping it would help debugging. Signed-off-by: Takashi Iwai <tiwai@suse.de>
OpenPOWER on IntegriCloud