aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ac97 (follow)
AgeCommit message (Collapse)AuthorFilesLines
2006-01-03[ALSA] ak4531 - Add PM supportTakashi Iwai1-1/+35
Modules: AK4531 codec Add PM support to AK4531 codec driver. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2006-01-03[ALSA] ac97 - NULL check in snd_ac97_suspend/resumeTakashi Iwai1-0/+5
Modules: AC97 Codec Add NULL check in snd_ac97_suspend() and snd_ac97_resume() so that the caller doesn't have to do it by itself. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2006-01-03[ALSA] ac97-codec - Better ac97_bus nameTakashi Iwai1-2/+4
Modules: AC97 Codec Generate a better name string for ac97_bus sysfs interface including the name of ac97 codec chip. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2006-01-03[ALSA] Remove xxx_t typedefs: AK4531 codecTakashi Iwai1-29/+30
Modules: AK4531 codec Remove xxx_t typedefs from the AK4531 codec support code. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2006-01-03[ALSA] Remove xxx_t typedefs: AC97Takashi Iwai7-456/+457
Modules: AC97 Codec Remove xxx_t typedefs from the AC97 codec support. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2006-01-03[ALSA] ac97 - Remove ac9_enum definition from public headerTakashi Iwai1-0/+9
Modules: AC97 Codec Remove the definition of ac97_enum struct from the public ac97_codec.h. It's used only in the module. The location of struct ac97_pcm is moved closer to its accessor to improve readability. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2006-01-03[ALSA] ac97 - procfs - print PCI subsystem vendor/device valuesJaroslav Kysela1-0/+7
Modules: AC97 Codec For debugging and problem finding purposes, show also the PCI subsystem vendor/device values in the ac97#X proc file. Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-11-04[ALSA] ac97 - Fix confliction of DRA and surround slotsTakashi Iwai2-0/+11
Modules: AC97 Codec Fixed the confliction of DRA and surround slots 7/8. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-11-04[ALSA] Fix schedule_timeout usageNishanth Aravamudan1-10/+5
Use schedule_timeout_{,un}interruptible() instead of set_current_state()/schedule_timeout() to reduce kernel size. Also use human-time conversion functions instead of hard-coded division to avoid rounding issues. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-11-04[ALSA] Remove snd_runtime_check() macroTakashi Iwai2-2/+2
Remove snd_runtime_check() macro. This macro worsens the readability of codes. They should be either normal if() or removable asserts. Also, the assert displays stack-dump, instead of only the last caller pointer. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-11-04[ALSA] Removing obsolete AC97_SHARED_TYPESSasha Khapyorsky1-36/+2
This patch cleans last ac97 audio/modem codec interception in initialization procedures (ac97_mixer_new()) and removes obsolete SHARED_TYPE 'locking' which prevents from AMC codecs to function correctly. Signed-off-by: Sasha Khapyorsky <sashak@smlink.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-11-04[ALSA] Fix a typoTakashi Iwai1-1/+1
Modules: AC97 Codec Fix a typo in the last patch. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-11-04[ALSA] Fix surround control of CMI9761Takashi Iwai1-27/+50
Modules: AC97 Codec - Fixed surround controls of CMI9761 (model 83) in update_jacks callback. - Clean up ad1888 and ad1985 update_jacks callbacks. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-10-28[PATCH] DRIVER MODEL: Get rid of the obsolete tri-level suspend/resume callbacksRussell King1-2/+4
In PM v1, all devices were called at SUSPEND_DISABLE level. Then all devices were called at SUSPEND_SAVE_STATE level, and finally SUSPEND_POWER_DOWN level. However, with PM v2, to maintain compatibility for platform devices, I arranged for the PM v2 suspend/resume callbacks to call the old PM v1 suspend/resume callbacks three times with each level in order so that existing drivers continued to work. Since this is obsolete infrastructure which is no longer necessary, we can remove it. Here's an (untested) patch to do exactly that. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-10-07[ALSA] clean suspend/resume calls for ac97_bus_typeNicolas Pitre1-13/+3
AC97 Codec A single call to the driver suspend/resume method for each device is enough. The level and SUSPEND_*/RESUME_* arguments are deprecated and said to be removed eventually anyway (no other subsystem are using them anymore except platform devices). Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-10-07[ALSA] remove redundent assignment to the ac97 device structureNicolas Pitre1-1/+0
AC97 Codec Don't use dev.platform_data to store a reference to the containing ac97_t structure. Such assignment is redundent since we can deduce the ac97_t structure location from the contained device structure. This sets platform_data free for other purposes. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-10-07[ALSA] remove bogus match method for ac97_busNicolas Pitre1-3/+4
AC97 Codec The bus_id is initialized with a generic identifier string which is not really useful for proper driver matching. Let the driver decide what it needs via its probe method instead. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-10-07[ALSA] no templated index for si3036 modem controlsSasha Khapyorsky1-1/+5
AC97 Codec No index is templated for si3036 modem controls. Signed-off-by: Sasha Khapyorsky <sashak@smlink.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-10-07[ALSA] no templated index for mc97 controlsSasha Khapyorsky1-1/+1
AC97 Codec No index is templated for mdoem controls. Signed-off-by: Sasha Khapyorsky <sashak@smlink.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-09-12[ALSA] Replace with kzalloc() - pci stuffTakashi Iwai2-3/+3
AD1889 driver,ATIIXP driver,ATIIXP-modem driver,AZT3328 driver BT87x driver,CMIPCI driver,CS4281 driver,ENS1370/1+ driver ES1938 driver,ES1968 driver,FM801 driver,Intel8x0 driver Intel8x0-modem driver,Maestro3 driver,SonicVibes driver,VIA82xx driver VIA82xx-modem driver,AC97 Codec,AK4531 codec,au88x0 driver CA0106 driver,CS46xx driver,EMU10K1/EMU10K2 driver,HDA Codec driver HDA generic driver,HDA Intel driver,ICE1712 driver,ICE1724 driver KORG1212 driver,MIXART driver,NM256 driver,Trident driver,YMFPCI driver Replace kcalloc(1,..) with kzalloc(). Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-09-12[ALSA] Fix ALC658D supportTakashi Iwai3-2/+15
AC97 Codec Fix the internal speaker problem (e.g. Targa Traveller 826) with ALC658D codec. The info is taken from Cyberlink/realtek-modified code. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-09-12[ALSA] Fix EAPD for MSI S270Takashi Iwai1-2/+7
AC97 Codec Fix pin47 setting for EAPD control on MSI S270 laptop. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-08-30[ALSA] HP nx6110 quirksSergey Vlasov1-0/+1
Intel8x0 driver,AC97 Codec The HP nx6110 laptop needs to have Headphone Jack Sense enabled so that the internal speakers will be turned off when headphones are plugged in. Also ac97_quirk=hp_only is needed to make a single Master volume in the mixer instead of separate volumes for internal speakers and headphones, which just confuses the user. Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-08-30[ALSA] ac97_bus - revert last change and do it only in the ALSA treeJaroslav Kysela1-1/+1
AC97 Codec Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-08-30[ALSA] ac97_bus - replace <linux/module.h> with <sound/driver.h> for consistencyJaroslav Kysela1-1/+1
AC97 Codec Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-08-30[ALSA] ac97 - make ac97 codec device name uniqueBjorge Dijkstra1-1/+1
AC97 Codec The patch fixes the bus_id conflict error when registering two codecs of the same type (ALSA bug#1334). Signed-off-by: Bjorge Dijkstra <bjorge@gmx.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-08-30[ALSA] ac97: make patch_wolfson_wm97??_specific() functions staticClemens Ladisch1-4/+4
AC97 Codec Make the patch_wolfson_wm97??_specific() functions static again. This patch was accidentally reverted in rev. 1.92. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-08-30[ALSA] Add VT1617A codec supportPhilip Prindeville3-6/+19
AC97 Codec Added (minimal) support of VT1617A codec with SPDIF. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-08-30[ALSA] make local objects staticClemens Ladisch1-4/+4
Memalloc module,PCM Midlevel,Timer Midlevel,GUS Library,AC97 Codec ALI5451 driver,RME9652 driver Make some functions/variables that are used in only one file static. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-08-30[ALSA] WM9713 modem detectionLiam Girdwood1-0/+1
AC97 Codec This patch fixes a problem whereby the WM9713 has modem functionality incorrectly detected after an AC97 cold reset. Changes:- o Cleared AC97_SCAP_MODEM in wm9713 scaps Signed-off-by: Liam Girdwood <liam.girdwood@wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-08-30[ALSA] use SNDRV_CTL_NAME_IEC958 macroClemens Ladisch1-4/+4
CMI8330 driver,ENS1370/1+ driver,FM801 driver,VIA82xx driver,AC97 Codec ALI5451 driver,CS46xx driver,EMU10K1/EMU10K2 driver,HDA Codec driver ICE1712 driver,ICE1724 driver Where appropriate, use the SNDRV_CTL_NAME_IEC958 instead of a literal string. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-08-30[ALSA] AC97 bus interface for ad-hoc driversLiam Girdwood3-0/+116
AC97 Codec,PCI drivers I've made the review changes and as requested I've pasted the RFC by Nicolas below:- 'I would like to know what people think of the following patch. It allows for a codec on an AC97 bus to be shared with other drivers which are completely unrelated to audio. It registers a new bus type, and whenever a codec instance is created then a device for it is also registered with the driver model using that bus type. This allows, for example, to use the extra features of the UCB1400 like the touchscreen interface and the additional GPIOs and ADCs available on that chip for battery monitoring. I have a working UCB1400 touchscreen driver here that simply registers with the driver model happily working alongside with audio features using this.' Changes over RFC:- o Now matches codec name within codec group. o Added ac97_dev_release() to stop kernel complaining about no release method for device. o Added 'config SND_AC97_BUS' to sound/pci/Kconfig and moved 'config SND_AC97_CODEC' out with the PCI=n statement. o module is now called snd-ac97-bus Signed-off-by: Liam Girdwood <liam.girdwood@wolfsonmicro.com> Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-08-30[ALSA] WM97xx AC97 codec controlsLiam Girdwood2-109/+364
AC97 Codec o Enhanced current WM97xx support to provide additional controls and use the kcontrol suffix naming convention. o Added AC97_HAS_NO_MIC, AC97_HAS_NO_TONE and AC97_HAS_NO_STD_PCM. o Cleaned up WM97xx related comments. o Removed some wm9713 double mono controls and replaced with stereo controls. Signed-off-by: Liam Girdwood <liam.girdwood@wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-07-28[ALSA] Jack Sense support for AD1980 and AD1888Sergey Ulanov1-0/+3
AC97 Codec Attached patch adds 'Jack Sense' controls for AD1980 and AD1888 chips. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-07-28[ALSA] ac97 - remove unused variableClemens Ladisch1-1/+0
AC97 Codec remove a variable made obsolete by the last change Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-07-28[ALSA] ac97: Fix volume control bit size detection for STAC9704.James Courtier-Dutton1-0/+5
AC97 Codec Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-07-28[ALSA] sound/pci: fix-up sleeping pathsNishanth Aravamudan1-8/+9
ENS1370/1+ driver,ES1968 driver,Intel8x0 driver,VIA82xx driver VIA82xx-modem driver,AC97 Codec,ALI5451 driver,CS46xx driver MIXART driver,RME HDSP driver,Trident driver,YMFPCI driver Description: Fix-up sleeping in sound/pci. These changes fall under the following two categories: 1) Replace schedule_timeout() with msleep() to guarantee the task delays as expected. This also involved replacing/removing custom sleep functions. 2) Do not assume jiffies will only increment by one if you request a 1 jiffy sleep, i.e. use time_after/time_before in while loops. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-07-28[ALSA] Fix resume of intel8x0Takashi Iwai1-0/+2
Intel8x0 driver,AC97 Codec Fix resume of intel8x0 driver. The ac97 codec didn't restore some registers properly, and the restore of ICH4 SPDIF and SDIN settings was missing. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-06-22[ALSA] AC97 - renamed vendor/device to subvendor/subdevice where appropriateJaroslav Kysela1-4/+4
AC97 Codec,ATIIXP driver,VIA82xx driver To avoid confusion, the structure members vendor/device were renamed to subvendor/subdevice, because we compare them with PCI subsystem vendor and subsystem device. Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-06-22[ALSA] MC97 modem mixer in sound/pci/ac97Sasha Khapyorsky2-4/+38
AC97 Codec Simple MC97 modem mixer with two common controls: Off-hook and CID, and Si3056 MC specific control: Modem Speaker. Signed-off-by: Sasha Khapyorsky <sashak@smlink.com> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-05-29[ALSA] Fix a wrong bit set in AC1985 codeTakashi Iwai1-2/+2
AC97 Codec Fixed a wrong bit set in AD1985 surround jack controls. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Fix Mic/CLFE sharing on AD1985Takashi Iwai1-6/+13
AC97 Codec Fixed Mic/CLFE jack sharing on AD1985 codec. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Remove obsolete mixer controlTakashi Iwai1-1/+0
AC97 Codec Removed the obsolete mixer control for AD1985. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] ac97 - enable multichannel output on AD198x codecsClemens Ladisch1-2/+4
AC97 Codec The code for AD1980/AD1985/AD1986 codecs forgot to enable the code to switch the jack sharing bits on AD1888-compatible codecs. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] ac97 - fix Mic jack sharing on AD1888 codecsClemens Ladisch1-1/+1
AC97 Codec The code for modifying the center/LFE disable bit on AD1888 codecs accidentally toggled the mute split bit instead. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2005-05-29[ALSA] ac97 - add the 'Mic Front Input Switch' control (ALC850)Sergey Vlasov1-0/+1
AC97 Codec Add the 'Mic Front Input Switch' control to the mixer for ALC850. Enabling this input is required for using the front panel microphone connector with ASUS A8V motherboard. Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-05-29[ALSA] fix behaviour of ac97_enum_mixer elementsSergey Vlasov1-2/+2
AC97 Codec ac97_enum mixer elements (e.g., 'Capture Source') did not work because of wrong bitmask calculation in snd_ac97_get_enum_double() and snd_ac97_put_enum_double(). https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1072 Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2005-05-29[ALSA] Improve the shared-jack handling on ac97Takashi Iwai1-190/+236
AC97 Codec The handling of shared surround/clfe output jacks with line/mic-in on some AC97 codecs is improved. Instead of 'Line-In As Surround' or 'Mic As Center/LFE' switch, two new enum controls are introduced: 'Channel Mode' and 'Surround Jack Mode'. The formar changes the current output mode among 2, 4 and 6-channels. The latter controls whether the jacks are shared or independent. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] MC97 registers resetSasha Khapyorsky1-1/+5
AC97 Codec Separated ac97 registers reset for audio and modem (or both) as recommended in AC97 spec. Signed-off-by: Sasha Khapyorsky <sashak@smlink.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-05-29[ALSA] Fix MC97 codec initializationSasha Khapyorsky1-5/+5
AC97 Codec This (especially 12000 -> 8000 sample rate replace) fix popular 'MC97 converters.. not ready' error with modem codecs initializations. Signed-off-by: Sasha Khapyorsky <sashak@smlink.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>