]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2a79ee3184ffa415eaccf4e72978fd8fc35e82fe
treed35dd27ea7111cf7b594812ccf22d0cf051db04f
parent1938e8ee72a457ec13a944919809eefe678b43ad
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