]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
snd_hdspe(4): One pcm device per physical ADAT port.
authorFlorian Walpen <dev@submerge.ch>
Mon, 15 Jan 2024 10:21:57 +0000 (10:21 +0000)
committerRuslan Bukin <br@FreeBSD.org>
Mon, 15 Jan 2024 10:26:41 +0000 (10:26 +0000)
commitd7fde2c9eccf90b2a889e92800f3bc07376e84f6
tree7a7b665527c7d2e410e85bbf9552490d8ad6029d
parent787cb30d20ac2031283c6dc2ec829f190997e581
snd_hdspe(4): One pcm device per physical ADAT port.

ADAT connections transport 8, 4 or 2 audio channels depending on the
sample rate. Instead of splitting each physical ADAT port into 4
(potentially unmapped) stereo pcm devices, create just one pcm
device of variable channel width for every ADAT port.
Depending on the sample rate and channel width selected, the pcm
channels may be only partially mapped to ADAT channels and vice versa.

Added flexibility of the new channel mapping is also prerequisite to
introduce more pcm device layouts in follow-up commits.

Reviewed by: br
Differential Revision: https://reviews.freebsd.org/D43393
share/man/man4/snd_hdspe.4
sys/dev/sound/pci/hdspe-pcm.c
sys/dev/sound/pci/hdspe.c
sys/dev/sound/pci/hdspe.h