File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ static bool apl_lp_streaming(struct avs_dev *adev)
169
169
{
170
170
struct avs_path * path ;
171
171
172
+ spin_lock (& adev -> path_list_lock );
172
173
/* Any gateway without buffer allocated in LP area disqualifies D0IX. */
173
174
list_for_each_entry (path , & adev -> path_list , node ) {
174
175
struct avs_path_pipeline * ppl ;
@@ -188,11 +189,14 @@ static bool apl_lp_streaming(struct avs_dev *adev)
188
189
if (cfg -> copier .dma_type == INVALID_OBJECT_ID )
189
190
continue ;
190
191
191
- if (!mod -> gtw_attrs .lp_buffer_alloc )
192
+ if (!mod -> gtw_attrs .lp_buffer_alloc ) {
193
+ spin_unlock (& adev -> path_list_lock );
192
194
return false;
195
+ }
193
196
}
194
197
}
195
198
}
199
+ spin_unlock (& adev -> path_list_lock );
196
200
197
201
return true;
198
202
}
You can’t perform that action at this time.
0 commit comments