geoffreybennett / scarlett-gen2

Linux kernel source tree with additional Focusrite Scarlett and Clarett support ("Scarlett2 USB Protocol Mixer Driver")
196 stars 6 forks source link

Scarlett Solo 4. Issues with sample rate and computer audio playing through mic input #22

Open SchlaegtDenAal opened 3 weeks ago

SchlaegtDenAal commented 3 weeks ago

Hey, I have installed the Control panel quite some time ago and almost everything is working like a charm. There are three issues that persist that I have not found a solution for. I ranked them in order of personal importance:

1: I would like to change the sample rate and buffer size of the interface, however I cannot find a way to do so.

2: there must be an issue with the routing i cannot seem to fix; when i am in video calls the computer audio is heard alongside my mic input. Screenshot from 2024-09-26 01-03-29 Screenshot from 2024-09-26 01-04-46

3: When I turn direct monitor on, the sound of my computer increases in volume. I assume its also part of the routing, as if my computer audio gets doubled.

If there is anyone out there knowing what the problem could be let me know: :)

geoffreybennett commented 3 weeks ago

Hi @SchlaegtDenAal,

1) The sample rate and buffer size is controlled by whatever program is actually using the sound card. That would usually be PulseAudio or PipeWire.

2) That issue is usually caused by PulseAudio or PipeWire mixing together all 4 input channels from the Scarlett down to mono & presenting that to your video call application. Commonly PCM Inputs 3 & 4 are "Loopback" i.e. audio from your PC from Mix C/D from PCM Outputs 1 & 2. But that screenshot shows PCM Input 3 & 4 disconnected. So either this screenshot shows how you've accidentally fixed the problem without realising, or the problem lies elsewhere in your system. Please double-check. You can also use the control app levels window (look at the 4 PCM Inputs) to confirm if audio from your PC is being sent back to your PC. If you're using PipeWire, also use qpwgraph to check the audio routing while on a call.

3) The direct monitor button adjusts the levels of Mix A and B. You can twiddle the knobs in the control app mixer window to suit. The factory configuration default is for the sound of your computer to be decreased in volume when using direct monitor. I prefer 0dB across the board, direct monitor on or off.

Have you seen this https://github.com/geoffreybennett/alsa-scarlett-gui/blob/master/docs/iface-4th-gen.md#routing-and-mixing explanation? That could help. Let me know if you still have questions!

Regards, Geoffrey.

SchlaegtDenAal commented 3 weeks ago

Hey Geoffrey,

Thank you alot for your explanation! I am new to linux and still figuring out stuff. I have no clue about pulseaudio/pipewire, but i will research a bit and let you know how it worked out after!

I will work on it as i get home and let you know!

Thank you alot!

Noah

On Thu, Sep 26, 2024, 13:26 Geoffrey D. Bennett @.***> wrote:

Hi @SchlaegtDenAal https://github.com/SchlaegtDenAal,

1.

The sample rate and buffer size is controlled by whatever program is actually using the sound card. That would usually be PulseAudio or PipeWire. 2.

That issue is usually caused by PulseAudio or PipeWire mixing together all 4 input channels from the Scarlett down to mono & presenting that to your video call application. Commonly PCM Inputs 3 & 4 are "Loopback" i.e. audio from your PC from Mix C/D from PCM Outputs 1 & 2. But that screenshot shows PCM Input 3 & 4 disconnected. So either this screenshot shows how you've accidentally fixed the problem without realising, or the problem lies elsewhere in your system. Please double-check. You can also use the control app levels window (look at the 4 PCM Inputs) to confirm if audio from your PC is being sent back to your PC. If you're using PipeWire, also use qpwgraph to check the audio routing while on a call. 3.

The direct monitor button adjusts the levels of Mix A and B. You can twiddle the knobs in the control app mixer window to suit. The factory configuration default is for the sound of your computer to be decreased in volume when using direct monitor. I prefer 0dB across the board, direct monitor on or off.

Have you seen this https://github.com/geoffreybennett/alsa-scarlett-gui/blob/master/docs/iface-4th-gen.md#routing-and-mixing explanation? That could help. Let me know if you still have questions!

Regards, Geoffrey.

— Reply to this email directly, view it on GitHub https://github.com/geoffreybennett/scarlett-gen2/issues/22#issuecomment-2376674204, or unsubscribe https://github.com/notifications/unsubscribe-auth/BLS3SHU3K4UOLOTVUQDEUF3ZYPVODAVCNFSM6AAAAABO3T42H2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZWGY3TIMRQGQ . You are receiving this because you were mentioned.Message ID: @.***>

geoffreybennett commented 3 weeks ago

You're welcome! If you need further assistance, please let me know what distro version, desktop environment etc you are using, then I can hopefully give more specific advice.