diff options
| author | Christos Margiolis <christos@FreeBSD.org> | 2026-09-07 13:04:09 +0000 |
|---|---|---|
| committer | Christos Margiolis <christos@FreeBSD.org> | 2026-09-07 13:04:09 +0000 |
| commit | 5e02679f03cda224f59adcf83d5308fffa6d11a1 (patch) | |
| tree | 23f58028c9e63e487dcee026ef66d4fea1e599c7 /packages/Python/lldbsuite/test/python_api/process/read-mem-cstring/(developers-only) | |
| parent | 949029692f361fb5a96b24cfc46cee74be2b3a9c (diff) | |
sound: Prefer idle primary channels when allocating
dsp_chn_alloc() stopped at the first primary channel that was either
idle or already had vchans. Since the list is walked in order, the first
channel matched both conditions once it had been used, so every client
after the first was stacked onto it as a vchan and the remaining primary
channels were never allocated at all.
This is invisible on devices with a single primary channel, but not on
those which provide several. snd_emu10kx(4), for instance, registers
four primary channels for its front device, each able to run with its
own rate.
Look for an idle primary channel first, and only fall back to sharing
one that already has vchans when there is none left.
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D59084
Diffstat (limited to 'packages/Python/lldbsuite/test/python_api/process/read-mem-cstring/(developers-only)')
0 files changed, 0 insertions, 0 deletions
