]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add support for multiple playback and recording devices per physical USB audio
authorhselasky <hselasky@FreeBSD.org>
Mon, 30 Mar 2020 16:50:32 +0000 (16:50 +0000)
committerhselasky <hselasky@FreeBSD.org>
Mon, 30 Mar 2020 16:50:32 +0000 (16:50 +0000)
commitc5e1bcea27601cc18c6c03da20e671c1b184586f
tree69285c2bd860d5651c4b21103ae9706c06a3226f
parentf45c4cde3f7c0d840a96ecee9d8278d9d1a310fe
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.

Tested by: Horse Ma <Shichun.Ma@dell.com>
MFC after: 1 week
Sponsored by: Mellanox Technologies
sys/dev/sound/usb/uaudio.c
sys/dev/sound/usb/uaudio.h
sys/dev/sound/usb/uaudio_pcm.c