ASoC: SOF: Intel: hda: add new macro hstream_to_sof_hda_stream()
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Wed, 12 Jun 2019 17:23:34 +0000 (12:23 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 17 Jun 2019 12:36:32 +0000 (13:36 +0100)
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>
sound/soc/sof/intel/hda.h

index 502b0a3c2e3c8bda30dde70f4fc9375b98f08483..376b1ca51e2b0cfd72709aea4ed78e48e1acc0ce 100644 (file)
@@ -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)