HomeFreeBSD

sound(4): Fix memory map of /dev/dsp devices when buffer size is not a multiple…

Description

sound(4): Fix memory map of /dev/dsp devices when buffer size is not a multiple of PAGE_SIZE.

By using sndbuf_getallocsize() instead of sndbuf_getsize() in dsp_mmap_single().

PR: 267555
Sponsored by: NVIDIA Networking

(cherry picked from commit ad370f7658ba59811d02c04032ac33ef787f752f)

Details

Provenance
dev_submerge.chAuthored on Nov 4 2022, 6:04 PM
hselaskyCommitted on Nov 12 2022, 12:00 PM
Parents
rG3cfb2d365f2b: time(3): Fix spelling.
Branches
Unknown
Tags
Unknown