diff options
author | Takashi Iwai <tiwai@suse.de> | 2021-11-01 07:33:49 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-11-01 07:34:19 +0100 |
commit | 8beea313507580ea2a18bf68f7589d40677c28ad (patch) | |
tree | 0a1cd76a9b2a414f9dcb64db2432cbf964be3a44 /sound/core/pcm_local.h | |
parent | 3ab7992018455ac63c33e9b3eaa7264e293e40f4 (diff) | |
parent | 2672e1970ab051f0333fdbc61a55b7616f4f5778 (diff) | |
download | linux-8beea313507580ea2a18bf68f7589d40677c28ad.tar.gz |
Merge branch 'for-next' into for-linus
Merge 5.16-devel branch for upstreaming Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/pcm_local.h')
-rw-r--r-- | sound/core/pcm_local.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/core/pcm_local.h b/sound/core/pcm_local.h index fe9689b8a6a6..ecb21697ae3a 100644 --- a/sound/core/pcm_local.h +++ b/sound/core/pcm_local.h @@ -73,4 +73,11 @@ void snd_pcm_sync_stop(struct snd_pcm_substream *substream, bool sync_irq); for ((subs) = (pcm)->streams[str].substream; (subs); \ (subs) = (subs)->next) +static inline void snd_pcm_dma_buffer_sync(struct snd_pcm_substream *substream, + enum snd_dma_sync_mode mode) +{ + if (substream->runtime->info & SNDRV_PCM_INFO_EXPLICIT_SYNC) + snd_dma_buffer_sync(snd_pcm_get_dma_buf(substream), mode); +} + #endif /* __SOUND_CORE_PCM_LOCAL_H */ |