OSDN Git Service

ASoC: add Component level set_bias_level
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 26 Sep 2017 01:01:10 +0000 (01:01 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 27 Sep 2017 17:11:14 +0000 (10:11 -0700)
commit7ba236ce58bd7ac8e360de81f834d9c446f7b063
treef443c35583a4e4c83a71b09c7ce8bb35aadf724c
parentf523acebbb74f3cf5840d801f2e4856c688bf14a
ASoC: add Component level set_bias_level

In current ALSA SoC, Codec only has set_bias_level feature.
Codec will be merged into Component in next generation ALSA SoC,
thus current Codec specific feature need to be merged into it.
This is glue patch for it.

Codec driver has .idle_bias_off for dapm bias. But Component
driver doesn't have it, and dapm->idle_bias_off is set as "true".
To keep compatibility, this patch adds "idle_bias_on" instead of
".idle_bias_off" on Component driver.
dapm->idle_bias_off will be set by inverted idle_bias_on.

When we replace Codec to Component, the driver which has
".idle_bias_off = true" is just remove it,
and the driver which doesn't have it will have new
".idle_bias_on = true".

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-core.c