summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* ALSA: hda - Fix unused function in patch_intelhdmi.cTakashi Iwai2008-11-051-0/+2
| | | | | | | | | 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-055-0/+940
| | | | | | | | | | | 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-041-0/+5
| | | | | | | | | | 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-041-1/+3
| | | | | | | | 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-031-0/+13
| | | | | | | | | 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-032-1/+30
| | | | | | 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-311-0/+9
| | | | | | | 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-311-526/+218
| | | | | | | | | 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-311-176/+100
| | | | | | | | 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-311-60/+53
| | | | | | | 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-312-2/+55
|\
| * ALSA: hda - Add digital-mic for ALC269 auto-probe modeTakashi Iwai2008-10-311-2/+20
| | | | | | | | | | | | | | 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-311-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | 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-291-0/+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-293-3/+3
|\ \ | |/
| * ALSA: hda - Fix SPDIF mute on IDT/STAC codecsTakashi Iwai2008-10-291-3/+1
| | | | | | | | | | | | | | | | 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-281-0/+1
| | | | | | | | | | | | | | 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-281-0/+1
| | | | | | | | | | | | 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-291-7/+7
| | | | | | | | | | | | 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-281-0/+77
|\ \ | |/
| * ALSA: hda - Restore default pin configs for realtek codecsTakashi Iwai2008-10-271-0/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-281-29/+4
| | | | | | | | | | | | | | | | 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-2716-412/+970
|\ \ | |/ |/|
| * ALSA: hda: add support for jack detection on IDT codecs.Matthew Ranostay2008-10-271-33/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-273-36/+56
| | | | | | | | | | | | | | | | 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-271-1/+2
| | | | | | | | | | | | | | | | | | 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-273-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | 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-161-0/+3
| | | | | | | | | | | | | | 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-1612-355/+731
| |\
| | * ALSA: hda - Add hints for reconfigTakashi Iwai2008-10-132-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | 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-133-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-133-2/+177
| | | | | | | | | | | | | | | | | | | | | 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-133-47/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-135-15/+52
| | | | | | | | | | | | | | | | | | | | | | | | 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-133-15/+29
| | | | | | | | | | | | | | | | | | | | | 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-137-190/+132
| | | | | | | | | | | | | | | | | | 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-132-0/+54
| | | | | | | | | | | | | | | | | | 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-133-95/+105
| | | | | | | | | | | | | | | | | | 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-162-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | 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-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-211-8/+14
|/ / | | | | | | | | | | | | | | | | | | | | 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-161-0/+1
| | | | | | | | | | | | | | 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-151-2/+3
| | | | | | | | | | | | | | | | | | - 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>
* | ALSA: hda - Add support of ALC272Kailang Yang2008-10-151-0/+4
| | | | | | | | | | | | | | Added the support of ALC272 codec. It's almost compatible with ALC663. Signed-off-by: Kailang Yang <kailang@realtek.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Add ALC887 supportKailang Yang2008-10-151-0/+1
| | | | | | | | | | | | | | Added ALC887 support. It's almost compatible with ALC883/888. Signed-off-by: Kailang Yang <kailang@realtek.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Add ALC1200 supportKailang Yang2008-10-151-2/+9
| | | | | | | | | | | | | | Add ALC1200 codec support. Almost compatible with ALC888. Signed-off-by: Kailang Yang <kailang@realtek.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Fix PCI SSID of ASUS M90VKailang Yang2008-10-151-1/+1
| | | | | | | | | | | | | | ASUS M90V has PCI SSID 1043:1873. Corrected in the quirk list. Signed-off-by: Kailang Yang <kailang@realtek.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda - Add auto mic switch in realtek auto-probe modeKailang Yang2008-10-151-15/+50
| | | | | | | | | | | | | | | | Add the automatic mic switch via jack sensing in auto-probe mode for Realtek codecs. Signed-off-by: Kailang Yang <kailang@realtek.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* | ALSA: hda: fix nid variable warningMatthew Ranostay2008-10-141-1/+1
|/ | | | | | | | | | | | | Fixed compiler warning with possible uninitialized variable 'nid'. CC [M] /home/mranostay/git/alsa-driver/pci/hda/patch_sigmatel.o /home/mranostay/git/alsa-driver/pci/hda/../../alsa-kernel/pci/hda/patch_sigmatel.c: In function ‘stac92xx_parse_auto_config’: /home/mranostay/git/alsa-driver/pci/hda/../../alsa-kernel/pci/hda/patch_sigmatel.c:2815: warning: ‘nid’ may be used uninitialized in this function Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: hda: corrected invalid mixer valuesMatthew Ranostay2008-10-131-4/+4
| | | | | | | Corrected invalid mixer index values on the 92hd71bxxx codec branch. Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
OpenPOWER on IntegriCloud