ALSA: hda: split snd_hda_codec_new function
authorRakesh Ughreja <rakesh.a.ughreja@intel.com>
Sat, 2 Jun 2018 03:53:56 +0000 (22:53 -0500)
committerTakashi Iwai <tiwai@suse.de>
Thu, 28 Jun 2018 05:33:29 +0000 (07:33 +0200)
commit24494d3f939774c3c21d78b5e95d37f9e74d154c
treed35dd27ea7111cf7b594812ccf22d0cf051db04f
parentf8a7fe1aea215e25eaf3bf04dff66fc7621ec9d7
ALSA: hda: split snd_hda_codec_new function

Split snd_hda_codec_new into two separate functions.
snd_hda_codec_device_init allocates memory and registers with bus.
snd_hda_codec_device_new initialializes the fields and performs
snd_device_new. This enables reuse of legacy HDA codec drivers as ASoC
codec drivers.

In addition mark some functions with EXPORT_SYMBOL_GPL so that it can
be called by ASoC wrapper around the legacy HDA driver (hdac_hda).

Signed-off-by: Rakesh Ughreja <rakesh.a.ughreja@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h