diff options
| author | Takashi Iwai <[email protected]> | 2021-08-08 07:01:16 +0000 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2021-08-09 05:52:31 +0000 |
| commit | dc0dc8a73e8e4dc33fba93dfe23356cc5a500c57 (patch) | |
| tree | 4c0c7a98a67476e0f81dcee18a0bbf5c146a5177 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |
| parent | ALSA: hda: Add quirk for ASUS Flow x13 (diff) | |
| download | kernel-dc0dc8a73e8e4dc33fba93dfe23356cc5a500c57.tar.gz kernel-dc0dc8a73e8e4dc33fba93dfe23356cc5a500c57.zip | |
ALSA: pcm: Fix mmap breakage without explicit buffer setup
The recent fix c4824ae7db41 ("ALSA: pcm: Fix mmap capability check")
restricts the mmap capability only to the drivers that properly set up
the buffers, but it caused a regression for a few drivers that manage
the buffer on its own way.
For those with UNKNOWN buffer type (i.e. the uninitialized / unused
substream->dma_buffer), just assume that the driver handles the mmap
properly and blindly trust the hardware info bit.
Fixes: c4824ae7db41 ("ALSA: pcm: Fix mmap capability check")
Reported-and-tested-by: Jeff Woods <[email protected]>
Cc: <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions
