ASoC: add output/input widgets in ad1938 to make dac/adc dynamic PM work
authorBarry Song <21cnbao@gmail.com>
Wed, 12 Aug 2009 03:34:25 +0000 (11:34 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 13 Aug 2009 09:47:22 +0000 (10:47 +0100)
commitc4ff357ada4fc7a73d899a496b636c698519b958
tree855e3c86eab4fb0ca6de5d9cf85f8805fb50f335
parentd2a382143b35a486b8089861790d6b3ec4e46932
ASoC: add output/input widgets in ad1938 to make dac/adc dynamic PM work

According to the function dapm_dac_check_power() in
sound/soc/soc-dapm.c, dac power can't be on/off stand-alone without any
output widget as sink. And according to dapm_adc_check_power(), adc
power can't be on/off stand-alone without any input widget as source. So
we can't only define some stand-alone SND_SOC_DAPM_DAC/SND_SOC_DAPM_ADC
to hope their power can be managed dynamically.

Signed-off-by: Barry Song <21cnbao@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/ad1938.c