You are not logged in.

#1 2020-10-10 22:11:44

kvnick
Member
Registered: 2020-10-10
Posts: 7

Pulseaudio does not detect usb microphone

Hello everyone.

This is my first post here.
I have JBL Quantum 400 headsets with microphone. After install pulseaudio i cant see microphone in "input devices" section. But output work correctly.
In configuration section i do not see duplex or input  profile for my headsets, only output (analog/digital).

I tried to edit file /etc/modprobe.d/alsa-base.conf with each options

 options snd-hda-intel index=0 model=headset-mic

or:

 options snd-hda-intel index=0 model=dell-headset-multi 

No result. By the way this file was not exists, so i created it manually.

Some results of my audio settings:

$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Generic [HD-Audio Generic], device 0: ALC1220 Analog [ALC1220 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 2: ALC1220 Alt Analog [ALC1220 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Q400 [Quantum 400], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
$ arecord -L
null
    Discard all samples (playback) or generate zero samples (capture)
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pipewire
    PipeWire Sound Server
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
usbstream:CARD=NVidia
    HDA NVidia
    USB Stream Output
sysdefault:CARD=Generic
    HD-Audio Generic, ALC1220 Analog
    Default Audio Device
front:CARD=Generic,DEV=0
    HD-Audio Generic, ALC1220 Analog
    Front output / input
usbstream:CARD=Generic
    HD-Audio Generic
    USB Stream Output
sysdefault:CARD=Q400
    Quantum 400, USB Audio
    Default Audio Device
front:CARD=Q400,DEV=0
    Quantum 400, USB Audio
    Front output / input
usbstream:CARD=Q400
    Quantum 400
    USB Stream Output

Thanks for help.

Offline

#2 2020-10-11 08:34:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,265

Re: Pulseaudio does not detect usb microphone

These kernel parameters are irrelevant for an USB device and if you don't absolutely need it you should remove the file again (.. or ensure it's complete by also assigning an index to the USB device and to the (HDMI?) device that's on index 0).

Post

pacmd list-cards
pacmd list-sources
pacmd list-source-outputs

Offline

#3 2020-10-11 10:57:46

kvnick
Member
Registered: 2020-10-10
Posts: 7

Re: Pulseaudio does not detect usb microphone

V1del wrote:

These kernel parameters are irrelevant for an USB device and if you don't absolutely need it you should remove the file again (.. or ensure it's complete by also assigning an index to the USB device and to the (HDMI?) device that's on index 0).

Post

pacmd list-cards
pacmd list-sources
pacmd list-source-outputs

Thanks for reply.
Here is the output of commands:

$ pacmd list-cards
3 card(s) available.
    index: 0
	name: <alsa_card.usb-JBL_Quantum_400_0079CM-0021088BK-00>
	driver: <module-alsa-card.c>
	owner module: 6
	properties:
		alsa.card = "2"
		alsa.card_name = "Quantum 400"
		alsa.long_card_name = "JBL Quantum 400 at usb-0000:2a:00.3-1, full speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:2a:00.3-usb-0:1:1.0"
		sysfs.path = "/devices/pci0000:00/0000:00:01.2/0000:20:00.0/0000:21:08.0/0000:2a:00.3/usb3/3-1/3-1:1.0/sound/card2"
		udev.id = "usb-JBL_Quantum_400_0079CM-0021088BK-00"
		device.bus = "usb"
		device.vendor.id = "0ecb"
		device.vendor.name = "JBL"
		device.product.id = "2039"
		device.product.name = "Quantum 400"
		device.serial = "JBL_Quantum_400_0079CM-0021088BK"
		device.string = "2"
		device.description = "Quantum 400"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-usb"
	profiles:
		output:analog-stereo: Analog Stereo Output (priority 6500, available: unknown)
		output:iec958-stereo: Digital Stereo (IEC958) Output (priority 5500, available: unknown)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-stereo>
	sinks:
		alsa_output.usb-JBL_Quantum_400_0079CM-0021088BK-00.analog-stereo/#0: Quantum 400 Analog Stereo
	sources:
		alsa_output.usb-JBL_Quantum_400_0079CM-0021088BK-00.analog-stereo.monitor/#0: Monitor of Quantum 400 Analog Stereo
	ports:
		analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
			properties:
				
		iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 20000 usec, available: unknown)
			properties:
				
    index: 1
	name: <alsa_card.pci-0000_2d_00.1>
	driver: <module-alsa-card.c>
	owner module: 7
	properties:
		alsa.card = "0"
		alsa.card_name = "HDA NVidia"
		alsa.long_card_name = "HDA NVidia at 0xf7080000 irq 139"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:2d:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:2d:00.1/sound/card0"
		device.bus = "pci"
		device.vendor.id = "10de"
		device.vendor.name = "NVIDIA Corporation"
		device.product.id = "10f9"
		device.product.name = "TU106 High Definition Audio Controller"
		device.string = "0"
		device.description = "TU106 High Definition Audio Controller"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: no)
		output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-stereo-extra5: Digital Stereo (HDMI 6) Output (priority 5700, available: no)
		output:hdmi-surround-extra5: Digital Surround 5.1 (HDMI 6) Output (priority 600, available: no)
		output:hdmi-surround71-extra5: Digital Surround 7.1 (HDMI 6) Output (priority 600, available: no)
		output:hdmi-stereo-extra6: Digital Stereo (HDMI 7) Output (priority 5700, available: no)
		output:hdmi-surround-extra6: Digital Surround 5.1 (HDMI 7) Output (priority 600, available: no)
		output:hdmi-surround71-extra6: Digital Surround 7.1 (HDMI 7) Output (priority 600, available: no)
		off: Off (priority 0, available: unknown)
	active profile: <off>
	ports:
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-5: HDMI / DisplayPort 6 (priority 5400, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-6: HDMI / DisplayPort 7 (priority 5300, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
    index: 2
	name: <alsa_card.pci-0000_2f_00.4>
	driver: <module-alsa-card.c>
	owner module: 8
	properties:
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xf7a00000 irq 141"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:2f:00.4"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:2f:00.4/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "1487"
		device.product.name = "Starship/Matisse HD Audio Controller (X570-A PRO motherboard)"
		device.string = "1"
		device.description = "Starship/Matisse HD Audio Controller (X570-A PRO motherboard)"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Analog Stereo Input (priority 65, available: no)
		output:analog-stereo: Analog Stereo Output (priority 6500, available: no)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: no)
		output:analog-surround-21: Analog Surround 2.1 Output (priority 1300, available: no)
		output:analog-surround-21+input:analog-stereo: Analog Surround 2.1 Output + Analog Stereo Input (priority 1365, available: no)
		output:analog-surround-40: Analog Surround 4.0 Output (priority 1200, available: no)
		output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (priority 1265, available: no)
		output:analog-surround-41: Analog Surround 4.1 Output (priority 1300, available: no)
		output:analog-surround-41+input:analog-stereo: Analog Surround 4.1 Output + Analog Stereo Input (priority 1365, available: no)
		output:analog-surround-50: Analog Surround 5.0 Output (priority 1200, available: no)
		output:analog-surround-50+input:analog-stereo: Analog Surround 5.0 Output + Analog Stereo Input (priority 1265, available: no)
		output:analog-surround-51: Analog Surround 5.1 Output (priority 1300, available: no)
		output:analog-surround-51+input:analog-stereo: Analog Surround 5.1 Output + Analog Stereo Input (priority 1365, available: no)
		output:iec958-stereo: Digital Stereo (IEC958) Output (priority 5500, available: unknown)
		output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analog Stereo Input (priority 5565, available: no)
		off: Off (priority 0, available: unknown)
	active profile: <off>
	ports:
		analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)
			properties:
				
		analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: no)
			properties:
				
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
		iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset -30000 usec, available: unknown)
			properties:
