]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: Drop hdac_ext usage for codec device creation
authorCezary Rojewski <cezary.rojewski@intel.com>
Tue, 16 Aug 2022 11:17:24 +0000 (13:17 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 18 Aug 2022 07:46:43 +0000 (09:46 +0200)
commitad0d475185664ee1c02f2529718196502b3315ba
treea7100096100129747df6d02ae8ba860d8035a168
parent735a4606a09e00501f0628e9d1e0230fe0ed2b9b
ASoC: Intel: Drop hdac_ext usage for codec device creation

To make snd_hda_codec_device_init() the only constructor for struct
hda_codec instances remaining tasks are:

1) no struct may wrap struct hda_codec as its base type
2) bus drivers (skylake and sof) which are the current hdac_ext users
   need to be adjusted to make use of newly added codec init and exit
   routines instead
3) as bus drivers (skylake and sof) are to be responsible for creating
   codec device and assigning it to hdac_hda_priv->codec,
   hdac_hda_dev_probe() has to be freed of that job

To keep git bisect happy, all of these in made in one-go.

Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220816111727.3218543-4-cezary.rojewski@intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/codecs/hdac_hda.c
sound/soc/codecs/hdac_hda.h
sound/soc/intel/boards/hda_dsp_common.c
sound/soc/intel/boards/skl_hda_dsp_generic.c
sound/soc/intel/skylake/skl.c
sound/soc/sof/intel/hda-codec.c