mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 22:06:41 +07:00
ASoC: SOF: Intel: hda: add new macro hstream_to_sof_hda_stream()
Add a new macro to get sof_intel_hda_stream from hdac_ext_stream. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
7623ae793c
commit
f5dbba9fee
@ -415,6 +415,9 @@ struct sof_intel_hda_stream {
|
||||
int hw_params_upon_resume; /* set up hw_params upon resume */
|
||||
};
|
||||
|
||||
#define hstream_to_sof_hda_stream(hstream) \
|
||||
container_of(hstream, struct sof_intel_hda_stream, hda_stream)
|
||||
|
||||
#define bus_to_sof_hda(bus) \
|
||||
container_of(bus, struct sof_intel_hda_dev, hbus.core)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user