$ pacmd list-sources
2 source(s) available.
    index: 0
	name: <alsa_output.usb-JBL_Quantum_400_0079CM-0021088BK-00.analog-stereo.monitor>
	driver: <module-alsa-card.c>
	flags: DECIBEL_VOLUME LATENCY 
	state: SUSPENDED
	suspend cause: IDLE
	priority: 1040
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max rewind: 0 KiB
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	fixed latency: 99.94 ms
	monitor_of: 0
	card: 0 <alsa_card.usb-JBL_Quantum_400_0079CM-0021088BK-00>
	module: 6
	properties:
		device.description = "Monitor of Quantum 400 Analog Stereo"
		device.class = "monitor"
		alsa.card = "2"
		alsa.card_name = "Quantum 400"
		alsa.long_card_name = "JBL Quantum 400 at usb-0000:2a:00.3-1, full speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:2a:00.3-usb-0:1:1.0"
		sysfs.path = "/devices/pci0000:00/0000:00:01.2/0000:20:00.0/0000:21:08.0/0000:2a:00.3/usb3/3-1/3-1:1.0/sound/card2"
		udev.id = "usb-JBL_Quantum_400_0079CM-0021088BK-00"
		device.bus = "usb"
		device.vendor.id = "0ecb"
		device.vendor.name = "JBL"
		device.product.id = "2039"
		device.product.name = "Quantum 400"
		device.serial = "JBL_Quantum_400_0079CM-0021088BK"
		device.string = "2"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-usb"
  * index: 1
	name: <combined.monitor>
	driver: <module-combine-sink.c>
	flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE
	priority: 1000
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max rewind: 0 KiB
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 0.50 .. 200.00 ms
	monitor_of: 1
	module: 13
	properties:
		device.description = "Monitor Source of Simultaneous output to Quantum 400 Analog Stereo"
		device.class = "monitor"
		device.icon_name = "audio-input-microphone"
