From: Ranjani Sridharan Date: Wed, 12 Jun 2019 17:23:34 +0000 (-0500) Subject: ASoC: SOF: Intel: hda: add new macro hstream_to_sof_hda_stream() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=f5dbba9fee801f4678a50d92c785f7f24d4ee2c6;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Mark Brown --- diff --git a/sound/soc/sof/intel/hda.h b/sound/soc/sof/intel/hda.h index 502b0a3c2e3c..376b1ca51e2b 100644 --- a/sound/soc/sof/intel/hda.h +++ b/sound/soc/sof/intel/hda.h @@ -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)