]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2b5e063b7d46372961fa83a62ba55206c4d0a8c7
treef443c35583a4e4c83a71b09c7ce8bb35aadf724c
parent46a698bc2578a110f38ba5bad7edde788d0d666b
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