$ pacmd list-source-outputs
0 source output(s) available.

Offline

#4 2020-10-11 11:07:58

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,265

Re: Pulseaudio does not detect usb microphone

Mhm it does indeed not detect an input. Does

arecord -Dhw:2 test.wav

allow you to record? Maybe throw in

amixer -c2
journalctl -b --user-unit pulseaudio

Offline

#5 2020-10-11 11:39:06

kvnick
Member
Registered: 2020-10-10
Posts: 7

Re: Pulseaudio does not detect usb microphone

V1del wrote:

Mhm it does indeed not detect an input. Does

arecord -Dhw:2 test.wav

allow you to record? Maybe throw in

amixer -c2
journalctl -b --user-unit pulseaudio

So, before previous post, i removed /etc/modprobe.d/alsa-base.conf btw.

$ arecord -Dhw:2 test.wav
arecord: main:830: audio open error: No such file or directory
$ amixer -c2
Simple mixer control 'PCM',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 55
  Mono:
  Front Left: Playback 55 [100%] [5.00dB] [on]
  Front Right: Playback 55 [100%] [5.00dB] [on]
Simple mixer control 'PCM',1
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 55
  Mono:
  Front Left: Playback 30 [55%] [-20.00dB] [on]
  Front Right: Playback 30 [55%] [-20.00dB] [on]
Simple mixer control 'Headset',0
  Capabilities: cvolume cvolume-joined cswitch cswitch-joined
  Capture channels: Mono
  Limits: Capture 0 - 8960
  Mono: Capture 7680 [86%] [0.00dB] [on]
$ journalctl -b --user-unit pulseaudio
-- Logs begin at Wed 2020-10-07 00:04:54 MSK, end at Sun 2020-10-11 16:29:58 MSK. --
Oct 11 14:29:00 archlinux systemd[813]: Starting Sound Service...
Oct 11 14:29:01 archlinux pulseaudio[984]: module-combine is deprecated: Please use module-combine-sink instead of module-combine!
Oct 11 14:29:01 archlinux pulseaudio[984]: We will now load module-combine-sink. Please make sure to remove module-combine from your configuration.
Oct 11 14:29:01 archlinux systemd[813]: Started Sound Service.

