PulseAudio: Difference between revisions

mNo edit summary
Line 1: Line 1:
===General Information===
===General Information===


==== Command Line (for testing) ====
====Command Line (for testing)====
/usr/bin/pulseaudio --system --disallow-exit --disable-shm --exit-idle-time=-1 -vvvvvv --log-level=debug --verbose
/usr/bin/pulseaudio --system --disallow-exit --disable-shm --exit-idle-time=-1 -vvvvvv --log-level=debug --verbose
==== Hardware ====
[[File:USB7.1SurroundSoundAudioDevice.jpg|alt=LEAGY Brand USB 7.1 Surround Sound Audio Device from Amazon (and AliExpress)|thumb|LEAGY Brand USB 7.1 Surround Sound Audio Device from Amazon (and AliExpress)]]
CM6206-LX based CMedia Chipset sold by LEAGY
This thing is funky.  The output jacks are not grouped in 5.1 and 7.1 order where Side Left and Side Right are normally at the far right.
For 5.1 Surround Sound Output;
* Front L/R (GN)
* Side L/R (BK)
* C/SUB (OR)
* ...notice how the "7.1" Rear L/R "Rear Suround" is in-between the Side L/R and C/SUB, which is different from every other manufacturer.
* In Windows, everything tests just fine, with outputs matching labels (oh, the latest CMedia driver for the CMedia CM6206 doesn't seem to work at all for Windows 11, so just use the circa 2023 Microsoft Driver)
* For Linux, it's a bit off using speaker-test (Example: speaker-test -D hw:0,0 -c 8 -t wav)
** There are two Side Rights and two Side Lefts (with no mention of Rear Left or Rear Right)
For 7.1 Surround Sound Output;
*
It gets "better" <blockquote>For the following configuration in system.pa, attempting to use Surround Sound 5.1;<syntaxhighlight lang="text">
load-module module-alsa-sink device=surround51:CARD=ICUSBAUDIO7D,0 sink_name=alsa_output.0.surround.51
load-module module-alsa-source device=hw:0,0 source_name=alsa_input.0.analog-stereo
load-module module-loopback source=alsa_input.0.analog-stereo sink=alsa_output.0.surround.51 latency_msec=800
</syntaxhighlight>...the above outputs audio to the following jacks: Front L/R, Side L/R, and C/SUB.  Cool</blockquote><blockquote>But for the following configuration in system.pa, attempting to use Surround Sound 7.1;<syntaxhighlight lang="text">
load-module module-alsa-sink device=surround71:CARD=ICUSBAUDIO7D,0 sink_name=alsa_output.0.surround.71
load-module module-alsa-source device=hw:0,0 source_name=alsa_input.0.analog-stereo
load-module module-loopback source=alsa_input.0.analog-stereo sink=alsa_output.0.surround.71 latency_msec=800
</syntaxhighlight>...it outputs a continuous stream of: "I: [alsa-sink-USB Audio] module-loopback.c: Adding 2561 usec of silence to queue" and does NOT play any audio.</blockquote>OK, maybe the issue relates to the input / source device (Spoiler Alert: It does), so let's try a slightly different configuration;<blockquote>For the following configuration in system.pa, attempting to use Surround Sound 5.1;<syntaxhighlight lang="text">
load-module module-alsa-sink device=surround71:CARD=ICUSBAUDIO7D,0 sink_name=alsa_output.0.surround.71
load-module module-alsa-source device=hw:0,0 source_name=alsa_input.0.analog-stereo
load-module module-loopback source=alsa_input.0.analog-stereo sink=alsa_output.0.surround.71 latency_msec=800
</syntaxhighlight>...it outputs about fiftyish similar lines: "I: [alsa-sink-USB Audio] module-loopback.c: Adding 2561 usec of silence to queue", then this line: I: [alsa-sink-USB Audio] module-loopback.c: Dropping 37581 usec of audio from queue, and plays audio!
Oh, wait!  With the above configuration, it outputs to the following Physical Jacks: Front L/R, Rear L/R, C/SUB, and...  Nope, that's it.  Nothing comes out of the Side L/R Channel.  Woof!
<br /></blockquote>...well, it never claimed to be Linux Compatible!  Is there a workaround?  Let's try a "Remap Module"!


====Sinks (Outputs), Sources (Inputs), Input-Sinks ("Connectors")====
====Sinks (Outputs), Sources (Inputs), Input-Sinks ("Connectors")====