Score:0

Studio Controls app does not make bridges for USB soundcard

ee flag

About a day old installation of Ubuntu Studio 22.04.

Studio Controls is supposed to create bridges automatically between PulseAudio and JACK.

This works perfectly for the built-in sound card (ThinkBook 14).

Today, I plugged in my USB soundcard. This is working fine for JACK apps. But, when I start JACK with it, it goes through "stopping... configuring... starting... [all this is OK]... creating bridges..." and it gets stuck here (the "not-OK" bit).

With the built-in soundcard, it goes through a couple more stages (post-start, and "running").

The USB soundcard does not advance beyond "creating bridges." At this point, JACK apps can connect, and audio comes in and goes out correctly. But I have to create manual connections for PulseAudio.

I would love it if there's a way to set up Studio Controls so that both USB and built-in soundcards would bridge automatically.

Failing that, I can revert to my old way (qjackctl + hacky scripts). But I'd rather not... one reason in particular is that Studio Controls handles it gracefully if the soundcard is unplugged while JACK is running on it. Would be nice to have the stability plus the flexibility.

Oh, my autojack.json:

{
    "version": "2.3.1",
    "log-level": 15,
    "jack": {
        "on": true,
        "driver": "alsa",
        "chan-in": 1,
        "chan-out": 1,
        "rate": 44100,
        "frame": 1024,
        "period": 2,
        "connect-mode": "n",
        "dev": "sofhdadsp,0,0",
        "usbdev": "USB1,0,0",
        "cap-latency": 0,
        "play-latency": 0
    },
    "extra": {
        "a2j": true,
        "usbauto": true,
        "usb-single": false,
        "monitor": "system:playback_1",
        "phone-action": "switch",
        "phone-device": "sofhdadsp,0,0",
        "usbnext": 3,
        "a2j_u": false
    },
    "pulse": {
        "inputs": {
            "pulse_in": {
                "connection": "system:capture_1",
                "count": 2
            }
        },
        "outputs": {
            "pulse_out": {
                "connection": "monitor",
                "count": 2
            }
        }
    },
    "devices": {
        "sofhdadsp": {
            "number": 0,
            "usb": false,
            "internal": true,
            "hdmi": false,
            "firewire": false,
            "rates": [
                "44100",
                "48000",
                "96000",
                "192000"
            ],
            "min_latency": 128,
            "id": "none",
            "bus": "none",
            "sub": {
                "0": {
                    "name": "sofhdadsp,0,0",
                    "playback": true,
                    "capture": true,
                    "rate": 44100,
                    "frame": 1024,
                    "nperiods": 2,
                    "hide": false,
                    "cap-latency": 0,
                    "play-latency": 0,
                    "play-chan": 100,
                    "cap-chan": 100,
                    "play-pid": 0,
                    "cap-pid": 0
                },
                "1": {
                    "playback": true,
                    "capture": true,
                    "play-chan": 0,
                    "cap-chan": 0,
                    "rate": 44100,
                    "frame": 1024,
                    "nperiods": 2,
                    "hide": false,
                    "name": "sofhdadsp,1,0",
                    "cap-latency": 0,
                    "play-latency": 0,
                    "play-pid": 0,
                    "cap-pid": 0
                },
                "3": {
                    "playback": true,
                    "capture": false,
                    "play-chan": 0,
                    "cap-chan": 0,
                    "rate": 44100,
                    "frame": 1024,
                    "nperiods": 2,
                    "hide": false,
                    "name": "sofhdadsp,3,0",
                    "cap-latency": 0,
                    "play-latency": 0,
                    "play-pid": 0,
                    "cap-pid": 0
                },
                "4": {
                    "playback": true,
                    "capture": false,
                    "play-chan": 0,
                    "cap-chan": 0,
                    "rate": 44100,
                    "frame": 1024,
                    "nperiods": 2,
                    "hide": false,
                    "name": "sofhdadsp,4,0",
                    "cap-latency": 0,
                    "play-latency": 0,
                    "play-pid": 0,
                    "cap-pid": 0
                },
                "5": {
                    "playback": true,
                    "capture": false,
                    "play-chan": 0,
                    "cap-chan": 0,
                    "rate": 44100,
                    "frame": 1024,
                    "nperiods": 2,
                    "hide": false,
                    "name": "sofhdadsp,5,0",
                    "cap-latency": 0,
                    "play-latency": 0,
                    "play-pid": 0,
                    "cap-pid": 0
                },
                "6": {
                    "playback": false,
                    "capture": true,
                    "play-chan": 0,
                    "cap-chan": 0,
                    "rate": 44100,
                    "frame": 1024,
                    "nperiods": 2,
                    "hide": false,
                    "name": "sofhdadsp,6,0",
                    "cap-latency": 0,
                    "play-latency": 0,
                    "play-pid": 0,
                    "cap-pid": 0
                },
                "7": {
                    "playback": false,
                    "capture": true,
                    "play-chan": 0,
                    "cap-chan": 0,
                    "rate": 44100,
                    "frame": 1024,
                    "nperiods": 2,
                    "hide": false,
                    "name": "sofhdadsp,7,0",
                    "cap-latency": 0,
                    "play-latency": 0,
                    "play-pid": 0,
                    "cap-pid": 0
                }
            },
            "raw": "sofhdadsp"
        },
        "USB1": {
            "number": -1,
            "usb": true,
            "internal": false,
            "hdmi": false,
            "firewire": false,
            "min_latency": 32,
            "rates": [
                "44100",
                "48000",
                "88200",
                "96000"
            ],
            "raw": "USB",
            "id": "1235:800a",
            "bus": "003",
            "sub": {
                "0": {
                    "playback": true,
                    "capture": true,
                    "play-chan": 100,
                    "cap-chan": 100,
                    "rate": 44100,
                    "frame": 1024,
                    "nperiods": 2,
                    "hide": false,
                    "name": "USB1,0,0",
                    "cap-latency": 0,
                    "play-latency": 0,
                    "play-pid": 0,
                    "cap-pid": 0
                }
            }
        },
        "USB2": {
            "number": 1,
            "usb": true,
            "internal": false,
            "hdmi": false,
            "firewire": false,
            "min_latency": 32,
            "rates": [
                "32000",
                "44100",
                "48000",
                "88200",
                "96000",
                "192000"
            ],
            "raw": "nanoKONTROL2",
            "id": "0944:0117",
            "bus": "001",
            "sub": {}
        }
    },
    "znet": {},
    "mnet": {
        "type": "jack",
        "count": 0
    }
}

Thanks.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.