Offline

#6 2020-10-11 12:06:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,265

Re: Pulseaudio does not detect usb microphone

Unless that arecord works in some form it's not surprising that pulse can't allocate a device. Let's try to be more explicit

arecord -Dfront:CARD=Q400,DEV=0 test.wav
#Maybe get some device info
sudo lsusb -v -d0ecb:2039

Offline

#7 2020-10-11 12:27:08

kvnick
Member
Registered: 2020-10-10
Posts: 7

Re: Pulseaudio does not detect usb microphone

V1del wrote:

Unless that arecord works in some form it's not surprising that pulse can't allocate a device. Let's try to be more explicit

arecord -Dfront:CARD=Q400,DEV=0 test.wav
#Maybe get some device info
sudo lsusb -v -d0ecb:2039

I have file ~/.asoundrc, may be it can help

pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}
$ arecord -Dfront:CARD=Q400,DEV=0 test.wav
arecord: main:830: audio open error: No such file or directory
$ sudo lsusb -v -d0ecb:2039
Bus 003 Device 002: ID 0ecb:2039 JBL Quantum 400
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0ecb 
  idProduct          0x2039 
  bcdDevice            0.01
  iManufacturer           1 JBL
  iProduct                2 Quantum 400
  iSerial                 3 0079CM-0021088BK
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0146
    bNumInterfaces          6
    bConfigurationValue     1
    iConfiguration          4 USB Audio Device
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      1 Control Device
      bInterfaceProtocol      0 
      iInterface             11 JBL Quantum 400 Game
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdADC               1.00
        wTotalLength       0x0028
        bInCollection           1
        baInterfaceNr(0)        1
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             1
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bNrChannels             2
        wChannelConfig     0x0003
          Left Front (L)
          Right Front (R)
        iChannelNames           0 
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                10
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                 2
        bSourceID               1
        bControlSize            1
        bmaControls(0)       0x01
          Mute Control
        bmaControls(1)       0x02
          Volume Control
        bmaControls(2)       0x02
          Volume Control
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID             3
        wTerminalType      0x0301 Speaker
        bAssocTerminal          7
        bSourceID               2
        iTerminal               0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           1
        bDelay                  3 frames
        wFormatTag         0x0001 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        48000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            9
          Transfer Type            Isochronous
          Synch Type               Adaptive
          Usage Type               Data
        wMaxPacketSize     0x00c0  1x 192 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioStreaming Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         1 Milliseconds
          wLockDelay         0x0004
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      1 Control Device
      bInterfaceProtocol      0 
      iInterface             10 JBL Quantum 400 Chat
      AudioControl Interface Descriptor:
        bLength                10
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdADC               1.00
        wTotalLength       0x004e
        bInCollection           2
        baInterfaceNr(0)        3
        baInterfaceNr(1)        4
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID            11
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bNrChannels             2
        wChannelConfig     0x0003
          Left Front (L)
          Right Front (R)
        iChannelNames           0 
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                10
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                12
        bSourceID              11
        bControlSize            1
        bmaControls(0)       0x01
          Mute Control
        bmaControls(1)       0x02
          Volume Control
        bmaControls(2)       0x02
          Volume Control
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID            13
        wTerminalType      0x0402 Headset
        bAssocTerminal          0
        bSourceID              12
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID             4
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bSourceID               5
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      5 (SELECTOR_UNIT)
        bUnitID                 5
        bNrInPins               1
        baSourceID(0)           6
        iSelector               0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                 6
        bSourceID               7
        bControlSize            1
        bmaControls(0)       0x03
          Mute Control
          Volume Control
        bmaControls(1)       0x00
        iFeature                0 
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             7
        wTerminalType      0x0402 Headset
        bAssocTerminal          3
        bNrChannels             1
        wChannelConfig     0x0001
          Left Front (L)
        iChannelNames           0 
        iTerminal               0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           4
        bDelay                  3 frames
        wFormatTag         0x0001 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        48000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            9
          Transfer Type            Isochronous
          Synch Type               Adaptive
          Usage Type               Data
        wMaxPacketSize     0x0062  1x 98 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioStreaming Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         1 Milliseconds
          wLockDelay         0x0004
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        4
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        4
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink          11
        bDelay                  3 frames
        wFormatTag         0x0001 PCM
      AudioStreaming Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             2
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            1 Discrete
        tSamFreq[ 0]        48000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            9
          Transfer Type            Isochronous
          Synch Type               Adaptive
          Usage Type               Data
        wMaxPacketSize     0x00c0  1x 192 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioStreaming Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x00
          bLockDelayUnits         1 Milliseconds
          wLockDelay         0x0004
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        5
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     251
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)

