svn commit: r359446 - head/sys/dev/sound/usb

Alexander Leidinger Alexander at leidinger.net
Tue Mar 31 12:36:15 UTC 2020


Quoting Hans Petter Selasky <hselasky at freebsd.org> (from Mon, 30 Mar  
2020 16:50:33 +0000 (UTC)):

> Author: hselasky
> Date: Mon Mar 30 16:50:32 2020
> New Revision: 359446
> URL: https://svnweb.freebsd.org/changeset/base/359446
>
> Log:
>   Add support for multiple playback and recording devices per  
> physical USB audio
>   device. This requires some structural refactoring inside the driver, mostly
>   about converting existing audio channel structures into arrays.
>
>   The main audio mixer is provided by the first PCM instance.
>   The non-first audio instances may only have a software mixer for  
> PCM playback.

Have you thought about providing different pcm devices per physical  
USB audio device for the functionality of dev.pcm.X.Y.vchanformat /  
vchanrate? Incompatible configs between those devices could be  
prevented at runtime via setting all the incompatible devices per  
physical device to return EBUSY or such while one of the group is open  
/ in use. /dev/sndstat could also contain some kind of status to this  
effect and to which group of pcm devices pcmX belongs.

Bye,
Alexander.

-- 
http://www.Leidinger.net Alexander at Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild at FreeBSD.org  : PGP 0x8F31830F9F2772BF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digitale PGP-Signatur
URL: <http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20200331/e901bc94/attachment.sig>


More information about the freebsd-usb mailing list