aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
Commit message (Collapse)AuthorAge
* ALSA: hda: add IbexPeak/Clarkdale HDMI model with static cvt/pin numberWu Fengguang2009-08-03
| | | | | | | | The new IbexPeak HDMI codec has 3 pin nodes and 2 converter nodes. Here we assume only the first ones will be used. Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* Merge branch 'topic/hda-cirrus' into topic/hdaTakashi Iwai2009-07-30
|\
| * ALSA: hda - Enable HP output with Macbook Pro 5, 5Stelian Pop2009-07-30
| | | | | | | | | | | | | | | | | | | | | | | | | | The patch below, to be applied on the latest sound-unstable-2.6.git, enables headphones output on my MacBookPro 5,5, together with the automuting feature. Here is the exact soundcard id: Vendor Id: 0x10134206 Subsystem Id: 0x106b4d00 Revision Id: 0x100301 Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda - don't build digital output controls if not existTakashi Iwai2009-07-09
| | | | | | | | Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda - Fix compile warnings in patch_cirrus.cTakashi Iwai2009-07-08
| | | | | | | | Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda - Fix the speaker volume control nameTakashi Iwai2009-07-07
| | | | | | | | | | | | | | Increase the name string buffer size so that "Surround Speaker Playback Volume" won't be truncated. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda - Add GPIO setup for MacBook pro 5,5 with CS420xTakashi Iwai2009-07-07
| | | | | | | | | | | | | | GPIO3 seems corresponding to EAPD that is required for the speaker output. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda - Add quirk for MacBook Pro 5,5 with CS4206Takashi Iwai2009-07-06
| | | | | | | | | | | | Add the default pin configs for MBP55. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda - Fix double creation of SPDIF input controlsTakashi Iwai2009-07-06
| | | | | | | | Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda - Add CS420x-specific coef setupTakashi Iwai2009-07-06
| | | | | | | | Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda - Force to initialize input mixer setup for CS420xTakashi Iwai2009-07-06
| | | | | | | | Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda - Fix cirrus codec parsingTakashi Iwai2009-07-06
| | | | | | | | | | | | | | | | The parser wasn't called in the proper order. Split now the parser to be called in patch_cirrus(), and the rest are just for building PCMs and controls. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda - Add Cirrus Logic CS420x supportTakashi Iwai2009-07-01
| | | | | | | | Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | Merge branch 'fix/hda' into topic/hdaTakashi Iwai2009-07-30
|\ \
| * | ALSA: hda: fix out-of-bound hdmi_eld.sad[] writeRoel Kluin2009-07-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | e->sad[] is declared with size ELD_MAX_SAD=16, but the guard allows range 0-31. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - Add quirk for Dell Studio 1555Takashi Iwai2009-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | Added a quirk entry for Dell Studio 1555. Reference: Novell bnc#525244 https://bugzilla.novell.com/show_bug.cgi?id=525244 Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - Add line-out jack detection on IDT/STAC codecsTakashi Iwai2009-07-30
| | | | | | | | | | | | | | | | | | | | | Add the automatic mute of speakers via line-out jack plugging on STAC/IDT codecs. The feature is enabled when the HP detect is present. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - Fix typos of Capture controls.Takashi Iwai2009-07-30
| | | | | | | | | | | | | | | | | | | | | | | | The commit 6479c63188290beae83ade3243b9d6eb47d394b6 ALSA: hda - Create Capture controls dynamically introduced typos of "Capture". Fixed now. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda: add HP automute support to Intel ALC889/ALC889A modelsWu Fengguang2009-07-30
| | | | | | | | | | | | | | | | | | | | | | | | It auto mutes all 8-channel outputs at rear panel when the front panel headphone is connected. Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda: add 2-channel mode to Intel ALC889/ALC889A modelsWu Fengguang2009-07-30
| | | | | | | | | | | | | | | | | | | | | | | | This 2-channel mode is useful in that it will broadcast a 2-channel audio stream to all front/side/... ports. Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - No analog mix input source as default for IDT92HD71bxxTakashi Iwai2009-07-29
| | | | | | | | | | | | | | | | | | | | | The analog mix is disabled now as default (unless "analog_mixer" hint is given), so it shoudn't appear in the digital input source as well. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - Add missing DMUX initialization for auto-mic with STAC/IDTTakashi Iwai2009-07-29
| | | | | | | | | | | | | | | | | | | | | Added the missing initialization of DMUX connection (to analog input) for auto-mic mode with STAC/IDT codecs. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - Remove static connection in IDT 92HD71bxxTakashi Iwai2009-07-29
| | | | | | | | | | | | | | | | | | | | | | | | We don't need any more static connection to the port F (which is often used for docking stations) since its connection is done dynamically via DAC assignment now. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - Support auto-mic switching with IDT/STAC codecTakashi Iwai2009-07-29
| | | | | | | | | | | | | | | | | | | | | | | | Support the automatic mic-switching with some devices with IDT/STAC codecs. The condition is that the device has only two inputs, one for an external mic and one for an internal mic. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - Avoid overwrite of jack events with STAC/IDTTakashi Iwai2009-07-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since only one event can be associated to a (pin) widget, it's safer to avoid the multiple mapping. This patch fixes the behavior of the STAC/IDT codec driver. Now stac_get_event() doesn't take the type argument but simply returns the first hit element. Then enable_pin_detect() checks the validity of the type, and returns non-zero only if a valid entry. The caller can call stac_issue_unsol_event() after checking the return value. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - Don't create analog mixer for IDT92HD71bxxTakashi Iwai2009-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The analog mixer unit on IDT 92HD71Bxx codecs is almost useless since we use only the direct connections from DAC to pin. Remove the controls to avoid unneeded confusion as default now. This can be still back via "analog_mixer = 1" hint. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - Create Capture controls dynamicallyTakashi Iwai2009-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of static snd_kcontrol_new arrays, create "Capture Volume" and "Capture Switch" controls dynamically based on the mixer attr values (made via HDA_COMPOSE_AMP_VAL()). This reduces the code size and gives more flexibility to change the number of controls later. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - Don't create unneeded digital input source for IDT 92HD71xTakashi Iwai2009-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | The current driver creates always the digital input source mixer elements for IDT 92HD71x codecs no matter whether digital mics are present. This patch adds the proper check to avoid the creation of these controls if unnecessary. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - Reword information messages for BIOS auto-probing modeTakashi Iwai2009-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The sentense "Unknown model for xxx, ..." makes people too nervous and drives them to a direction to a wrong "fix" by giving any mismatching model option. Let's rephrase the messages to be more nice and easy (at least that won't make people suspect conspiracies). Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - Add exception for volume-knob in snd_hda_get_connections()Takashi Iwai2009-07-27
| | | | | | | | | | | | | | | | | | | | | Volume-knob widgets may have connections even if they have no CONN_LIST cap bit. Allow the query exceptionally in snd_hda_get_connections(). Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - Introduce get_wcaps_type() macroTakashi Iwai2009-07-27
| | | | | | | | | | | | | | | | | | Add a helper macro to retrieve the widget type from wiget cap bits. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | Merge branch 'fix/hda' into topic/hdaTakashi Iwai2009-07-24
|\| |
| * | ALSA: hda - Fix mute control with some ALC262 modelsTakashi Iwai2009-07-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The master mute switch is wrongly implemented as checking the pointer instead of its value, thus it can be never muted. This patch fixes the issue. Reference: Novell bnc#404873 https://bugzilla.novell.com/show_bug.cgi?id=404873 Signed-off-by: Takashi Iwai <tiwai@suse.de> Cc: <stable@kernel.org>
| * | ALSA: hda - Restore GPIO1 properly at resume with AD1984ATakashi Iwai2009-07-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | ALSA: hda - Use snprintf() to be saferTakashi Iwai2009-07-22
| | | | | | | | | | | | | | | | | | | | | Use snprint() for creating the jack name string instead of sprintf() in patch_sigmatel.c. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda - Fix pin-setup for Sony VAIO with STAC9872 codecsTakashi Iwai2009-07-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The recent rewrite of the codec parser for STAC9872 caused a regression for some Sony VAIO models that don't give proper pin default configs by BIOS. Even using model=vaio doesn't work because the pin definitions are set after the pin overrides. This patch fixes the pin definitions in patch_stac9872() to be put in the right place before the pin overrides. Also the patch adds the new quirk entry for VAIO F/S to have the correct pin default configs. Signed-off-by: Takashi Iwai <tiwai@suse.de> Cc: <stable@kernel.org>
| * | ALSA: hda - Add quirk for Gateway T6834c laptopHao Song2009-07-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Gateway T6834c laptops need EAPD always on while the default behavior for the STAC9205 reference board is to turn it off upon every HP plug. By using the special "eapd" model, which is first introduced for Gateway T1616 laptops for this same reason, this peculiarity can be properly handled. Signed-off-by: Hao Song <baritono.tux@gmail.com> Cc: <stable@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - Add better Intel IbexPeak platform supportJaroslav Kysela2009-07-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here are the new sound enabling patches for IbexPeak. Summary of tested features: - playback - Front Headphone: OK - 8 channel audio: Front/Rear/CLFE/Side all OK - recording - Front Mic/Rear Mic: both OK (front/rear/line mics are selectable in the "Input source" alsamixer control) - Line In: not working (in 6ch mode, its amp/mute, direction and route all looks fine, so I'm a little puzzled) (hopefully no one will care this feature) - digital SPDIF input/output: not tested (no equipment) Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda-intel: Cleanups for widget connection list handlingJaroslav Kysela2009-07-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a check to snd_hda_get_connections() routine for presence of AC_WCAP_CONN_LIST. Also, make sure that negative error codes from noted route are handled on all places as errors. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda_generic: use AC_WCAP_CONN_LIST check for widget connectionsJaroslav Kysela2009-07-22
| | | | | | | | | | | | | | | | | | | | | | | | Previous patch used widget type, but the presence flag of the connection list is in the widget capabilities. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda_generic: do not read connections for widged with an unknown typeJaroslav Kysela2009-07-22
| | | | | | | | | | | | | | | | | | | | | Reading node connections for an unknown widget can confuse HDA codec bus. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - Fix ALC861 auto-mode parserTakashi Iwai2009-07-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the logic of ALC861 auto-mode parser for the outputs. Instead of assuming the fixed DAC list, parse the conection and assign the DAC dynamically. Also, unmute the unused output connections to avoid noises on inputs. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - Reduce click noise at power-savingTakashi Iwai2009-07-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add some tricks to reduce the click noise at powering down to D3 in the power saving mode on STAC/IDT codecs. The key seems to be to reset PINs before the power-down, and some delay before entering D3. The needed delay is significantly long, but I don't know why. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | Merge branch 'fix/hda' into topic/hdaTakashi Iwai2009-07-19
|\| |
| * | ALSA: hda_codec: Check for invalid zero connectionsJaroslav Kysela2009-07-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | To prevent "Too many connections" message and the error path for some HDMI codecs (which makes onboard audio unusable), check for invalid zero connections for CONNECT_LIST verb. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda_intel: more strict alc880_parse_auto_config dig_nid checkingJaroslav Kysela2009-07-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On some IbexPeak systems with ALC889A errors like "azx_get_response timeout, switching to polling mode: last cmd=0xaf9f000b" are produced, because non-existent codec #10 is wrongly accessed. The problem is that snd_hda_get_connections() returns out-of-range result for NID 0x1c (something like 0xf8f9 or 0xffff). This patch adds a check to alc880_parse_auto_config() to avoid using of this out-of-range NIDs. A better fix maybe to improve snd_hda_get_connections() routine to check for valid NID ranges if NIDs are expected as result. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - Fix ALC268 parser for mono speakerTakashi Iwai2009-07-17
| | | | | | | | | | | | | | | | | | | | | | | | - Parse the mono output pin 0x16 correctly even as the primary output - Create "Speaker" volume control if the primary output is a speaker - Fix the wrong direction of (optional) "Mono" switch Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - Fix the previous sanity check in make_codec_cmd()Takashi Iwai2009-07-17
| | | | | | | | | | | | | | | | | | | | | The newly added sanity-check for a codec verb can be better written with logical ORs. Also, the parameter can be more than 8bit. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - add bounds checking for the codec command fieldsWu Fengguang2009-07-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A recent bug involves passing auto detected >0x7f NID to codec command, creating an invalid codec addr field, and finally lead to cmd timeout and fall back into single command mode. Jaroslav fixed that bug in alc880_parse_auto_config(). It would be safer to further check the bounds of all cmd fields. Cc: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - Add support for new AMD HD audio devicesAndiry Brienza2009-07-17
| | | | | | | | | | | | | | | | | | | | | | | | Add support for new AMD HD audio devices. Use generic driver to detect HD audio devices with Vendor ID AMD. Signed-off-by: Andiry Xu <andiry.xu@amd.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>