aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda
Commit message (Collapse)AuthorAge
...
* [ALSA] sound: hda: missing includes of hda_patch.hHarvey Harrison2008-04-24
| | | | | | | | | | | | | | | | | | Move the array declaration to hda_codec.c where it is used and add includes where the individual presets are declared. Fixes the following sparse warnings: sound/pci/hda/patch_realtek.c:13744:25: warning: symbol 'snd_hda_preset_realtek' was not declared. Should it be static? sound/pci/hda/patch_cmedia.c:729:25: warning: symbol 'snd_hda_preset_cmedia' was not declared. Should it be static? sound/pci/hda/patch_analog.c:3656:25: warning: symbol 'snd_hda_preset_analog' was not declared. Should it be static? sound/pci/hda/patch_sigmatel.c:3995:25: warning: symbol 'snd_hda_preset_sigmatel' was not declared. Should it be static? sound/pci/hda/patch_si3054.c:286:25: warning: symbol 'snd_hda_preset_si3054' was not declared. Should it be static? sound/pci/hda/patch_atihdmi.c:156:25: warning: symbol 'snd_hda_preset_atihdmi' was not declared. Should it be static? sound/pci/hda/patch_conexant.c:1721:25: warning: symbol 'snd_hda_preset_conexant' was not declared. Should it be static? sound/pci/hda/patch_via.c:1962:25: warning: symbol 'snd_hda_preset_via' was not declared. Should it be static? Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Use int instead of long in patch_sigmatel.cTakashi Iwai2008-04-24
| | | | | | The HD-audio parameters are at most 32bit int. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] sound: patch_sigmatel.c fix shadowed variable warningHarvey Harrison2008-04-24
| | | | | | | | | | | Temp variable in the loop shadows the second argument (which is otherwise unused in this function). Change this to defcfg as it is used to hold the default config. sound/pci/hda/patch_sigmatel.c:2759:18: warning: symbol 'cfg' shadows an earlier one sound/pci/hda/patch_sigmatel.c:2734:26: originally declared here Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Add docking-station mic input for Thinkpad X61Takashi Iwai2008-04-24
| | | | | | | Added the docking-stationc mic input to the capture source list for Thinkpad X61. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Fix initial DAC numbers of 92HD71bxx codecsTakashi Iwai2008-04-24
| | | | | | Fix the initial num_dacs of 92HD71bxx codecs. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda: Mic as output fixMatthew Ranostay2008-04-24
| | | | | | | | Added logic to check if AUTO_PIN_FRONT_MIC is available for output switch, if AUTO_PIN_MIC isn't. Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-intel - Use PCI_DEVICE() macroTakashi Iwai2008-04-24
| | | | | | Clean up the pci id table using PCI_DEVICE() macro. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda: STAC927x analog micMatthew Ranostay2008-04-24
| | | | | | | Some laptops have a internal analog microphone that is not setup by the BIOS. Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda: 92HDxxxx PCI QuirksMatthew Ranostay2008-04-24
| | | | | | | Added PCI_QUIRKS for laptop that have the 92HDxxx family of codecs. Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda: STAC927x invalid association valueMatthew Ranostay2008-04-24
| | | | | | | | STAC_DELL_BIOS quirks were setting the association value wrong for port 0x0f, which prevented it from being included in hp_outs[]. Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda: fix STAC927x power managementMatthew Ranostay2008-04-24
| | | | | | | | Fix issue on STAC927x codecs that first DAC was getting powered down even if was being used. Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Don't create multiple capture streams for single inputsTakashi Iwai2008-04-24
| | | | | | | When the device has only one input source, it makes no sense to have multiple capture streams. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Fix ALC268 capture sourceTakashi Iwai2008-04-24
| | | | | | | Initialize the capture source properly for auto model. It's especially important for cases that only mic is detected. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Add beep volume control to ALC268Takashi Iwai2008-04-24
| | | | | | | | Added the beep volume control to ALC268 codec support code. Since the codec doesn't return the correct AMP caps, we need to override the value. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Fix ALC662 recordingKailang Yang2008-04-24
| | | | | | | Fixed ALC662 recording issue. Signed-off-by: Kailang Yang <kailang@realtek.com.tw> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-intel - Clean up stream definitionsTakashi Iwai2008-04-24
| | | | | | Clean up the code to define playback/capture streams. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] Keep private TLV entry in vmaster itselfTakashi Iwai2008-04-24
| | | | | | | | | | Use a private array for TLV entries of virtual master controls instead of (supposed) static array. This cleans up the existing codes. Also, now vmaster assumes the simple dB-range TLV that is the only type it can handle. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] Move vmaster code to sound coreTakashi Iwai2008-04-24
| | | | | | | Move the codes for virtual master controls to sound core part so that not only hda-intel drivers can use it. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Add model=mobile for AD1884A & coTakashi Iwai2008-04-24
| | | | | | | Added the new model mobile for AD1884A and compatible codecs. It's a reduced version of model=laptop. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Add support of AD1883/1884A/1984A/1984BTakashi Iwai2008-04-24
| | | | | | | Added the support of new AD codecs: AD1883, AD1884A, AD1984A and AD1984B. These are almost compatible except for additional digital pins, etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Fix missing capsrc_nids for ALC262Takashi Iwai2008-04-24
| | | | | | | ALC262 must have capsrc_nids defined as well as in ALC882. Also, add a NULL check in alc882_mux_enum_put to avoid Oops. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] HDA-Intel - Patch to support RV7xx HDMI AudioLibin Yang2008-04-24
| | | | | | | This patch is to add R7xx HDMI audio support. Signed-off-by: Libin Yang <Libin.yang@amd.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Fix breakage of resume in auto-config of realtek codecsTakashi Iwai2008-04-24
| | | | | | | | The last patch for fixing the auto-config pin setting breaks the resume due to a wrong use of snd_hda_codec_amp_stereo(). The code in the init hook shouldn't touch the amp cache. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Add more names to vendor listTakashi Iwai2008-04-24
| | | | | | Added more known names to the vendor id list. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Add "IEC958 Default PCM" switchTakashi Iwai2008-04-24
| | | | | | | | | | | | | Added a new mixer switch to enable/disable the sharing of the default PCM stream with analog and SPDIF outputs. When "IEC958 Default PCM" switch is on, the PCM stream is routed both to analog and SPDIF outputs. This is the behavior in the earlier version. Turning this switch off has a merit for some codecs, though. Some codec chips don't support 24bit formats for SPDIF but only for analog outputs. In this case, you can use 24bit format by disabling this switch. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Fix auto-configuration of Realtek codecsTakashi Iwai2008-04-24
| | | | | | | | | This patch fixes some bugs in the auto-configurator of Realtek codecs: - add missing pin set-up for speaker pins - fix the speaker auto-mute function not to conflict with the existing "Speaker" mixer switch Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - More fix-up for auto-configurationTakashi Iwai2008-04-24
| | | | | | | | | | | In some cases, the BIOS sets up only the HP pins with different assoc and sequence numbers, e.g. on FSC Esprimo with ALC262. This patch adds a fix-up for such a case. When multiple HPs are defined and no line-outs is found, the configurator tries to re-assign some pins from HP list to line-out, judging from the sequence number. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Implement auto-mic jack sensing on Samsung laptopsTakashi Iwai2008-04-24
| | | | | | | | | | Implemented the auto-mic jack sensing for Samsung laptops with AD1986A codec chip (model=laptop-eapd). The hardware uses pin 0x1d and 0x1f for the internal and external mics, respectively. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Clean up capture source selection of Realtek codecsTakashi Iwai2008-04-24
| | | | | | | Clean up the codes of the capture source selection for Realtek codecs. Now using common helper functions with the new capsrc_nids field. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Fix automute of AD1981HD hp modelTakashi Iwai2008-04-24
| | | | | | | Reprogram the speaker-pin setting at each HP pin plug to make sure the spekaer auto-muting on AD1981HD hp model. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Fix ALC880 F1734 modelTakashi Iwai2008-04-24
| | | | | | | | Fixed some issues with ALC880 F1734 model - fix capture via mic - enable volume-wheel control Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - remove duplicate controls in alc268 test mixerJonathan Woithe2008-04-24
| | | | | | | | | I've just noticed that there are a handful of duplicate controls in the ALC268 test model mixer. This patch (against alsa-driver 1.0.16) removes them. Signed-off-by: Jonathan Woithe <jwoithe@physics.adelaide.edu.au> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Correct HDMI transmitter namesTakashi Iwai2008-04-24
| | | | | | Give better names to the new HDMI transmitter chips. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-intel - Fix a compile error with CONFIG_SND_DEBUG_DETECT=yTakashi Iwai2008-04-24
| | | | | | Forgot to get rid of the obsolete fragsize field from a debug print. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-intel - Support 64bit buffer allocationTakashi Iwai2008-04-24
| | | | | | | The HD-audio hardware usually supports 64bit address for DMA and other buffers. The patch enables the feature if supported. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-intel - Use SG bufferTakashi Iwai2008-04-24
| | | | | | Use SG buffers for the HD-audio instead of linear buffers. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda: STAC927x power down inactive DACsMatthew Ranostay2008-04-24
| | | | | | | | On several laptops that have STAC9228 codecs have unused DACs, this powers them down to a D3 state. Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Add ID for an unknown HDMI codec chipTakashi Iwai2008-04-24
| | | | | | Added the ID for an unknown HDMI codec chip on Jetway J9F2. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-intel - Fix PCM device number assignmentTakashi Iwai2008-04-24
| | | | | | | | | | | | | | | | | In the current scheme, PCM device numbers are assigned incrementally in the order of codecs. This causes problems when the codec number is irregular, e.g. codec #0 for HDMI and codec #1 for analog. Then the HDMI becomes the first PCM, which is picked up as the default output device. Unfortuantely this doesn't work well with normal setups. This patch introduced the fixed device numbers for the PCM types, namely, analog, SPDIF, HDMI and modem. The PCM devices are assigned according to the corresponding PCM type. After this patch, HDMI will be always assigned to PCM #3, SPDIF to PCM #1, and the first analog to PCM #0, etc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Add support of Zepto laptopsMirco Tischler2008-04-24
| | | | | | | Adds support for zepto laptops with alc268 intel_hda codec. Signed-off-by: Mirco Tischler <mt-ml@gmx.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Add SI HDMI codec supportTakashi Iwai2008-04-24
| | | | | | | | Added the support of SI HDMI codec, found in ASUS machines. ALSA bug#3654 https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3654 Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Allow multiple SPDIF devicesTakashi Iwai2008-04-24
| | | | | | | | | The current code doesn't allow multiple SPDIF devices, and causes errors when multiple SPDIF devices are found (e.g. SPDIF out and HDMI). This patch allows multiple SPDIF devices by incrementing the index automatically. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] HDA - Add support for the OQO Model 2Tobin Davis2008-04-24
| | | | | | | This patch adds support for the OQO Model 2 Ultra Mobile PC. Signed-off-by: Tobin Davis <tdavis@dsl-only.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Adapt eeepc p701 mixer for virtual master controlHerton Ronaldo Krzesinski2008-02-29
| | | | | | | | Fix the line-out volume control of eeepc p701 to be a proper slave of the virtual master control. Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Fix mixer names of realtek codecs to adapt mater controlsTakashi Iwai2008-02-29
| | | | | | | | | | | Some models like eeepc ep20 have invalid mixer names that aren't handled properly by virtual master controls. Rename them to the proper names. Also fixed some typos in the mixer names but they are not compiled in right now. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda_intel - Add model quirk for Albatron KI690-AM2 motherboardAndrew Paprocki2008-02-29
| | | | | | | | This adds a quirk to the Realtek ALC883 table for the Albatron KI690-AM2 motherboard to use the 6stack-dig model. Signed-off-by: Andrew Paprocki <andrew@ishiboo.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Add Fujitsu Lifebook E8410 to quirk tableTony Vroon2008-02-29
| | | | | | | Add the proper model entry for Fujitsu Lifebook E8410 with ALC262 codec. From: Tony Vroon <tony@linx.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Fix AD1988 capture elementsTakashi Iwai2008-02-29
| | | | | | | | The some indices of capture elements of AD1988 are wrongly assigned. This patch fixes it. See ALSA bug#3795 https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3795 Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-codec - Fix Master volume on HP dv8000Takashi Iwai2008-02-29
| | | | | | | | | HP dv8000 laptop has a problem with Master volume. It's due to the connection of the widget 0x13. When it's connected from the analog amp mixer (0x19), it works as expected mysteriously (ALSA bug#3775): https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3775 Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] hda-intel - Fix Oops with ATI HDMI devicesTakashi Iwai2008-02-22
| | | | | | | | | The driver gets Oops with ATI HDMI devices due to the wrong calculation of index for playback streams. This patch fixes it. Reference: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3746 Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>