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)
commit6b3b58d97fb2d03f8f1d009a77baece311aa0d16
tree7a91cdb8649abea683e0fcbd81fb3cd835cb4295
parent066d7b87fa11213d7eca7af8fdd8447e1c62117b
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