summaryrefslogtreecommitdiffstats
path: root/sound/pci/cs5535audio/cs5535audio.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ALSA: cs5535audio: rename V_REFOUT control to MIC BiasAndres Salomon2008-12-101-0/+16
| | | | | | | | This drops the AD1888 V_REFOUT control, and replaces it with a MIC Bias Enable control. It also moves the MIC bias enabling into a separate function. Signed-off-by: Andres Salomon <dilinger@debian.org>
* ALSA: cs5535audio: create function for setting OLPC's Analog Input modeAndres Salomon2008-12-101-0/+2
| | | | | | | Clean this stuff up a bit.. Signed-off-by: Andres Salomon <dilinger@debian.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: cs5535audio: drop ec_analog_input flag for OLPC stuffAndres Salomon2008-12-101-3/+0
| | | | | | This is no longer necessary, as we're no longer doing indexed i/o commands. Signed-off-by: Andres Salomon <dilinger@debian.org>
* ALSA: cs5535audio: invert EAPD for OLPC (newer than B3)Andres Salomon2008-12-101-2/+9
| | | | | | | Fix an audible pop described in <http://dev.laptop.org/ticket/977>. Originally based upon fixes by Mitch Bradley and Chris Ball. Signed-off-by: Andres Salomon <dilinger@debian.org>
* ALSA: cs5535audio: OLPC analog input supportJaya Kumar2008-12-101-0/+9
| | | | | | | This is a 2nd cut at adding support for OLPC analog input. Signed-off-by: Jaya Kumar <jayakumar.lkml@gmail.com> Signed-off-by: Andres Salomon <dilinger@debian.org>
* ALSA: cs5535audio: suspend/resume callbacks are only defined with CONFIG_PMAndres Salomon2008-12-101-0/+3
| | | | | | | | snd_cs5535audio_suspend and snd_cs5535audio_resume are only defined when CONFIG_PM is set; make that clear in the header file. Signed-off-by: Andres Salomon <dilinger@debian.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: cs5535audio: turn off PCM properly if closing the audio deviceJaya Kumar2008-12-101-0/+1
| | | | | | | | | | As per <http://dev.laptop.org/ticket/1420>, we need to properly turn off the PCM if we're closing the device in order to save power. This also causes the MIC led to turn off properly. Signed-off-by: Jaya Kumar <jayakumar.lkml@gmail.com> Signed-off-by: Andres Salomon <dilinger@debian.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] cs5535audio: drop unused bus master stuffAndres Salomon2007-10-161-30/+1
| | | | | | | | | | | We really only care about the first two bus masters (playback and capture). There's no need to have unused BM code lying around, so let's get rid of it. If for some reason we trigger an IRQ for some BM that we're not using.. well, that warrants spitting out an error message (imo). Signed-off-by: Andres Salomon <dilinger@debian.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
* [ALSA] cs5535audio: fix ACC_BM[x]_CMD register handlingAndres Salomon2007-10-161-5/+5
| | | | | | | | | | According to 6.3.2.7 of the cs5535/cs5536 data sheets, the ACC_BM[x]_CMD registers are only 8 bits wide. This driver treats them as 32 bits wide, and also has bits in the wrong place. Simple fix to the definitions. Signed-off-by: Andres Salomon <dilinger@debian.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
* [ALSA] cs5535audio: fix PRD register save/restore power management raceAndres Salomon2007-10-161-1/+0
| | | | | | | | | | | | | | | | | In the suspend path, we currently save the PRD registers and then disable DMA. This is racy; the sound hardware might update the PRD register as it finishes processing some DMA pages between when we've saved the PRD registers and when DMA actually gets disabled. Furthermore, we actively check whether or not DMA is enabled before saving PRD registers; there's no reason to do that, as the PRD registers should not update when we twiddle the ACC_BM[x]_CMD register(s). Worst case, we save the PRD registers twice; even powering down the ACC shouldn't mess with the PRD registers (according to the 5536 data sheet, section 5.3.7.4, power-down procedure). This patch reworks all that to first disable DMA, and then save PRD registers. Signed-off-by: Andres Salomon <dilinger@debian.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
* [ALSA] PM support for cs5535audioJaya Kumar2006-06-221-0/+8
| | | | | | | | | | Appended is my patch adding PM support to the cs5535audio driver. I also added the ac97 quirk but it's not yet confirmed which boards need to be in the quirk list. The patch also includes some Kconfig and misc cleanup. Signed-off-by: Jaya Kumar <jayakumar.alsa@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] Remove xxx_t typedefs: PCI CS5535Takashi Iwai2006-01-031-22/+22
| | | | | | | | Modules: CS5535 driver Remove xxx_t typedefs from the PCI CS5535 driver. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] Minor clean up and fixes for CS5535 audio driverTakashi Iwai2006-01-031-5/+5
| | | | | | | | | Modules: Documentation,CS5535 driver Minor clean up and fixes for CS5535 audio driver. Added an entry in ALSA-Configuration.txt, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] Add support for the CS5535 Audio deviceJaya Kumar2006-01-031-0/+123
Add support for the CS5535 Audio device. I've fixed up some errors as per Takashi's advice from the thread: http://lkml.org/lkml/2005/9/15/119 From: Alan Cox <alan@lxorguk.ukuu.org.uk> cs5535 is a 32bit x86 only device using weird CPU features Signed-off-by: Jaya Kumar <jayakumar.alsa@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>