Unverified Commit f5dbba9f authored by Ranjani Sridharan's avatar Ranjani Sridharan Committed by Mark Brown
Browse files

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: default avatarRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7623ae79
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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)