diff options
author | Keyon Jie <yang.jie@linux.intel.com> | 2019-05-01 02:09:29 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-05-03 09:00:59 +0300 |
commit | e8e55dbe08960b714e5ce0148926ee17331ce4d5 (patch) | |
tree | 2cc2d5d45e12720df44b2821c776f1c219abafef /sound/soc/sof/intel/hda.h | |
parent | 6d60a39e5b787ddea5def220d6288cbdf6d63eb8 (diff) | |
download | linux-e8e55dbe08960b714e5ce0148926ee17331ce4d5.tar.xz |
ASoC: SOF: Intel: hda-stream: store stream capabilities
Add stream_max into struct sof_intel_hda_dev to store the total hda
stream number that the platform can support, and initialize it at
stream_init.
This can be used later e.g. for stream bitmask.
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@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 3799a3518106..7cb2fb92c4eb 100644 --- a/sound/soc/sof/intel/hda.h +++ b/sound/soc/sof/intel/hda.h @@ -383,6 +383,9 @@ struct sof_intel_hda_dev { /* if position update IPC needed */ u32 no_ipc_position; + /* the maximum number of streams (playback + capture) supported */ + u32 stream_max; + int irq; /* DMIC device */ |