Skip to content

Commit 852a8a9

Browse files
perexgtiwai
authored andcommitted
ALSA: pcm - fix mmap capability check for the snd-dummy driver
The snd-dummy driver (fake_buffer configuration) uses the ops->page callback for the mmap operations. Allow mmap for this case, too. Cc: <[email protected]> Fixes: c4824ae ("ALSA: pcm: Fix mmap capability check") Signed-off-by: Jaroslav Kysela <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 8dde723 commit 852a8a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/core/pcm_native.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ static bool hw_support_mmap(struct snd_pcm_substream *substream)
246246
if (!(substream->runtime->hw.info & SNDRV_PCM_INFO_MMAP))
247247
return false;
248248

249-
if (substream->ops->mmap)
249+
if (substream->ops->mmap || substream->ops->page)
250250
return true;
251251

252252
switch (substream->dma_buffer.dev.type) {

0 commit comments

Comments
 (0)