ASoC: Intel: bytcr_rt5651: Move getting of codec_dev into probe()
authorHans de Goede <hdegoede@redhat.com>
Sun, 1 Jul 2018 18:36:30 +0000 (20:36 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 10 Jul 2018 17:49:17 +0000 (18:49 +0100)
commit2c375204bfad2f481feb006a82cdb67cc570b670
treec7f1caaf903e4866ce6dde8193f65d2bc1803934
parentfbea16dbc0a31484811c5f335ae344b2bbc66f40
ASoC: Intel: bytcr_rt5651: Move getting of codec_dev into probe()

Move the getting of the codec_dev, to add device-props to it, out of
byt_rt5651_add_codec_device_props() and into its caller,
snd_byt_rt5651_mc_probe().

This is a preparation patch for adding support for an external amplifier
enable GPIO, which requires further accesses to the codec_dev.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_rt5651.c