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)
commit3fd63658caed9494cca1d4789a66d3d2def2a0ab
treea7100096100129747df6d02ae8ba860d8035a168
parent829c67319806009abfe3b0b82b3b8b153a2c5e32
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