diff options
| author | Takashi Iwai <[email protected]> | 2023-05-24 12:14:24 +0200 | 
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2023-05-24 12:14:24 +0200 | 
| commit | bac4d8220b7227e317caeadf5ed05c61cd5dc21c (patch) | |
| tree | 47b53fec64780a300ab4a60363329945f7ee500b /sound/soc/intel/avs/apl.c | |
| parent | 81302b1c7c997e8a56c1c2fc63a296ebeb0cd2d0 (diff) | |
| parent | 011a8719d6105dcb48077ea7a6a88ac019d4aa50 (diff) | |
Merge tag 'asoc-fix-v6.4-rc3' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v6.4
A collection of fixes for v6.4, mostly driver specific but there's also
one fix for DPCM to avoid incorrectly repeated calls to prepare() which
can trigger issues on some systems.
Diffstat (limited to 'sound/soc/intel/avs/apl.c')
| -rw-r--r-- | sound/soc/intel/avs/apl.c | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/sound/soc/intel/avs/apl.c b/sound/soc/intel/avs/apl.c index 02683dce277a..1860099c782a 100644 --- a/sound/soc/intel/avs/apl.c +++ b/sound/soc/intel/avs/apl.c @@ -169,6 +169,7 @@ static bool apl_lp_streaming(struct avs_dev *adev)  {  	struct avs_path *path; +	spin_lock(&adev->path_list_lock);  	/* Any gateway without buffer allocated in LP area disqualifies D0IX. */  	list_for_each_entry(path, &adev->path_list, node) {  		struct avs_path_pipeline *ppl; @@ -188,11 +189,14 @@ static bool apl_lp_streaming(struct avs_dev *adev)  				if (cfg->copier.dma_type == INVALID_OBJECT_ID)  					continue; -				if (!mod->gtw_attrs.lp_buffer_alloc) +				if (!mod->gtw_attrs.lp_buffer_alloc) { +					spin_unlock(&adev->path_list_lock);  					return false; +				}  			}  		}  	} +	spin_unlock(&adev->path_list_lock);  	return true;  } |