@@ -1298,6 +1298,7 @@ static int qcom_swrm_startup(struct snd_pcm_substream *substream,
goto err_alloc;
}
+ sruntime->dev = ctrl->bus.dev;
ctrl->sruntime[dai->id] = sruntime;
for_each_rtd_codec_dais(rtd, i, codec_dai) {
@@ -1023,6 +1023,7 @@ struct sdw_stream_params {
* master_list can contain only one m_rt per Master instance
* for a stream
* @m_rt_count: Count of Master runtime(s) in this stream
+ * @dev: SoundWire controller owning this runtime stream
*/
struct sdw_stream_runtime {
const char *name;
@@ -1031,6 +1032,7 @@ struct sdw_stream_runtime {
enum sdw_stream_type type;
struct list_head master_list;
int m_rt_count;
+ struct device *dev;
};
struct sdw_stream_runtime *sdw_alloc_stream(const char *stream_name);