diff options
author | Ranjani Sridharan <ranjani.sridharan@linux.intel.com> | 2019-06-12 20:23:34 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-06-17 15:36:32 +0300 |
commit | f5dbba9fee801f4678a50d92c785f7f24d4ee2c6 (patch) | |
tree | e31d30def797b3defd98b86e34d52149821c662a /sound/soc/sof/intel/hda.h | |
parent | 7623ae793c28cc0928c5d1292542dbb92fc2e9e2 (diff) | |
download | linux-f5dbba9fee801f4678a50d92c785f7f24d4ee2c6.tar.xz |
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>
Diffstat (limited to 'sound/soc/sof/intel/hda.h')
-rw-r--r-- | sound/soc/sof/intel/hda.h | 3 |
1 files changed, 3 insertions, 0 deletions
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) |