Offline

#8 2020-10-12 00:52:47

kvnick
Member
Registered: 2020-10-10
Posts: 7

Re: Pulseaudio does not detect usb microphone

There are some updates.
I figured out that i need to create custom profile for my headsets. I try to use built-in profile

/usr/share/alsa-card-profile/mixer/profile-sets/usb-gaming-headset.conf

Its works. For now i can see 2 new profiles for output devices chat and game (same on Windows 10 by default). I think this is right direction for my problem, but microphone is still hidden.

I found the similar issue.
https://gitlab.freedesktop.org/pulseaud … issues/998

Offline

#9 2020-10-12 06:33:41

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,265

Re: Pulseaudio does not detect usb microphone

Well yes, I use the same profile, but my mic works. Your mic doesn't appear to work on a kernel level and this can't be fixed just in pulse alone (... one of these commands I asked you to try should've worked for attempting to record), for a reason I'm not really sure about (... as all the general "building blocks" seem to be there).  Maybe try the LTS kernel. Do you get any kernel messages in dmesg when the opening of the device fails? search for snd-usb-audio strings

Last edited by V1del (2020-10-12 08:12:35)

Offline

#10 2020-10-12 08:59:07

kvnick
Member
Registered: 2020-10-10
Posts: 7

Re: Pulseaudio does not detect usb microphone

V1del wrote:

Well yes, I use the same profile, but my mic works. Your mic doesn't appear to work on a kernel level and this can't be fixed just in pulse alone (... one of these commands I asked you to try should've worked for attempting to record), for a reason I'm not really sure about (... as all the general "building blocks" seem to be there).  Maybe try the LTS kernel. Do you get any kernel messages in dmesg when the opening of the device fails? search for snd-usb-audio strings

What the model or vendor of your device? Just interesting.

Do you get any kernel messages in dmesg when the opening of the device fails? search for snd-usb-audio strings

[    2.499105] usbcore: registered new interface driver snd-usb-audio

But there is some error when i try to reload pulseaudio service.

Oct 12 11:13:13 archlinux systemd[809]: Starting Sound Service...
Oct 12 11:13:14 archlinux pulseaudio[974]: module-combine is deprecated: Please use module-combine-sink instead of module-combine!
Oct 12 11:13:14 archlinux pulseaudio[974]: We will now load module-combine-sink. Please make sure to remove module-combine from your configu>
Oct 12 11:13:14 archlinux systemd[809]: Started Sound Service.
Oct 12 11:29:15 archlinux pulseaudio[974]: ALSA woke us up to write new data to the device, but there was actually nothing to write.
Oct 12 11:29:15 archlinux pulseaudio[974]: Most likely this is a bug in the ALSA driver 'snd_usb_audio'. Please report this issue to the ALS>
Oct 12 11:29:15 archlinux pulseaudio[974]: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another v>
Oct 12 11:40:02 archlinux pulseaudio[974]: Failed to create sink input: sink is suspended.
Oct 12 11:40:02 archlinux systemd[809]: pulseaudio.service: Succeeded.
Oct 12 11:40:02 archlinux systemd[809]: Starting Sound Service...
Oct 12 11:40:03 archlinux pulseaudio[3418]: module-combine is deprecated: Please use module-combine-sink instead of module-combine!
Oct 12 11:40:03 archlinux pulseaudio[3418]: We will now load module-combine-sink. Please make sure to remove module-combine from your config>
Oct 12 11:40:03 archlinux systemd[809]: Started Sound Service.

Offline

#11 2020-10-12 09:21:28

progandy
Member
Registered: 2012-05-17
Posts: 5,266

Re: Pulseaudio does not detect usb microphone

Others with that headset have the same problem (there was at least review that mentioned it on amazon)

* Does it work on windows without installing a special driver?
* Does it work on android via usb?
* Maybe windows already includes a special driver or initialization profile for that device
* You'd have to find out and do the same in linux


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#12 2020-10-12 09:58:45

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,265

Re: Pulseaudio does not detect usb microphone

The error in pulse can be normal (... happened with every - 3 iirc by now - USB headset I've owned, without any obviously noticeable impact). I use an Astro gaming A50. I'd also go into a more broad direction like the suggestions by progandy. What I'm also thinking that you might be able to update the headset firmware via some utility in Windows which might fix the inability of the mic being accessed.

Offline

#13 2020-10-13 18:38:47

kvnick
Member
Registered: 2020-10-10
Posts: 7

Re: Pulseaudio does not detect usb microphone

Does it work on windows without installing a special driver?

Yes, it works without special driver on windows 10.

Does it work on android via usb?

At this moment i dont have any android device.

You'd have to find out and do the same in linux

Mmm, actually i have no idea how to get a list of existing audio profiles on windows.
Could you please share a link or something how can i check it?

Thanks.

Offline

#14 2020-10-13 19:03:17

progandy
Member
Registered: 2012-05-17
Posts: 5,266

Re: Pulseaudio does not detect usb microphone

kvnick wrote:

You'd have to find out and do the same in linux

Mmm, actually i have no idea how to get a list of existing audio profiles on windows.
Could you please share a link or something how can i check it?

I was thinking of using e.g. wireshark/usbpcap to capture the usb communication and check if windows does something different than linux here.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#15 2021-07-20 15:58:36

mikky
Member
Registered: 2021-07-20
Posts: 4

Re: Pulseaudio does not detect usb microphone

same with JBL Quantum 800. The capture device is "detected"

% arecord -l
**** List of CAPTURE Hardware Devices ****
(...)
card 2: Q800 [Quantum 800], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

but apparently doesn't populate under `/sys`:

% arecord -Dhw:2,0 /tmp/out.wav
arecord: main:831: audio open error: No such file or directory

Works on Windows 10 out of the box without special drivers.

The dongle doesn't power on on my Android OTP but it may be a Android issue - using custom rom and never tried OTP before.

One thing worth mentioning is that I did a firmware upgrade on both the dongle and the headset - no difference.

I would assume the issue is in Alsa rather than Pulse/Pipewire (tried both). Same result also on NixOS and Mint.

Offline

#16 2021-07-21 20:47:52

mikky
Member
Registered: 2021-07-20
Posts: 4

Re: Pulseaudio does not detect usb microphone

So I asked around in alsa-devel and got this answer: https://mailman.alsa-project.org/piperm … 87636.html

Building my kernel with this patch (on NixOS, my Arch box doesn't work right now). Will let you know the results and try it on Arch, too, as soon as I get a replacement PDU.

You guys can try it on your Arch boxes.

Offline

#17 2021-07-21 23:29:00

mikky
Member
Registered: 2021-07-20
Posts: 4

Re: Pulseaudio does not detect usb microphone

fyi, the patch works for me on NixOS. ymmv, especially if you use a different model - the patch in the list is specifically for Quantum 800. It's easy to update it for other models though, just change the device id to yours.

Offline

#18 2021-07-26 10:30:41

mikky
Member
Registered: 2021-07-20
Posts: 4

Re: Pulseaudio does not detect usb microphone

Offline

Board footer

Powered by FluxBB