summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8974.c
Commit message (Collapse)AuthorAgeFilesLines
* ASoC: wm8974: fix a wrong bit definitionGuennadi Liakhovetski2009-12-181-1/+1
| | | | | | | | | The wm8974 datasheet defines BUFIOEN as bit 2. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: stable@kernel.org
* ASoC: Remove redundant snd_soc_dapm_new_widgets() callsMark Brown2009-11-121-1/+0
| | | | | | | The DAPM widgets are now insntantiated by the core when creating the card so there is no need for the individual CODEC drivers to do so. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: Factor out snd_soc_init_card()Mark Brown2009-11-031-8/+0
| | | | | | | | | snd_soc_init_card() is always called as the last part of the CODEC probe function so we can factor it out into the core card setup rather than have each CODEC replicate the code to do the initialiastation. This will be required to support multiple CODECs per card. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* Merge branch 'upstream/wm8974' into for-2.6.33Mark Brown2009-09-301-10/+13
|\
| * ASoC: Clean up WM8974 PLL configurationMark Brown2009-09-301-10/+13
| | | | | | | | | | | | | | | | | | | | Don't use a static for WM8974 PLL factors - we don't support more than one device so it won't happen but no sense in leaving the race condition hanging around. Also, pre_div is a single bit and it's a bit simpler if we move the handling of the factor of 4 in the output into the coefficient setup. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* | Merge branch 'for-2.6.32' into for-2.6.33Mark Brown2009-09-181-1/+0
|\ \
| * | ASoC: remove unused #include <linux/version.h>Huang Weiyi2009-09-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unused #include <linux/version.h>('s) in sound/soc/codecs/ad1836.c sound/soc/codecs/ad1938.c sound/soc/codecs/wm8974.c Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* | | ASoC: Add source argument to PLL configurationMark Brown2009-09-051-2/+2
|/ / | | | | | | | | | | | | | | | | | | More and more devices feature PLLs and FLLs with the ability to select between multiple input clocks. In order to better support these devices a new argument, source, has been added to the set_pll() configuration API. Using set_clkdiv() is often difficult due to the need to stop the PLL/FLL before any reconfiguration can be done. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* / ASoC: Factor out cache I/O from WM8974Mark Brown2009-08-151-94/+55
|/ | | | Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: Correct a bug with "ADC Inversion Switch" in wm8974 codec.javier Martin2009-07-221-1/+1
| | | | | | | This corrects a bug with ADC Inversion Switch in wm8974 codec. Signed-off-by: Javier Martin <javier.martin@vista-silicon.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: WM8974 DAPM cleanupsMark Brown2009-06-301-38/+37
| | | | | | Also implement AUX mode control. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: WM8974 cosmetic cleanupsMark Brown2009-06-301-3/+4
| | | | Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: Use symmetric rates for WM8974Mark Brown2009-06-301-0/+1
| | | | | | The chip has a single LRCLK. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: Add WM8974 TLV informationMark Brown2009-06-301-9/+15
| | | | Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: Refresh WM8974 PLL configurationMark Brown2009-06-301-27/+60
| | | | | | Move away from a fixed table to runtime calculation. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: Declare 2 channels for WM8974Mark Brown2009-06-301-2/+2
| | | | | | | The device is a mono device but it can read two channel data and many I2S controllers only understand 2 channels. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: Refresh WM8974 bias configurationMark Brown2009-06-301-7/+23
| | | | Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: Remove unreferenced wm8974_add_controls()Mark Brown2009-06-291-16/+0
| | | | Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: Update WM8974 to use standard I2C device probe methodsMark Brown2009-05-231-151/+116
| | | | Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: WM8974 checkpatch cleanupsMark Brown2009-05-231-40/+38
| | | | Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
* ASoC: Add WM8974 CODEC driverMark Brown2009-05-231-0/+844
The WM8974 is a low power, high quality mono CODEC designed for portable applications such as digital still cameras or digital voice recorders. This driver was originally written by Graeme Gregory and Liam Girdwood and has since been maintained by myself with some updates contributed by Brett Saunders and Javier Martin. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>