]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: move the jack creation to Braswell machine driver
authorJin Yao <yao.jin@linux.intel.com>
Tue, 17 Mar 2015 02:23:31 +0000 (10:23 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 17 Mar 2015 12:17:13 +0000 (12:17 +0000)
commit5cafd548b30ff289c8cf07d3f6e31fe09f6ce8ef
tree7a91cdb8649abea683e0fcbd81fb3cd835cb4295
parent6e20ea97088c0f356108f9c7fa9a8626bb4f0834
ASoC: Intel: move the jack creation to Braswell machine driver

The jack creation code was in rt5670 codec driver before due to the
jack resources (gpio/irq) were defined under the node of codec device
in ACPI on Braswell. We used the snd_soc_jack_new() to create a jack
instance.

But now snd_soc_jack_new() is removed from upstream and we can't
use snd_soc_card_jack_new() in codec driver, so we move the jack
creation code to machine driver and pass the jack instance to codec
driver for further processing.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Jin Yao <yao.jin@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/cht_bsw_rt5672.c