kernel-ark/sound/soc
Mark Brown 0be9898adb [ALSA] ASoC: Clarify API for bias configuration
Currently the ASoC core configures the bias levels in the system using
a callback on codecs and machines called 'dapm_event', passing it PCI
style power levels as SNDRV_CTL_POWER_ constants. This is more obscure
than it needs to be and has caused confusion to driver authors,
especially given that DAPM is also performing power management.

Address this by renaming the callback function to 'set_bias_level' and
using constants explicitly representing the off, standby, pre-on and on
states which DAPM transitions through.

Also unexport the API for setting bias level: there are currently no
in-tree users of this API other than the core itself and it is likely
that the core would need to be extended to cater for any users.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-05-19 17:28:43 +02:00
..
at91 [ALSA] soc - eti_b1_wm8731 - Convert to use bulk DAPM control registration 2008-05-19 13:19:18 +02:00
codecs [ALSA] ASoC: Clarify API for bias configuration 2008-05-19 17:28:43 +02:00
davinci [ALSA] soc - davinci-evm - Update for bulk DAPM registration APIs 2008-05-19 13:19:19 +02:00
fsl [ALSA] soc - fsl_ssi.c fix "BUG: scheduling while atomic" 2008-05-13 14:47:43 +02:00
omap [ALSA] ASoC: Convert N810 machine driver to use gpiolib 2008-05-19 13:19:19 +02:00
pxa [ALSA] ASoC: Remove in-code changelogs 2008-05-19 13:19:20 +02:00
s3c24xx [ALSA] ASoC: Remove in-code changelogs 2008-05-19 13:19:20 +02:00
sh [ALSA] Add SUPERH depends to sound/soc/sh/Kconfig 2008-04-24 12:00:06 +02:00
Kconfig [ALSA] ASoC: Add drivers for the Texas Instruments OMAP processors 2008-04-29 19:01:56 +02:00
Makefile [ALSA] ASoC: Add drivers for the Texas Instruments OMAP processors 2008-04-29 19:01:56 +02:00
soc-core.c [ALSA] ASoC: Clarify API for bias configuration 2008-05-19 17:28:43 +02:00
soc-dapm.c [ALSA] ASoC: Clarify API for bias configuration 2008-05-19 17:28:43 +02:00