Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
2
votes
1
answers
4363
views
How to change the default soundcard in Debian to an external USB?
Running Jessie and `aplay -l` gives me this: **** List of PLAYBACK Hardware Devices **** card 0: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 1: ALC887-VD Digital [ALC887-VD Digital] Subdevices: 1/1...
Running Jessie and
aplay -l
gives me this:
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC887-VD Digital [ALC887-VD Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Device [USB Advanced Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
The usb card is my only working device (alsaplayer -o alsa -d hw:2,0 rocknroll.mp3
confirms this)
so I came up with the following /etc/modprobe.d/sound file and restarted pulseaudio:
options snd cards_limit=3
alias snd-card-0 snd-1
alias snd-card-1 snd-hdmi
alias snd-card-2 snd-usb
options snd slots=snd_usb_audio,snd_hd_intel,snd-1
But still no sound on my system. What am I not doing? I had to create the sound file above as there was none before. So maybe that's an outdated way of doing things.
user1561108
(1081 rep)
Jul 25, 2016, 11:45 PM
• Last activity: Jul 3, 2025, 04:05 AM
1
votes
1
answers
2577
views
Unable to playback captured audio using USB sound card
I am trying to capture and play audio using C program. For this I [got this tutorial.][1]. Here is the program which I am running:- /** * Jan Newmarch */ #define PERIOD_SIZE 1024 #define BUF_SIZE (PERIOD_SIZE * 2) #include #include #include void print_pcm_state(snd_pcm_t *handle, char *name) { switc...
I am trying to capture and play audio using C program. For this I [got this tutorial.]. Here is the program which I am running:-
/**
* Jan Newmarch
*/
#define PERIOD_SIZE 1024
#define BUF_SIZE (PERIOD_SIZE * 2)
#include
#include
#include
void print_pcm_state(snd_pcm_t *handle, char *name) {
switch (snd_pcm_state(handle)) {
case SND_PCM_STATE_OPEN:
printf("state open %s\n", name);
break;
case SND_PCM_STATE_SETUP:
printf("state setup %s\n", name);
break;
case SND_PCM_STATE_PREPARED:
printf("state prepare %s\n", name);
break;
case SND_PCM_STATE_RUNNING:
printf("state running %s\n", name);
break;
case SND_PCM_STATE_XRUN:
printf("state xrun %s\n", name);
break;
default:
printf("state other %s\n", name);
break;
}
}
int setparams(snd_pcm_t *handle, char *name) {
snd_pcm_hw_params_t *hw_params;
int err;
if ((err = snd_pcm_hw_params_malloc (&hw_params)) /etc/modprobe.d/alsa-base.conf
Here are the changes :-
I replace
options snd_usb_audio index=-2
options snd_hda_intel index=-1
with
options snd_usb_audio index=-1
options snd_hda_intel index=-2
And I replace
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=-1
with
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=-1
Now, when i run my code , I got this output:-
Rate for playback is 48000
period size now 1024
period size 1024
buffer size 2048
Rate for capture is 48000
cannot set channel count (Invalid argument)
So, can anyone tell me what else should I do to run my code using sound card.
Note:- I run command
aplay -l
and got this output:-
card 0: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC221 Analog [ALC221 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
tabish
(510 rep)
Apr 19, 2016, 09:07 AM
• Last activity: Apr 26, 2025, 09:02 AM
3
votes
2
answers
2031
views
Alsa mixer for assigning specific apps to a specific soundcard?
I am looking for a Alsa mixer GUI for Xfce (or better yet, desktop-independent) to replace PulseAudio Mixer. While I'm happy with the latter, my USB DAC is very poorly handled by PulseAudio and I need to remove it. In the Alsa-based mixer I am looking specifically for the ability to: * detect plugge...
I am looking for a Alsa mixer GUI for Xfce (or better yet, desktop-independent) to replace PulseAudio Mixer. While I'm happy with the latter, my USB DAC is very poorly handled by PulseAudio and I need to remove it.
In the Alsa-based mixer I am looking specifically for the ability to:
* detect plugged-in USB DACs
* set default playback device for new programs (e.g. to
USB DAC
)
* (optional) transparently change running programs currently outputting sound from one playback device to another (e.g. from integrated HDA PCH
to USB DAC
)
So is there a pavucontrol
-like Alsa mixer out there?
landroni
(11586 rep)
Jul 19, 2015, 05:41 AM
• Last activity: Apr 17, 2025, 06:02 AM
1
votes
1
answers
281
views
Pipewire does not detect USB sound card found by ALSA, but it used to
I was attempting to connect to a `Google Meet` call on my browser (`Chromium`) and where it would normally have found my USB audio device (a USB dongle that I can connect a microphone and line-out/speaker on their own 3.5mm jacks) for some reason it no longer was. Going into `pavucontrol` and my vol...
I was attempting to connect to a
Google Meet
call on my browser (Chromium
) and where it would normally have found my USB audio device (a USB dongle that I can connect a microphone and line-out/speaker on their own 3.5mm jacks) for some reason it no longer was.
Going into pavucontrol
and my volume control applet, and so on, did not detect the device. As mentioned, this used to work no problem, with me connecting, disconnecting, reconnecting the USB dongle at will (and where it is normally not connected, for privacy reasons).
insaner
(541 rep)
Apr 11, 2025, 01:56 AM
• Last activity: Apr 11, 2025, 02:11 AM
0
votes
0
answers
47
views
audio input plays back on output
I have a samson GO mic, to which I've connected my headphones. Sometimes, it will play back the input it receives on the microphone back on the headphones that I connected to it. On windows, the fix for this was to go to the sound settings and toggle "Listen to this device" on and back off, after wh...
I have a samson GO mic, to which I've connected my headphones. Sometimes, it will play back the input it receives on the microphone back on the headphones that I connected to it. On windows, the fix for this was to go to the sound settings and toggle "Listen to this device" on and back off, after which it was fixed for an indeterminate time.
Now I'm running NixOS, with pipewire and wireplumber, with support for pulse and alsa.
pw-ctl
gives back 6 connected ids for my microphone: Front Left and Front Right for playback, input monitor and microphone (input).
pactl list sinks short
only gives back one sink for the device, as well as the monitor source, but again, no listen back or anything like that.
pavucontrol
just shows one audio device with 2 channels as well, as well as the monitor and microphone inputs. Changing the configuration does not help this issue either. Currently I have it set to analog stereo duplex.
What could be causing this issue and how would I go about resolving it?
Arrrow
(103 rep)
Aug 30, 2024, 02:59 PM
0
votes
0
answers
302
views
USB audio interface continuously connects and disconnects once audio output starts
I'm having issues getting my audio interface (Mackie DLZ Creator) working properly on my Linux machines. I've tried using both PulseAudio and Pipewire, although I've been focusing mostly on using Pipewire. I'm also having the same issues on both Debian and NixOS. I'm seeing the device over USB, and...
I'm having issues getting my audio interface (Mackie DLZ Creator) working properly on my Linux machines. I've tried using both PulseAudio and Pipewire, although I've been focusing mostly on using Pipewire. I'm also having the same issues on both Debian and NixOS.
I'm seeing the device over USB, and when no audio is playing I see the sources and sinks with
wpctl status
:
> wpctl status
PipeWire 'pipewire-0' [1.0.1]
Audio
├─ Devices:
│ 48. Rembrandt Radeon High Definition Audio Controller [alsa]
│ 50. Family 17h/19h HD Audio Controller [alsa]
│ 94. DLZ Creator [alsa]
│
├─ Sinks:
│ 38. Family 17h/19h HD Audio Controller Analog Stereo [vol: 0.35]
│ * 49. DLZ Creator Analog Surround 4.0 [vol: 0.53]
│
├─ Sink endpoints:
│
├─ Sources:
│ 54. Family 17h/19h HD Audio Controller Analog Stereo [vol: 0.26]
│ * 68. DLZ Creator Multichannel [vol: 1.00]
│
├─ Source endpoints:
│
└─ Streams:
Settings
└─ Default Configured Node Names:
0. Audio/Sink alsa_output.usb-LOUD_Audio__LLC_DLZ_Creator_no_serial_number-00.analog-surround-40
1. Audio/Source alsa_input.usb-LOUD_Audio__LLC_DLZ_Creator_no_serial_number-00.multichannel-input
I've also set the DLZ Creator as the default source and sink. However, once I start playing some audio, the output comes through my laptop speakers instead of the DLZ Creator. I can also see the DLZ Creator appearing and disappearing from the list of devices over and over again while the audio is playing.
journalctl
shows this batch of logs happening over and over:
Jun 18 12:56:39 kernel: usb 1-1: new high-speed USB device number 19 using xhci_hcd
Jun 18 12:56:40 kernel: usb 1-1: New USB device found, idVendor=0a73, idProduct=0033, bcdDevice= 1.30
Jun 18 12:56:40 kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jun 18 12:56:40 kernel: usb 1-1: Product: DLZ Creator
Jun 18 12:56:40 kernel: usb 1-1: Manufacturer: LOUD Audio, LLC
Jun 18 12:56:40 kernel: usb 1-1: SerialNumber: no serial number
Jun 18 12:56:40 kernel: usb 1-1: USB disconnect, device number 19
Jun 18 12:56:40 pipewire: spa.alsa: surround40:4p: snd_pcm_drop: No such device
Jun 18 12:56:40 pipewire: spa.alsa: surround40:4p: close failed: No such device
dmesg
shows similarly repeating logs:
[57648.041528] usb 1-1: new high-speed USB device number 124 using xhci_hcd
[57648.172355] usb 1-1: New USB device found, idVendor=0a73, idProduct=0033, bcdDevice= 1.30
[57648.172365] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[57648.172371] usb 1-1: Product: DLZ Creator
[57648.172375] usb 1-1: Manufacturer: LOUD Audio, LLC
[57648.172378] usb 1-1: SerialNumber: no serial number
[57667.052179] usb 1-1: USB disconnect, device number 124
I've done a lot of troubleshooting focusing on what cables and ports I'm using, and once I pulled out an old Mac to double check that cables are working properly, I discovered strange: The DLZ Creator works properly if I plug it into the Mac _first_ and then plug it into a Linux machine _without turning the DLZ off/on in between_. However, if I turn on the DLZ and it is already connected to the Linux box, it exhibits the disconnect/connect loop when I begin playing any audio. Doing a round trip to the Mac and back with the USB cable fixes it. This is all using the same cables and ports.
Does anyone have advice about what to try?
redhotvengeance
(101 rep)
Jun 19, 2024, 02:15 AM
3
votes
1
answers
74
views
alsamixer / amixer supported usb audio class 2 controls
I am currently developing a usb soundcard that is usb audio class 2 compliant. In my current setup I have audio and mute controls for several channels working in alsamixer. The USB audio class 2 spec also supports a lot of other controls such as bass, mid, treble, equalizers, effects, etc. I have be...
I am currently developing a usb soundcard that is usb audio class 2 compliant.
In my current setup I have audio and mute controls for several channels working in alsamixer.
The USB audio class 2 spec also supports a lot of other controls such as bass, mid, treble, equalizers, effects, etc. I have been trying to find a list of controls supported by alsamixer but the documentation does not mention any specifics on what kind of controls are supported.
If someone has a list with supported controls or an alternative command-line program that would be greatly appreciated.
Jelle Jan
(33 rep)
Feb 26, 2024, 10:59 AM
• Last activity: Feb 28, 2024, 11:34 AM
1
votes
0
answers
80
views
How to get ALSA to trigger events for USB audio volume changes on the hardware
I've been trying to figure this out for a while, and I've even posted a few questions from different angles on it, but I have yet to get a response. So, if my question is nonsense, please let me know. If there is something missing that would make this easier to understand, please let me know. Here i...
I've been trying to figure this out for a while, and I've even posted a few questions from different angles on it, but I have yet to get a response. So, if my question is nonsense, please let me know. If there is something missing that would make this easier to understand, please let me know.
Here is the basic problem. I've got a RaspPi 5, with a PolyCom P3200M speaker attached to it. (It is actually for conference calls, so it is mic/speaker in one.)
I want to trigger events if the volume keys on the speaker itself are pressed.
If I run
amixer -Dsysdefault:2 sset PCM Playback 5
for example, it will indeed set the volume on the speaker hardware to that level.
If I run amixer -Dsysdefault:2 events
, and then issue in a separate term amixer -Dsysdefault:2 sset PCM Playback 5
, the events are indeed captured.
However, if, instead, I push the volume buttons on the speaker, the volume on the speaker will change, but no event is triggered for amixer
to react to.
Can this be done? Can I trigger an event on amixer events
when I push the volume buttons on the speaker? Is there another way to get to the same end point of knowing when the buttons are pressed?
knottied
(21 rep)
Feb 18, 2024, 11:55 PM
1
votes
0
answers
107
views
Why is ALSA often not reading the audio card state
I'm having a terrible time with ALSA on a PI5. It will play and record sound, but the control interface seems to only work sometimes. I cannot find a cause for this. I could use some help understanding what is going on. My objective is to have a USB speaker (Polycom P3200M) reset its volume to the l...
I'm having a terrible time with ALSA on a PI5. It will play and record sound, but the control interface seems to only work sometimes. I cannot find a cause for this. I could use some help understanding what is going on.
My objective is to have a USB speaker (Polycom P3200M) reset its volume to the last volume setting on a boot. This should work with
alsactl rdaemon
. Further, there is a canned service in alsa-state.service
that should do that. It is not working. I already have /etc/asla/state-daemon.conf
in place, so the rdaemon
option should be running.
A look at ps -ef
shows:
root 660 1 0 20:06 ? 00:00:00 /usr/sbin/alsactl -E HOME=/run/alsa -E XDG_RUNTIME_DIR=/run/alsa/runtime -s -n 19 -c rdaemon
So, I have to assume the service is running correctly. The problem is that if I execute amixer -c2
I don't get the correct output. For example it will show:
Simple mixer control 'PCM',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 20
Mono: Playback 9 [45%] [-22.00dB] [on]
Simple mixer control 'Headset',0
Capabilities: cswitch cswitch-joined
Capture channels: Mono
Mono: Capture [on]
If I then change the volume on the speaker by pushing the buttons, and rerun axmixer -c2
, I get the exact same output.
By looking at the timestamp on /var/lib/alsa/asound.state
I can see that the file is only touched at boot, and then never again.
Finally, in a fit of frustration, I wrote my own code to monitor the device, and determine when the volume was changed.
#include
#include
int elem_callback(snd_mixer_elem_t *elem,unsigned int mask);
int main(int argc, char* argv[])
{
long min, max;
snd_mixer_t *handle;
snd_mixer_selem_id_t *sid;
const char *selem_name = "PCM";
long curVolume;
int res;
if(argc!=2)
{
return(1);
}
snd_mixer_open(&handle, 0);
snd_mixer_attach(handle, argv);
snd_mixer_selem_register(handle, NULL, NULL);
snd_mixer_load(handle);
snd_mixer_selem_id_alloca(&sid);
snd_mixer_selem_id_set_index(sid, 0);
snd_mixer_selem_id_set_name(sid, selem_name);
snd_mixer_elem_t* elem = snd_mixer_find_selem(handle, sid);
printf("Name: %s\n",snd_mixer_selem_get_name(elem));
snd_mixer_selem_get_playback_volume_range(elem, &min, &max);
printf("max: %d\nmin:%d\n",max,min);
snd_mixer_selem_get_playback_volume(elem,SND_MIXER_SCHN_MONO,&curVolume);
printf("Current Volume: %d\n",curVolume);
snd_mixer_elem_set_callback(elem,elem_callback);
while(1)
{
res=snd_mixer_wait(handle,-1);
res=snd_mixer_handle_events(handle);
}
snd_mixer_close(handle);
return(0);
}
int elem_callback(snd_mixer_elem_t *elem,unsigned int mask)
{
long curVolume;
switch(mask)
{
case 1:
snd_mixer_selem_get_playback_volume(elem,SND_MIXER_SCHN_MONO,&curVolume);
printf("Current Volume: %d\n",curVolume);
printf("\tmask: %d\n",mask);
break;
default:
printf("Unrecognized mask: %d\n",mask);
break;
}
return (0);
}
I lifted most of this code from [link](https://stackoverflow.com/questions/6787318/set-alsa-master-volume-from-c-code)
What is truly bothersome is the above code worked. I could press the volume button on the speaker and the callback would get triggered. All was good. Then I rebooted the system and came back a day later. Now the code does nothing. It will output what it thinks the current settings are (which are not correct) but it will not react to the button presses.
I'm at a loss. Why is ALSA sometimes working?
knottied
(21 rep)
Feb 17, 2024, 06:15 PM
0
votes
0
answers
165
views
No audio heard, yet Linux thinks played successfully
I had audio working on my AlmaLinux 9 installation, using a USB sound card. I seemed to have changed something because I no longer hear audio (but AlmaLinux thinks its successfully playing a sound). I did switch from GUI to text mode on boot, but I don't think that should matter. I have no idea how...
I had audio working on my AlmaLinux 9 installation, using a USB sound card. I seemed to have changed something because I no longer hear audio (but AlmaLinux thinks its successfully playing a sound). I did switch from GUI to text mode on boot, but I don't think that should matter. I have no idea how to proceed...hopefully someone sees something wrong here:
For example, the following command completes successfully:
aplay /data/sounds/intruder_alert.wav
Playing WAVE '/data/sounds/intruder_alert.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
I confirmed my USB audio device is detected on bootup (not sure if 'input,hidraw1' is a clue):
[ 2.586749] hub 2-2:1.0: USB hub found
[ 2.589077] hub 2-2:1.0: 7 ports detected
[ 3.536316] usb 2-2.1: new full-speed USB device number 4 using uhci_hcd
[ 4.432226] usb 2-2.1: New USB device found, idVendor=08bb, idProduct=2902, bcdDevice= 1.00
[ 4.432236] usb 2-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4.432243] usb 2-2.1: Product: USB Audio CODEC
[ 4.432248] usb 2-2.1: Manufacturer: Burr-Brown from TI
[ 4.524947] input: Burr-Brown from TI USB Audio CODEC as /devices/pci0000:00/0000:00:11.0/0000:02:00.0/usb2/2-2/2-2.1/2-2.1:1.3/0003:08BB:2902.0002/input/input6
[ 4.583437] hid-generic 0003:08BB:2902.0002: input,hidraw1: USB HID v1.00 Device [Burr-Brown from TI USB Audio CODEC ] on usb-0000:02:00.0-2.1/input3
and sound related drivers are loaded by kernel:
lsmod | grep snd
snd_seq_dummy 16384 0
snd_hrtimer 16384 1
snd_usb_audio 385024 2
snd_usbmidi_lib 45056 1 snd_usb_audio
snd_hwdep 16384 1 snd_usb_audio
snd_seq 94208 7 snd_seq_dummy
snd_pcm 151552 1 snd_usb_audio
snd_timer 49152 3 snd_seq,snd_hrtimer,snd_pcm
snd_rawmidi 45056 1 snd_usbmidi_lib
snd_seq_device 16384 2 snd_seq,snd_rawmidi
snd 122880 14 snd_seq,snd_seq_device,snd_hwdep,snd_usb_audio,snd_usbmidi_lib,snd_timer,snd_pcm,snd_rawmidi
soundcore 16384 1 snd
mc 69632 1 snd_usb_audio
Since I'm running pipewire and the nodes are
pw-cli ls Node
id 28, type PipeWire:Interface:Node/3
object.serial = "28"
factory.id = "10"
priority.driver = "20000"
node.name = "Dummy-Driver"
id 29, type PipeWire:Interface:Node/3
object.serial = "29"
factory.id = "10"
priority.driver = "19000"
node.name = "Freewheel-Driver"
id 31, type PipeWire:Interface:Node/3
object.serial = "1736"
object.path = "alsa:pcm:0:front:0:playback"
factory.id = "18"
client.id = "33"
device.id = "44"
priority.session = "1009"
priority.driver = "1009"
node.description = "PCM2902 Audio Codec Analog Stereo"
node.name = "alsa_output.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.analog-stereo-output"
node.nick = "USB Audio CODEC"
media.class = "Audio/Sink"
id 37, type PipeWire:Interface:Node/3
object.serial = "35"
factory.id = "10"
client.id = "33"
node.name = "Midi-Bridge"
media.class = "Midi/Bridge"
id 42, type PipeWire:Interface:Node/3
object.serial = "1737"
object.path = "alsa:pcm:0:hw:0:capture"
factory.id = "18"
client.id = "33"
device.id = "44"
priority.session = "2009"
priority.driver = "2009"
node.description = "PCM2902 Audio Codec Analog Stereo"
node.name = "alsa_input.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.analog-stereo-input"
node.nick = "USB Audio CODEC"
media.class = "Audio/Source"
I also tried a simple speaker test:
speaker-test -c 2
speaker-test 1.2.8
Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 1048576
Period size range from 32 to 524288
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
0 - Front Left
1 - Front Right
Time per period = 11.005656
0 - Front Left
^C 1 - Front Right
Time per period = 5.263193
And I checked the aplay devices
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: CODEC [USB Audio CODEC], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
sysdefault
Default Audio Device
oss
Open Sound System
pipewire
PipeWire Sound Server
default
Default ALSA Output (currently PipeWire Media Server)
sysdefault:CARD=CODEC
USB Audio CODEC, USB Audio
Default Audio Device
front:CARD=CODEC,DEV=0
USB Audio CODEC, USB Audio
Front output / input
surround21:CARD=CODEC,DEV=0
USB Audio CODEC, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=CODEC,DEV=0
USB Audio CODEC, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=CODEC,DEV=0
USB Audio CODEC, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=CODEC,DEV=0
USB Audio CODEC, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=CODEC,DEV=0
USB Audio CODEC, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=CODEC,DEV=0
USB Audio CODEC, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=CODEC,DEV=0
USB Audio CODEC, USB Audio
IEC958 (S/PDIF) Digital Audio Output
And alsa mixer says volume levels are up:
amixer
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 65536
Mono:
Front Left: Playback 55864 [85%] [on]
Front Right: Playback 55864 [85%] [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 65536
Front Left: Capture 26213 [40%] [on]
Front Right: Capture 26213 [40%] [on]
I've never seen this before and I'm not sure how to diagnose this. Btw, I confirmed my speakers work fine (hear buzz when I touch the audio cable connections).
TSG
(1983 rep)
Nov 28, 2023, 08:45 PM
0
votes
0
answers
167
views
USB Audio device no longer usable after reboot
My AlmaLinux9 server has been running great for months, playing audio through a USB device which was detected during installation. After a recent reboot I can no longer play audio because my app reports no sounds cards. dmesg shows detection of my sound card: [ 2.035043] usb 3-1.2.2: new full-speed...
My AlmaLinux9 server has been running great for months, playing audio through a USB device which was detected during installation. After a recent reboot I can no longer play audio because my app reports no sounds cards.
dmesg shows detection of my sound card:
[ 2.035043] usb 3-1.2.2: new full-speed USB device number 4 using xhci_hcd
[ 2.102248] usb 2-2.1: new full-speed USB device number 4 using uhci_hcd
[ 2.169381] usb 3-1.2.2: New USB device found, idVendor=08bb, idProduct=2902, bcdDevice= 1.00
[ 2.169389] usb 3-1.2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.169394] usb 3-1.2.2: Product: USB Audio CODEC
[ 2.169399] usb 3-1.2.2: Manufacturer: Burr-Brown from TI
[ 2.174145] input: Burr-Brown from TI USB Audio CODEC as /devices/pci0000:00/0000:00:17.0/0000:13:00.0/usb3/3-1/3-1.2/3-1.2.2/3-1.2.2:1.3/0003:08BB:2902.0002/input/input6
[ 2.225293] hid-generic 0003:08BB:2902.0002: input,hidraw1: USB HID v1.00 Device [Burr-Brown from TI USB Audio CODEC ] on usb-0000:13:00.0-1.2.2/input3
Yet Linux doesn't see this as a sound card:
aplay -l
aplay: device_list:274: no soundcards found...
What happened? And how do I fix this?
TSG
(1983 rep)
Sep 13, 2023, 12:03 PM
0
votes
0
answers
98
views
Bt audio works, but absolutely no GUI
I have a BT audio device: $ lsusb Bus 005 Device 005: ID 0a12:1275 Cambridge Silicon Radio, Ltd HaiSenKeJi Bus 005 Device 004: ID 0a12:4010 Cambridge Silicon Radio, Ltd In sound settings I can select it for output: [![enter image description here][1]][1] Now the problem is that I can't get any GUI t...
I have a BT audio device:
$ lsusb
Bus 005 Device 005: ID 0a12:1275 Cambridge Silicon Radio, Ltd HaiSenKeJi
Bus 005 Device 004: ID 0a12:4010 Cambridge Silicon Radio, Ltd
In sound settings I can select it for output:
Now the problem is that I can't get any GUI to show which speaker is my computer connected to.
I installed *everything* I found: bluetooth*, bluez*, pulseaudio-module-bluetooth, blueman*.
However, normal bluetooth commands doesn't work as they can't find an adapter.
What am I supposed to do to get some GUI?

Daniel
(358 rep)
Aug 18, 2023, 08:33 PM
0
votes
1
answers
351
views
USB Headset Prevents Media Playing on Arch
I recently bought a USB headset and it has been behaving very inconsistently. Sometimes it works fine but other times, if I try to play any media, it acts as if it is buffering until I unplug the headset. Running `speaker-test` (both with and without `-c2`) either hangs or produces the error `Write...
I recently bought a USB headset and it has been behaving very inconsistently. Sometimes it works fine but other times, if I try to play any media, it acts as if it is buffering until I unplug the headset.
Running
speaker-test
(both with and without -c2
) either hangs or produces the error Write error: -77,File descriptor in bad state
. The latter I haven't been able to reproduce since installing sof-firmware
, but this hasn't helped in any other way.
My headset is EPOS H3 Hybrid and my laptop is a Dell G15 Ryzen Edition.
For my audio, I use PireWire with Wireplumber, as compatibility, pipewire-pulse, pipewire-alsa, and pipewire-jack.
Whenever I play audio, journalctl
seems to fill with spa.alsa: front:3: (250 missed) snd_pcm_avail after recover: Broken pipe
.
Additionally, my laptop speakers don't seem to work at the moment but media will still play.
Does anyone know how this could be fixed?
Aurillium
(3 rep)
Jun 8, 2023, 02:11 PM
• Last activity: Jun 29, 2023, 03:48 AM
1
votes
1
answers
207
views
M-Audio Fast Track C400 USB Audio Interface problem
I`m running Debian 11 on an Asus X750L laptop. I have an M-Audio Fast Track C400 USB Audio Interface. If I restart or shut down the laptop after I turn it on in sound settings there is a signal but there is no sound out on the speakers. Has anyone had a similar experience?
I`m running Debian 11 on an Asus X750L laptop. I have an M-Audio Fast Track C400 USB Audio Interface. If I restart or shut down the laptop after I turn it on in sound settings there is a signal but there is no sound out on the speakers. Has anyone had a similar experience?
Tion
(11 rep)
Jan 26, 2022, 05:06 PM
• Last activity: Mar 9, 2023, 11:21 PM
2
votes
1
answers
1547
views
Use audio output USB device
I have a Roland TD-30 drum connected using USB to my computer. The USB device support MIDI and audio input/output. Currently Linux does see the USB card. `aplay -l` shows: kaart 2: TD30 [TD-30], apparaat 0: USB Audio [USB Audio] Sub-apparaten: 1/1 Sub-apparaat #0: subdevice #0 When I call `cat /proc...
I have a Roland TD-30 drum connected using USB to my computer. The USB device support MIDI and audio input/output. Currently Linux does see the USB card.
aplay -l
shows:
kaart 2: TD30 [TD-30], apparaat 0: USB Audio [USB Audio]
Sub-apparaten: 1/1
Sub-apparaat #0: subdevice #0
When I call cat /proc/asound/card2/*
, it shows me:
TD30
TD-30
Output 0
Tx bytes : 0
Input 0
Rx bytes : 0
cat: /proc/asound/card2/pcm0c: Is een map
cat: /proc/asound/card2/pcm0p: Is een map
Roland TD-30 at usb-0000:00:14.0-10, full speed : USB Audio
Playback:
Status: Running
Interface = 0
Altset = 1
Packet Size = 320
Momentary freq = 44100 Hz (0x2c.199a)
Interface 0
Altset 1
Format: S24_3LE
Channels: 2
Endpoint: 1 OUT (ADAPTIVE)
Rates: 44100
Capture:
Status: Running
Interface = 1
Altset = 1
Packet Size = 320
Momentary freq = 44100 Hz (0x2c.199a)
Interface 1
Altset 1
Format: S24_3LE
Channels: 2
Endpoint: 2 IN (ASYNC)
Rates: 44100
003/017
0582:0158
The midi input/output is working fine, but the audio input/output is not working at all. Alsamixer can only use the midi input/output.
Does someone know I can fix this? I'm using Kubuntu 18.10.
I got sound out of my usb device by booting Kubuntu with the audio device ON and plugged. Just after boot it works fine, but after a few minutes it stops and a reboot is needed. Can this be solved?
JimmyD
(189 rep)
Dec 31, 2018, 10:33 AM
• Last activity: Feb 4, 2023, 07:32 PM
0
votes
1
answers
191
views
Volume Control Extremely Sensitive/Too Loud for Corsair 1500 USB Gaming Headset in Linux Mint
This headset works exactly as expected in non-linux operating systems (e.g. macOS, Windows) such that the volume control smoothly adjusts the loudness of the headset all the way from `0` to `100`. In every version of Linux I've tried (e.g. Linux Mint), anything below 25% volume results in complete s...
This headset works exactly as expected in non-linux operating systems (e.g. macOS, Windows) such that the volume control smoothly adjusts the loudness of the headset all the way from
0
to 100
.
In every version of Linux I've tried (e.g. Linux Mint), anything below 25% volume results in complete silence, and anything above 33% volume is ear-splittingly loud, leaving almost no resolution for fine-tuning.
I've tried using alsamixer
and pavucontrol
to explore the available volume levels, with no change in behavior.
How can I achieve fine-grained control of this USB headset in Linux?
senbrow
(111 rep)
Jan 27, 2023, 10:47 PM
0
votes
0
answers
91
views
Problems connecting MIDI DJ controller
I have a Traktor Kontrol S5 and I really need to use it with Linux (in my case Linux Mint). Also, Im new to Linux. The problem is that, even if Ive installed the driver, the MIDI part of the controller doesnt work, while the audio part does. So if I want to play audio through it, it works, but MIDI...
I have a Traktor Kontrol S5 and I really need to use it with Linux (in my case Linux Mint). Also, Im new to Linux.
The problem is that, even if Ive installed the driver, the MIDI part of the controller doesnt work, while the audio part does. So if I want to play audio through it, it works, but MIDI wise seems disconnected.
I tried running the command
amidi -l
and the interface doesnt show.
But if I run cat /proc/asound/cards
the USB sound card works.
I have no idea how to fix it, and I cant find anything similar online.
I tried dmesg
In the output I found:
[ 2611.444069] hid-generic 0003:17CC:1420.0005: hiddev0,hidraw4: USB HID v1.10 Device [Native Instruments Traktor Kontrol S5] on usb-0000:00:14.0-1/input3
[ 2625.321568] xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 1 comp_code 1
[ 2625.321589] xhci_hcd 0000:00:14.0: Looking for event-dma 00000001a4aa8ea0 trb-start 00000001a4aa8eb0 trb-end 00000001a4aa8eb0 seg-start 00000001a4aa8000 seg-end 00000001a4aa8ff0
[ 2625.321692] usb 1-2: USB disconnect, device number 6
[ 2625.321815] xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 1 comp_code 1
[ 2625.321828] xhci_hcd 0000:00:14.0: Looking for event-dma 00000001a4aa8eb0 trb-start 00000001a4aa8ec0 trb-end 00000001a4aa8ec0 seg-start 00000001a4aa8000 seg-end 00000001a4aa8ff0
[ 2625.321845] xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 1 comp_code 1
[ 2625.321855] xhci_hcd 0000:00:14.0: Looking for event-dma 00000001a4aa8ec0 trb-start 00000001a4aa8ed0 trb-end 00000001a4aa8ed0 seg-start 00000001a4aa8000 seg-end 00000001a4aa8ff0
[ 2625.322190] xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 1 comp_code 1
[ 2625.322204] xhci_hcd 0000:00:14.0: Looking for event-dma 00000001a4aa8ed0 trb-start 00000001a4aa8ee0 trb-end 00000001a4aa8ee0 seg-start 00000001a4aa8000 seg-end 00000001a4aa8ff0
[ 2625.322219] xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 1 comp_code 1
[ 2625.322229] xhci_hcd 0000:00:14.0: Looking for event-dma 00000001a4aa8ee0 trb-start 00000001a4aa8ef0 trb-end 00000001a4aa8ef0 seg-start 00000001a4aa8000 seg-end 00000001a4aa8ff0
[ 2625.322243] xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 1 comp_code 1
[ 2625.322252] xhci_hcd 0000:00:14.0: Looking for event-dma 00000001a4aa8ef0 trb-start 00000001a4aa8f00 trb-end 00000001a4aa8f00 seg-start 00000001a4aa8000 seg-end 00000001a4aa8ff0
[ 2625.322523] xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 1 comp_code 1
[ 2625.322534] xhci_hcd 0000:00:14.0: Looking for event-dma 00000001a4aa8f00 trb-start 00000001a4aa8f10 trb-end 00000001a4aa8f10 seg-start 00000001a4aa8000 seg-end 00000001a4aa8ff0
[ 2625.322549] xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 1 comp_code 1
[ 2625.322558] xhci_hcd 0000:00:14.0: Looking for event-dma 00000001a4aa8f10 trb-start 00000001a4aa8f20 trb-end 00000001a4aa8f20 seg-start 00000001a4aa8000 seg-end 00000001a4aa8ff0
[ 2625.322592] xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 1 comp_code 1
Just for the record, I also have a MIDI keyboard and actually works fine
Any help would be awesome, thanks in advance
ramaswag
(21 rep)
Dec 3, 2022, 03:09 PM
0
votes
1
answers
436
views
USB Audio Device (Tascam US-2x2HR) sporadically fails to load, making other USB devices inoperable. How can I fix or debug this problem?
I dual-boot Windows and Ubuntu 22.04.01 LTS. In Windows, my audio device (Tascam US-2x2HR) works well. In Ubuntu, it does not work on boot, but if I repeatedly unplug it and plug it back in, it will eventually work perfectly. Sometimes, when I plug it in, it seems to partially hang the computer (e.g...
I dual-boot Windows and Ubuntu 22.04.01 LTS. In Windows, my audio device (Tascam US-2x2HR) works well. In Ubuntu, it does not work on boot, but if I repeatedly unplug it and plug it back in, it will eventually work perfectly. Sometimes, when I plug it in, it seems to partially hang the computer (e.g. I can click on the button to open a terminal) but the terminal does not open until I unplug the audio device.
Here are the best log snippets I know how to find. Happy to provide additional info of course!
Here is a snippet from
dmesg
that seems to have some relevant information.
[ 425.021608] pcieport 0000:00:03.2: AER: Corrected error received: 0000:00:03.2
[ 425.021622] pcieport 0000:00:03.2: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID)
[ 425.021626] pcieport 0000:00:03.2: device [8086:2f0a] error status/mask=00000001/00002000
[ 425.021643] pcieport 0000:00:03.2: [ 0] RxErr
[ 429.346228] usb 3-3: 1:0: usb_set_interface failed (-110)
[ 434.462227] usb 3-3: 1:0: usb_set_interface failed (-110)
[ 439.610209] usb 3-3: 1:1: cannot get freq (v2/v3): err -110
[ 444.730280] usb 3-3: 1:1: cannot set freq 44100 (v2/v3): err -110
[ 449.822347] usb 3-3: 1:0: usb_set_interface failed (-110)
[ 454.942400] usb 3-3: 1:0: usb_set_interface failed (-110)
[ 460.090325] usb 3-3: 1:1: cannot get freq (v2/v3): err -110
And when I tail -f /var/log/syslog
this is what happens after I plug in the device and it fails.
Nov 14 08:13:32 desktop kernel: [ 1429.572860] usb 3-3: new high-speed USB device number 10 using xhci_hcd
Nov 14 08:13:32 desktop kernel: [ 1429.721386] usb 3-3: New USB device found, idVendor=0644, idProduct=8070, bcdDevice= 1.00
Nov 14 08:13:32 desktop kernel: [ 1429.721394] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Nov 14 08:13:32 desktop kernel: [ 1429.721398] usb 3-3: Product: US-2x2HR
Nov 14 08:13:32 desktop kernel: [ 1429.721401] usb 3-3: Manufacturer: TASCAM
Nov 14 08:13:32 desktop kernel: [ 1429.721404] usb 3-3: SerialNumber: no serial number
Nov 14 08:13:37 desktop kernel: [ 1434.973026] usb 3-3: parse_audio_format_rates_v2v3(): unable to retrieve number of sample rates (clock 1)
Nov 14 08:14:32 desktop systemd-udevd: 3-3: Worker processing SEQNUM=6118 is taking a long time
Nov 14 08:14:44 desktop mtp-probe: checking bus 3, device 10: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3"
Nov 14 08:14:44 desktop mtp-probe: bus: 3, device: 10 was not an MTP device
Nov 14 08:14:44 desktop mtp-probe: checking bus 3, device 10: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3"
Nov 14 08:14:44 desktop mtp-probe: bus: 3, device: 10 was not an MTP device
Nov 14 08:14:49 desktop kernel: [ 1506.627314] usb 3-3: 1:0: usb_set_interface failed (-110)
Nov 14 08:14:54 desktop kernel: [ 1511.775449] usb 3-3: 1:1: cannot get freq (v2/v3): err -110
Nov 14 08:14:59 desktop kernel: [ 1516.895577] usb 3-3: 1:1: cannot set freq 44100 (v2/v3): err -110
Nov 14 08:15:04 desktop kernel: [ 1521.987790] usb 3-3: 1:0: usb_set_interface failed (-110)
Nov 14 08:15:09 desktop kernel: [ 1527.107948] usb 3-3: 1:0: usb_set_interface failed (-110)
Sometimes the device shows up in lsusb
(even if it is not working properly) and sometimes running lsusb freezes the terminal until I unplug the device (or wait a long time).
And finally, here is the syslog
content after a succcessful unplug/plug. The device works fine after this.
Nov 14 09:30:01 desktop CRON: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi)
Nov 14 09:30:27 desktop kernel: [ 6044.374629] usb 3-3: new high-speed USB device number 18 using xhci_hcd
Nov 14 09:30:27 desktop kernel: [ 6044.523123] usb 3-3: New USB device found, idVendor=0644, idProduct=8070, bcdDevice= 1.00
Nov 14 09:30:27 desktop kernel: [ 6044.523134] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Nov 14 09:30:27 desktop kernel: [ 6044.523138] usb 3-3: Product: US-2x2HR
Nov 14 09:30:27 desktop kernel: [ 6044.523141] usb 3-3: Manufacturer: TASCAM
Nov 14 09:30:27 desktop kernel: [ 6044.523143] usb 3-3: SerialNumber: no serial number
Nov 14 09:30:27 desktop mtp-probe: checking bus 3, device 18: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3"
Nov 14 09:30:27 desktop mtp-probe: bus: 3, device: 18 was not an MTP device
Nov 14 09:30:27 desktop systemd-udevd: controlC3: Process '/usr/sbin/alsactl -E HOME=/run/alsa -E XDG_RUNTIME_DIR=/run/alsa/runtime restore 3' failed with exit code 99.
Nov 14 09:30:27 desktop mtp-probe: checking bus 3, device 18: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3"
Nov 14 09:30:27 desktop mtp-probe: bus: 3, device: 18 was not an MTP device
Nov 14 09:30:29 desktop kernel: [ 6046.861313] retire_capture_urb: 2 callbacks suppressed
Nov 14 09:30:29 desktop gsd-media-keys: Unable to get default source
Nov 14 09:30:52 desktop systemd: Started Application launched by gsd-media-keys.
Nov 14 09:30:53 desktop systemd: Started VTE child process 13205 launched by gnome-terminal-server process 3364.
weemattisnot
(101 rep)
Nov 13, 2022, 07:20 PM
• Last activity: Nov 24, 2022, 01:28 AM
2
votes
2
answers
1320
views
Parsing audio format rates from USB Audio Interface fails, causing disconnect/rediscover loop
When I connect my PreSonus USB AudioBox 96 to my Ubuntu 18.04LTS desktop via USB2.0 port, `dmesg` shows the following errors in a loop: ``` [ 8764.468004] usb 1-11: new high-speed USB device number 61 using xhci_hcd [ 8764.516953] usb 1-11: New USB device found, idVendor=194f, idProduct=0303, bcdDev...
When I connect my PreSonus USB AudioBox 96 to my Ubuntu 18.04LTS desktop via USB2.0 port,
dmesg
shows the following errors in a loop:
[ 8764.468004] usb 1-11: new high-speed USB device number 61 using xhci_hcd
[ 8764.516953] usb 1-11: New USB device found, idVendor=194f, idProduct=0303, bcdDevice= 1.12
[ 8764.516955] usb 1-11: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 8764.516957] usb 1-11: Product: AudioBox USB 96
[ 8764.516958] usb 1-11: Manufacturer: PreSonus
[ 8764.516959] usb 1-11: SerialNumber: 000000000000
[ 8769.723951] usb 1-11: 1:1: cannot set freq 96000 (v2/v3): err -110
[ 8774.843735] usb 1-11: parse_audio_format_rates_v2v3(): unable to retrieve number of sample rates (clock 5)
[ 8820.921855] usb 1-11: USB disconnect, device number 61
[ 8821.065655] debugfs: Directory '56' with parent 'devices' already present!
[ 8821.193535] usb 1-11: new high-speed USB device number 62 using xhci_hcd
[ 8821.242166] usb 1-11: New USB device found, idVendor=194f, idProduct=0303, bcdDevice= 1.12
[ 8821.242168] usb 1-11: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 8821.242170] usb 1-11: Product: AudioBox USB 96
[ 8821.242171] usb 1-11: Manufacturer: PreSonus
[ 8821.242172] usb 1-11: SerialNumber: 000000000000
[ 8831.417276] usb 1-11: uac_clock_source_is_valid(): cannot get clock validity for id 5
[ 8836.537052] usb 1-11: parse_audio_format_rates_v2v3(): unable to retrieve number of sample rates (clock 5)
[ 8882.615203] usb 1-11: USB disconnect, device number 62
[ 8882.763151] debugfs: Directory '57' with parent 'devices' already present!
[ 8882.890909] usb 1-11: new high-speed USB device number 63 using xhci_hcd
[ 8882.919108] usb 1-11: device descriptor read/8, error -71
[ 8883.055305] usb 1-11: device descriptor read/8, error -71
[ 8883.163566] debugfs: Directory '58' with parent 'devices' already present!
[ 8883.498882] usb 1-11: new high-speed USB device number 64 using xhci_hcd
[ 8883.547227] usb 1-11: New USB device found, idVendor=194f, idProduct=0303, bcdDevice= 1.12
[ 8883.547229] usb 1-11: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 8883.547231] usb 1-11: Product: AudioBox USB 96
[ 8883.547232] usb 1-11: Manufacturer: PreSonus
[ 8883.547233] usb 1-11: SerialNumber: 000000000000
[ 8883.657682] usb 1-11: USB disconnect, device number 64
I suspect the failure is at [this](https://github.com/torvalds/linux/blob/50cc09c18985eacbbd666acfd7be2391394733f5/sound/usb/format.c#L398) line of the linux kernel.
The interface is intermittently available as an input source in alsamixer
. It will be available for a few seconds, then disappear, reappear, etc. The device works fine on my Windows machine.
Does anyone have any advice for how to debug/resolve this issue?
I've included the output of lsusb -v
below.
Bus 001 Device 041: ID 194f:0303 PreSonus Audio Electronics, Inc.
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x194f PreSonus Audio Electronics, Inc.
idProduct 0x0303
bcdDevice 1.12
iManufacturer 1
iProduct 2
iSerial 3
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 328
bNumInterfaces 6
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Association:
bLength 8
bDescriptorType 11
bFirstInterface 0
bInterfaceCount 3
bFunctionClass 1 Audio
bFunctionSubClass 0
bFunctionProtocol 32
iFunction 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 1 Audio
bInterfaceSubClass 1 Control Device
bInterfaceProtocol 32
iInterface 16
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 1 (HEADER)
bcdADC 2.00
bCategory 8
wTotalLength 75
bmControl 0x01
Latency control Control (read-only)
AudioControl Interface Descriptor:
bLength 8
bDescriptorType 36
bDescriptorSubtype 10 (CLOCK_SOURCE)
bClockID 5
bmAttributes 0x03 Internal programmable Clock
bmControls 0x07
Clock Frequency Control (read/write)
Clock Validity Control (read-only)
bAssocTerminal 0
iClockSource 0
AudioControl Interface Descriptor:
bLength 17
bDescriptorType 36
bDescriptorSubtype 2 (INPUT_TERMINAL)
bTerminalID 1
wTerminalType 0x0603 Line Connector
bAssocTerminal 0
bCSourceID 5
bNrChannels 2
bmChannelConfig 0x00000000
bmControls 0x0000
iChannelNames 32
iTerminal 0
AudioControl Interface Descriptor:
bLength 12
bDescriptorType 36
bDescriptorSubtype 3 (OUTPUT_TERMINAL)
bTerminalID 2
wTerminalType 0x0101 USB Streaming
bAssocTerminal 0
bSourceID 1
bCSourceID 5
bmControls 0x0000
iTerminal 0
AudioControl Interface Descriptor:
bLength 17
bDescriptorType 36
bDescriptorSubtype 2 (INPUT_TERMINAL)
bTerminalID 3
wTerminalType 0x0101 USB Streaming
bAssocTerminal 0
bCSourceID 5
bNrChannels 2
bmChannelConfig 0x00000000
bmControls 0x0000
iChannelNames 48
iTerminal 0
AudioControl Interface Descriptor:
bLength 12
bDescriptorType 36
bDescriptorSubtype 3 (OUTPUT_TERMINAL)
bTerminalID 4
wTerminalType 0x0301 Speaker
bAssocTerminal 0
bSourceID 3
bCSourceID 5
bmControls 0x0000
iTerminal 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 32
iInterface 17
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 1
bNumEndpoints 1
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 32
iInterface 17
AudioStreaming Interface Descriptor:
bLength 16
bDescriptorType 36
bDescriptorSubtype 1 (AS_GENERAL)
bTerminalLink 2
bmControls 0x00
bFormatType 1
bmFormats 0x00000001
PCM
bNrChannels 2
bmChannelConfig 0x00000000
iChannelNames 32
AudioStreaming Interface Descriptor:
bLength 6
bDescriptorType 36
bDescriptorSubtype 2 (FORMAT_TYPE)
bFormatType 1 (FORMAT_TYPE_I)
bSubslotSize 4
bBitResolution 24
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 5
Transfer Type Isochronous
Synch Type Asynchronous
Usage Type Data
wMaxPacketSize 0x0068 1x 104 bytes
bInterval 1
AudioControl Endpoint Descriptor:
bLength 8
bDescriptorType 37
bDescriptorSubtype 1 (EP_GENERAL)
bmAttributes 0x00
bmControls 0x00
bLockDelayUnits 0 Undefined
wLockDelay 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 32
iInterface 18
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 1
bNumEndpoints 2
bInterfaceClass 1 Audio
bInterfaceSubClass 2 Streaming
bInterfaceProtocol 32
iInterface 18
AudioStreaming Interface Descriptor:
bLength 16
bDescriptorType 36
bDescriptorSubtype 1 (AS_GENERAL)
bTerminalLink 3
bmControls 0x00
bFormatType 1
bmFormats 0x00000001
PCM
bNrChannels 2
bmChannelConfig 0x00000000
iChannelNames 48
AudioStreaming Interface Descriptor:
bLength 6
bDescriptorType 36
bDescriptorSubtype 2 (FORMAT_TYPE)
bFormatType 1 (FORMAT_TYPE_I)
bSubslotSize 4
bBitResolution 24
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 5
Transfer Type Isochronous
Synch Type Asynchronous
Usage Type Data
wMaxPacketSize 0x0068 1x 104 bytes
bInterval 1
AudioControl Endpoint Descriptor:
bLength 8
bDescriptorType 37
bDescriptorSubtype 1 (EP_GENERAL)
bmAttributes 0x00
bmControls 0x00
bLockDelayUnits 0 Undefined
wLockDelay 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 17
Transfer Type Isochronous
Synch Type None
Usage Type Feedback
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 4
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 1 Audio
bInterfaceSubClass 1 Control Device
bInterfaceProtocol 0
iInterface 16
AudioControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 1 (HEADER)
bcdADC 1.00
wTotalLength 9
bInCollection 1
baInterfaceNr( 0) 4
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 4
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 1 Audio
bInterfaceSubClass 3 MIDI Streaming
bInterfaceProtocol 0
iInterface 0
MIDIStreaming Interface Descriptor:
bLength 7
bDescriptorType 36
bDescriptorSubtype 1 (HEADER)
bcdADC 1.00
wTotalLength 65
MIDIStreaming Interface Descriptor:
bLength 6
bDescriptorType 36
bDescriptorSubtype 2 (MIDI_IN_JACK)
bJackType 1 Embedded
bJackID 1
iJack 0
MIDIStreaming Interface Descriptor:
bLength 6
bDescriptorType 36
bDescriptorSubtype 2 (MIDI_IN_JACK)
bJackType 2 External
bJackID 2
iJack 0
MIDIStreaming Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 3 (MIDI_OUT_JACK)
bJackType 1 Embedded
bJackID 3
bNrInputPins 1
baSourceID( 0) 2
BaSourcePin( 0) 1
iJack 0
MIDIStreaming Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 3 (MIDI_OUT_JACK)
bJackType 2 External
bJackID 4
bNrInputPins 1
baSourceID( 0) 1
BaSourcePin( 0) 1
iJack 0
Endpoint Descriptor:
bLength 9
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
bRefresh 0
bSynchAddress 0
MIDIStreaming Endpoint Descriptor:
bLength 5
bDescriptorType 37
bDescriptorSubtype 1 (GENERAL)
bNumEmbMIDIJack 1
baAssocJackID( 0) 1
Endpoint Descriptor:
bLength 9
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
bRefresh 0
bSynchAddress 0
MIDIStreaming Endpoint Descriptor:
bLength 5
bDescriptorType 37
bDescriptorSubtype 1 (GENERAL)
bNumEmbMIDIJack 1
baAssocJackID( 0) 3
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 5
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 254 Application Specific Interface
bInterfaceSubClass 1 Device Firmware Update
bInterfaceProtocol 2
iInterface 80
Device Firmware Upgrade Interface Descriptor:
bLength 9
bDescriptorType 33
bmAttributes 13
Will Detach
Manifestation Tolerant
Upload Unsupported
Download Supported
wDetachTimeout 2000 milliseconds
wTransferSize 1024 bytes
bcdDFUVersion 1.10
khornlund
(21 rep)
Apr 19, 2020, 12:02 PM
• Last activity: Nov 21, 2022, 05:06 PM
1
votes
1
answers
1131
views
USB audio devices not outputting audio unless leaving pulseaudio control applet open
I am having intermittent issues with the output going silent on a USB sound card. Note that this affects both an Apple audio dongle and a Ugreen sound card, two very different chipsets, in the same way, ruling out a hardware issue. I noticed that unplugging the USB cable and plugging it into another...
I am having intermittent issues with the output going silent on a USB sound card. Note that this affects both an Apple audio dongle and a Ugreen sound card, two very different chipsets, in the same way, ruling out a hardware issue.
I noticed that unplugging the USB cable and plugging it into another USB socket often fixes the problem, but not always. Rebooting also fixes it temporarily.
Sometimes, I can be listening to audio, and I momentarily pause my video or audio app or even skip/scrub backwards and then the problem will come back and all audio will be silent.
Weirdly, I've noticed that if the Pulseaudio volume control applet is open, the problem for now isn't occurring, and sometimes, if the problem happens and I start that applet, sometimes it fixes the issue (but not always, and sometimes nothing I do in the pulseaudio applet can fix it).
Things I've checked:
- Pulseaudio is showing correct output device, and the VU meter is showing the audio is playing on it, and it's not muted, but nothing is heard.
- Alsamixer shows nothing is muted on the relevant audio device
- It affects various software that plays audio, and when it happens, it appears to happen to all software that is playing to that device.
- lsusb and similar show nothing odd about the USB device, which is still recognised, and there is nothing in dmesg to indicate a problem with it.
- Even when the problem of no audio output is occurring, pulseaudio is correctly detecting the device being plugged and unplugged and the type of device it is.
Using Debian stable with Gnome desktop, pulseaudio config is pretty vanilla
trr
(468 rep)
Nov 14, 2022, 12:11 PM
• Last activity: Nov 15, 2022, 12:01 PM
Showing page 1 of 20 total questions