aboutsummaryrefslogtreecommitdiffstats
path: root/sound
Commit message (Collapse)AuthorAge
...
* | ALSA: hda - Add max allocation check in array allocatorTakashi Iwai2008-11-06
| | | | | | | | | | | | | | Added a check for max allocation size in snd_array_new() for a debugging purpose. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Add missing NULL check in amp hash allocationTakashi Iwai2008-11-06
| | | | | | | | | | | | Added the missing NULL check from allocator in get_alloc_hash(). Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Add lifebook model for Realtek ALC269Tony Vroon2008-11-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The widget layout of the Fujitsu Lifebook S6420 (which is ICH9M-based and uses an ALC269) is similar but not identical to the Lifebook S6410/E8410 (which are ICH8M-based and use an ALC262). It is named lifebook as fujitsu is in use for Amilo machines. This builds on the Quanta FL1 work and supports all analog inputs & outputs that I am aware of. Microphone autoswitch is implemented. The laptop mic port takes precedence over the dock mic port if both happen to have a jack plugged in. This made sense to me as a design decision (imagine a presentation environment with the dock fully wired in and the presenter quickly wanting to override the mic with a headset). There is mention of a digital audio path on the codec graph, so perhaps the headphone socket is dual-function analog/digital. I will follow up with another patch if I can acquire equipment to test this. Signed-off-by: Tony Vroon <tony@linx.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Make codec-probing more robustTakashi Iwai2008-11-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When an error occurs during the codec probing, typically accessing to an non-existing codec slot, the controller chip gets often screwed up and can no longer communicate with the codecs. This patch adds a preparation phase just to probe codec addresses before actually creating codec instances. If any error occurs during this probing phase, the driver resets the controller to recover. This will (hopefully) fix the famous "single_cmd" errors. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - simplify hda_bus ops callbacksTakashi Iwai2008-11-06
| | | | | | | | | | | | | | | | The hda_bus ops callback take struct hda_bus pointer. Also, the command callback takes the composed command word, instead of each small bits in arguments. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Split ALC268 acer modelTakashi Iwai2008-11-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There are actually two variants of ALC268 Acer implementation, one with an analog built-in mic (pin 0x19) and another with a digital mic (pin 0x12). Created a new model, acer-dmic, for the latter case now. So far, all known models are assigned to be analog-mic, according to the BIOS setup. If this doesn't match with the actual case, one needs to try model=acer-dmic, and fix the entry to point ALC268_ACER_DMIC if it works. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Add ASUS V1Sn supportTakashi Iwai2008-11-05
| | | | | | | | | | | | | | | | | | | | | | Asus V1s series laptops have an ALC660VD with PCI id: 0x1043, 0x1633. 1.) remove the previous behaviour of mapping that to the ALC861VD_LENOVO device. 2.) add a new ALC660VD_V1S device based on ALC861VD_LENOVO, with an added digital out. Signed-off-by: Tristan Aston <astrotris@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Fix unused function in patch_intelhdmi.cTakashi Iwai2008-11-05
| | | | | | | | | | | | | | | | | | Add a proper ifdef to shut out a compile warning: CC [M] sound/pci/hda/patch_intelhdmi.o sound/pci/hda/patch_intelhdmi.c:286: warning: ‘hdmi_get_dip_index’ defined but \ not used Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Intel HDMI audio supportWu, Fengguang2008-11-05
| | | | | | | | | | | | | | | | | | | | | | Add support for Intel G45 integrated HDMI audio codecs. This initial release supports: - 2 channel stereo sound output - report monitor's ELD information Signed-off-by: Wu Fengguang <wfg@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Don't create empty PCM streamsTakashi Iwai2008-11-04
| | | | | | | | | | | | | | | | | | | | Due to the hda-reconfiguration patches, the check of empty stream is gone, and this results in an error with the codec setup with empty streams. This patch adds the check again to avoid the error at probing. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Fix possible NULL dereferenceTakashi Iwai2008-11-04
| | | | | | | | | | | | | | | | Add NULL-check of the return value of snd_kctl_new1() before accessing it. Also, make a sanity NULL check to snd_BUG_ON() for debugging only. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Fix missing ADC list in ALC260 auto-probe modeTakashi Iwai2008-11-03
| | | | | | | | | | | | | | | | | | The commit f9e336f65b666b8f1764d17e9b7c21c90748a37e ALSA: hda - Unify capture mixer creation in realtek codes removed the ADC check for ALC260 auto-probe mode accidentally. Re-added to patch_alc260() again. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Add ALC299 fujitsu preset modelTakashi Iwai2008-11-03
| | | | | | | | | | | | Added a preset model for FSC Amilo with ALC269 codec chip. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Re-add input-source control for RealtekTakashi Iwai2008-10-31
| | | | | | | | | | | | | | Re-added again "Input Source" control that was removed mistakenly in the previous patchset. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Unify capture mixer creation in realtek codesTakashi Iwai2008-10-31
| | | | | | | | | | | | | | | | | | Unified the capture mixer creation in patch_realtek.c. ALC268 is still an exception since it has no AMP in ADC but in MUX widget. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Unify capture callbacks in realtek codesTakashi Iwai2008-10-31
| | | | | | | | | | | | | | | | Unify the capture callbacks in patch_realtek.c. The difference of matrix or mux style is checked via spec->is_mix_capture flag. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Use macros to check array overflowTakashi Iwai2008-10-31
| | | | | | | | | | | | | | Use macro to add mixer and verb elements to check the possible array overflow. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | Merge branch 'topic/fix/hda' into topic/hdaTakashi Iwai2008-10-31
|\|
| * ALSA: hda - Add digital-mic for ALC269 auto-probe modeTakashi Iwai2008-10-31
| | | | | | | | | | | | | | The digital mic wasn't detected properly for ALC269 auto-probing mode because of its widget number. Fixed now. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda - Disable broken mic auto-muting in Realtek codesTakashi Iwai2008-10-31
| | | | | | | | | | | | | | | | | | | | | | | | The recent addition of automatic mic-muting is broken in some cases. The code assumes that the pin nids <= 0x18, but the digital pins can be less than 0x18. Also, it assumes the front-mic being the internal mic, but it depends on the hardware implementation actually. Instead of complex case-fixes, better to disable the code as now. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda - Add reboot notifierTakashi Iwai2008-10-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The current snd-hda-intel driver seems blocking the power-off on some devices like eeepc. Although this is likely a BIOS problem, we can add a workaround by disabling IRQ lines before power-off operation. This patch adds the reboot notifier to achieve it. The detailed problem description is found in bug#11889: http://bugme.linux-foundation.org/show_bug.cgi?id=11889 Tested-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br> Cc: stable@kernel.org Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | Merge branch 'topic/fix/hda' into topic/hdaTakashi Iwai2008-10-29
|\|
| * ALSA: hda - Fix SPDIF mute on IDT/STAC codecsTakashi Iwai2008-10-29
| | | | | | | | | | | | | | | | The SPDIF mute switch code seems broken. It doesn't set unmute bits properly. Also it contains the duplicated lines (merge error?) to be cleaned up. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda: Add HDA vendor ID for Wolfson MicroelectronicsMark Brown2008-10-28
| | | | | | | | | | | | | | Add Wolfson Microelectronics to the HDA vendor ID table. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda - Add another HP model for AD1884ATakashi Iwai2008-10-28
| | | | | | | | | | | | Added a quirk entry for another HP mobile device with AD1884A codec. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Fix indentation in hda_local.hTakashi Iwai2008-10-29
| | | | | | | | | | | | Just cosmetic fixes of spacing that annoyed me. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | Merge branch 'topic/fix/hda' into topic/hdaTakashi Iwai2008-10-28
|\|
| * ALSA: hda - Restore default pin configs for realtek codecsTakashi Iwai2008-10-27
| | | | | | | | | | | | | | | | | | | | | | | | | | Some machines have broken BIOS resume that doesn't restore the default pin configuration properly, which results in a wrong detection of HP pin. This causes a silent speaker output due to missing HP detection. Related bug: Novell bug#406101 https://bugzilla.novell.com/show_bug.cgi?id=406101 This patch fixes the issue by saving/restoring the default pin configs by the driver itself. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Remove old codec-probe limitationTakashi Iwai2008-10-28
| | | | | | | | | | | | | | | | Removed the old workaround to avoid the non-existing codec slot. The current code should work without that workaround. If any, we can add a quirk table. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | Merge branch 'topic/hda-next' into topic/hdaTakashi Iwai2008-10-27
|\ \ | |/ |/|
| * ALSA: hda: add support for jack detection on IDT codecs.Matthew Ranostay2008-10-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support to the IDT codec families to report jack status to the jack abstraction layer. This required some reorganization in the stac92xx_unsol_event function in which the index value is changed to reporting the nid with the event. Also adds an sigmatel_jack struct to keep track of the nid relation to the jack abstraction layer instance. Also adds functions to set and retrieve data values for each nid, this is used in stac92xx_unsol_event to retrieve the GPIO mask for STAC_VREF_EVENT. Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda: add snd_hda_get_jack* functionsMatthew Ranostay2008-10-27
| | | | | | | | | | | | | | | | This patch adds snd_hda_get_jack* functions for reporting jack location, device, and connectivity type. Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda: dynamic jack idMatthew Ranostay2008-10-27
| | | | | | | | | | | | | | | | | | This patch duplicates the jack->id pointer with kstrdup() to prevent scoping issues from calling autoprobing functions from the HDA section. Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: jack: lineout support to jack abstraction layerMatthew Ranostay2008-10-27
| | | | | | | | | | | | | | | | | | | | | | | | This patch introduces support for reporting SW_LINEOUT_INSERT detection events via the jack abstraction layer. Also adds a SND_JACK_LINEOUT define to the input system header. Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com> Cc: Dmitry Torokhov <dtor@mail.ru> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * ALSA: hda - Release jack instance for dynamic reconfigureTakashi Iwai2008-10-16
| | | | | | | | | | | | | | The jack instance has to be release manually in free callback in patch_sigmatel.c for dynamic reconfiguration. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * Merge branch 'topic/hda-reconfig' into topic/hda-nextTakashi Iwai2008-10-16
| |\
| | * ALSA: hda - Add hints for reconfigTakashi Iwai2008-10-12
| | | | | | | | | | | | | | | | | | | | | | | | This patch adds the "hints" for reconfiguring codecs. The hints are simply string arrays and can be freely used/parsed by the codec patch. The hints can be input via hwdep sysfs files. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| | * ALSA: hda - Add init_verbs entriesTakashi Iwai2008-10-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch enables the additional init verbs for each codec. The verbs can be entered via hwdep sysfs file. These verbs are executed at reconfiguring the codec for non-standard setups like overriding the pin-defcfg. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| | * ALSA: hda - Add sysfs entries to hwdep devicesTakashi Iwai2008-10-12
| | | | | | | | | | | | | | | | | | | | | Added the sysfs entries to hwdep devices so that the new features like reconfiguration can be done via sysfs. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| | * ALSA: hda - Add codec reconfiguration featureTakashi Iwai2008-10-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | Added the reconfiguration feature of any individual codec. Via the reconfiguration, the old resources are released and the patch is called again to recreate the PCM and mixers in addition to the re-initialization. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| | * ALSA: hda - Manage kcontrol listsTakashi Iwai2008-10-12
| | | | | | | | | | | | | | | | | | | | | | | | Manage all kcontrol elements created in the hda-intel driver. This makes it possible to remove and reconfigure the controls of each codec. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| | * ALSA: hda - Allocate name string of each codecTakashi Iwai2008-10-12
| | | | | | | | | | | | | | | | | | | | | Allocate dynamically the name string of each codec instead of pointing to a static string. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| | * ALSA: hda - Use generic array helpersTakashi Iwai2008-10-12
| | | | | | | | | | | | | | | | | | Use generic array helpers to simplify array handling in snd-hda-intel. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| | * ALSA: hda - Add generic arraysTakashi Iwai2008-10-12
| | | | | | | | | | | | | | | | | | Added helper functions to handle generic arrays. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| | * ALSA: hda - Add infrastructure for dynamic stream allocationTakashi Iwai2008-10-12
| | | | | | | | | | | | | | | | | | Added the infrastructure for dynamic stream allocation on HD-audio. Signed-off-by: Takashi Iwai <tiwai@suse.de>
| * | ALSA: hda: add support for jack detection on IDT/SigmatelMatthew Ranostay2008-10-16
| | | | | | | | | | | | | | | | | | | | | | | | Added support for jack detection reporting to userspace for IDT/Sigmatel codecs. Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - correct bracketing in spdif test in patch_sigmatel.cHarvey Harrison2008-10-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | Noticed by sparse: sound/pci/hda/patch_sigmatel.c:1285:43: warning: dubious: !x & y Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Acked-by: Matthew Ranostay <mranostay@embeddedalley.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | | ALSA: hda - Fix conflicting volume controls on ALC260Takashi Iwai2008-10-21
|/ / | | | | | | | | | | | | | | | | | | | | ALC260 auto-parsing mode may create multiple controls for the same volume widget (0x08 and 0x09) depending on the pin. For example, Front and Headphone volumes may control the same volume, just the latter one wins. This patch adds a proper check of the existing of the volume control and avoid the doulbed creation of the same volume controls. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Fix PCM type of Nvidia HDMI devicesTakashi Iwai2008-10-16
| | | | | | | | | | | | | | Added the missing PCM type for Nvidia HDMI devices so that they point the right device number. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Fix quirk lists for realtek codecsKailang Yang2008-10-15
| | | | | | | | | | | | | | | | | | - Fix Toshiba S06 SSID to 1179:ff7b - Fix ASUS G50V quirk name - Add ASUS N20 quirk Signed-off-by: Kailang Yang <kailang@realtek.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>