diff options
author | Takashi Iwai <[email protected]> | 2021-02-05 15:45:59 +0100 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2021-02-05 17:02:11 +0100 |
commit | fb3c293b82c31a9a68fbcf4e7a45fadd8a47ea2b (patch) | |
tree | 3623e39e381fb5c1ac40923dca7fa973e65c217e /scripts/gdb/linux/utils.py | |
parent | 036f90dd92bb0aac66fdeec8386401dd396c6079 (diff) |
ALSA: usb-audio: Fix PCM buffer allocation in non-vmalloc mode
The commit f274baa49be6 ("ALSA: usb-audio: Allow non-vmalloc buffer
for PCM buffers") introduced the mode to allocate coherent pages for
PCM buffers, and it used bus->controller device as its DMA device.
It turned out, however, that bus->sysdev is a more appropriate device
to be used for DMA mapping in HCD code.
This patch corrects the device reference accordingly.
Note that, on most platforms, both point to the very same device,
hence this patch doesn't change anything practically. But on
platforms like xhcd-plat hcd, the change becomes effective.
Fixes: f274baa49be6 ("ALSA: usb-audio: Allow non-vmalloc buffer for PCM buffers")
Cc: <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions