ASoC: SOF: Intel: hda-dai: use component_get_drvdata to find hdac_bus
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 24 Oct 2022 16:53:01 +0000 (11:53 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 26 Oct 2022 13:17:59 +0000 (14:17 +0100)
commit4842f79f8fdd9a5aae3d5db98ab3e3a36a387cfd
tree7f70b2c9a5432691db422656c8fa7ac49f280063
parent0351a9b8f8447935e67b98829c1ad287de426f7e
ASoC: SOF: Intel: hda-dai: use component_get_drvdata to find hdac_bus

Remove the last usage of substream->runtime->private_data in the
HDAudio BE hw_params.

The SOF core saves the 'sdev' global context as component drvdata, and
we already save the bus information in sdev.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20221024165310.246183-8-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-dai.c