diff options
| author | Jaroslav Kysela <[email protected]> | 2021-07-30 09:02:54 +0000 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2021-07-30 18:20:38 +0000 |
| commit | 852a8a97776a153be2e6c803218eced45f37a19c (patch) | |
| tree | 51edf7ee3307327fae37fa7a462b49ef32780caa /sound/core/pcm_native.c | |
| parent | ALSA: usb-audio: Avoid unnecessary or invalid connector selection at resume (diff) | |
| download | kernel-852a8a97776a153be2e6c803218eced45f37a19c.tar.gz kernel-852a8a97776a153be2e6c803218eced45f37a19c.zip | |
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: c4824ae7db41 ("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]>
Diffstat (limited to 'sound/core/pcm_native.c')
| -rw-r--r-- | sound/core/pcm_native.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index 6a2971a7e6a1..09c0e2a6489c 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c @@ -246,7 +246,7 @@ static bool hw_support_mmap(struct snd_pcm_substream *substream) if (!(substream->runtime->hw.info & SNDRV_PCM_INFO_MMAP)) return false; - if (substream->ops->mmap) + if (substream->ops->mmap || substream->ops->page) return true; switch (substream->dma_buffer.dev.type) { |
