No audio input/duplex, only output on PCM2902 USB card

Can I somehow add Analog Stereo Input configuration profile to pavucontrol for this USB sound card?

Hi. I got a condenser mic which was supposed to record a crystal clear voice but has a lot of static when connected directly to my motherboard’s sound card so I’m trying to connect it through a USB sound card it came with as it is supposed to power and amplify XLR microphones but that card doesn’t have an Analogue Stereo Input or …Duplex in pavucontrol's Configuration tab, there’s only:

  • Analog Stereo Output …and
  • Off
❯ lsusb
Bus 001 Device 007: ID 08bb:2902 Texas Instruments PCM2902 Audio Codec

It has a 2 physical female jack sockets labelled as microphone and headphones, journalctl says it’s an input device and arecord -l shows it’s a capture hardware device, moreover amixer -c2 said the microphone is [on] but [0%] [0.00dB] so I’ve increased mic’s volume to 75% with alsamixer but it still doesn’t show in pavucontrol as input device, there’s no input profile in Configuration tab and arecord -D"hw:2,0" -fs16_le foo.wav records silence.

journalctl
Nov 16 22:04:16 blackshit kernel: usb 1-9: new full-speed USB device number 7 using xhci_hcd
Nov 16 22:04:16 blackshit kernel: usb 1-9: New USB device found, idVendor=08bb, idProduct=2902, bcdDevice= 1.00
Nov 16 22:04:16 blackshit kernel: usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Nov 16 22:04:16 blackshit kernel: usb 1-9: Product: USB PnP Sound Device
Nov 16 22:04:16 blackshit kernel: usb 1-9: Manufacturer: C-Media Electronics Inc.      
Nov 16 22:04:16 blackshit kernel: input: C-Media Electronics Inc.       USB PnP Sound Device as /devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.3/0003:08BB:2902.0018/input/input31
Nov 16 22:04:16 blackshit kernel: hid-generic 0003:08BB:2902.0018: input,hidraw8: USB HID v1.00 Device [C-Media Electronics Inc.       USB PnP Sound Device] on usb-0000:00:14.0-9/input3
arecord -l
❯ arecord -l
**** List of CAPTURE Hardware Devices ****
[...]
card 2: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
amixer -c2
❯ amixer -c2
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 151
  Mono:
  Front Left: Playback 0 [0%] [-28.37dB] [off]
  Front Right: Playback 0 [0%] [-28.37dB] [off]
Simple mixer control 'Mic',0
  Capabilities: pvolume pvolume-joined cvolume cvolume-joined pswitch pswitch-joined cswitch cswitch-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: Playback 0 - 127 Capture 0 - 16
  Mono: Playback 0 [0%] [0.00dB] [off] Capture 12 [75%] [17.85dB] [on]
Simple mixer control 'Auto Gain Control',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

I got another USB sound card from a different shop and it turned out to be… exactly the same device/chipset/everything in a fancier cover. Both behave exactly the same and in both cases output works but not the input so I don’t think it’s broken hardware issue.

While searching for possible solutions I’ve encountered this drop-in PulseAudio replacement called PipeWire. Should I try to install manjaro-pipewire or is it more probable to solve this issue with manjaro-pulse?

inxi
inxi --admin --verbosity=7 --filter --no-host --width
System:
  Kernel: 5.10.70-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
  root=UUID=f54aa98f-0686-45c4-8bc3-6d95ca77e027 rw acpi_osi=Linux
  intel_pstate=skylake_hwp enable_rc6=1 enable_fbc=1 enable_psr=1
  disable_power_well=0 semaphores=1 quiet
  Desktop: i3 4.19.1 info: i3bar vt: 7 dm: LightDM 1.30.0
  Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: MSI model: Z170A SLI PLUS (MS-7998) v: 1.0
  serial: <filter> UEFI-[Legacy]: American Megatrends v: 1.10 date: 12/16/2015
Battery:
  Message: No system battery data found. Is one present?
Memory:
  RAM: total: 15.59 GiB used: 3.81 GiB (24.4%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: Quad Core model: Intel Core i5-6600K bits: 64 type: MCP
  arch: Skylake-S family: 6 model-id: 5E (94) stepping: 3 microcode: EA cache:
  L2: 6 MiB bogomips: 28009
  Speed: 800 MHz min/max: 800/3900 MHz Core speeds (MHz): 1: 800 2: 800 3: 800
  4: 800
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon art
  avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid
  cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts ept ept_ad erms est f16c
  flexpriority flush_l1d fma fpu fsgsbase fxsr hle ht hwp hwp_act_window
  hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid invpcid_single lahf_lm lm
  mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat
  pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts
  rdrand rdseed rdtscp rep_good rtm sdbg sep smap smep ss ssbd sse sse2 sse4_1
  sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust
  tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt
  xsaves xtopology xtpr
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled
  Type: mds mitigation: Clear CPU buffers; SMT disabled
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass
  mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
  mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
  IBRS_FW, STIBP: disabled, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: Clear CPU buffers; SMT disabled
Graphics:
  Device-1: NVIDIA GP104 [GeForce GTX 1070] vendor: ASUSTeK driver: nvidia
  v: 470.63.01 alternate: nouveau,nvidia_drm bus-ID: 01:00.0
  chip-ID: 10de:1b81 class-ID: 0300
  Display: x11 server: X.Org 1.20.13 compositor: picom v: git-fd6ff driver:
  loaded: nvidia display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x2160 s-dpi: 110 s-size: 887x494mm (34.9x19.4")
  s-diag: 1015mm (40")
  Monitor-1: DP-2 res: 3840x2160 hz: 60 dpi: 111 size: 878x485mm (34.6x19.1")
  diag: 1003mm (39.5")
  OpenGL: renderer: NVIDIA GeForce GTX 1070/PCIe/SSE2
  v: 4.6.0 NVIDIA 470.63.01 direct render: Yes
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio
  vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus-ID: 00:1f.3
  chip-ID: 8086:a170 class-ID: 0403
  Device-2: NVIDIA GP104 High Definition Audio vendor: ASUSTeK
  driver: snd_hda_intel v: kernel bus-ID: 01:00.1 chip-ID: 10de:10f0
  class-ID: 0403
  Device-3: Texas Instruments PCM2902 Audio Codec type: USB
  driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-9:2 chip-ID: 08bb:2902
  class-ID: 0300
  Sound Server-1: ALSA v: k5.10.70-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.19 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.38 running: no
Network:
  Device-1: Intel Ethernet I219-V vendor: Micro-Star MSI driver: e1000e
  v: kernel port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15b8 class-ID: 0200
  IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
  broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Qualcomm Atheros AR93xx Wireless Network Adapter driver: ath9k
  v: kernel bus-ID: 03:00.0 chip-ID: 168c:0030 class-ID: 0280
  IF: wlp3s0 state: down mac: <filter>
  WAN IP: <filter>
Bluetooth:
  Message: No bluetooth data found.
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 1.93 TiB used: 1.14 TiB (59.1%)
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 840 EVO 120GB
  size: 111.79 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
  type: SSD serial: <filter> rev: BB6Q scheme: MBR
  SMART Message: Unknown smartctl error. Unable to generate data.
  ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital model: WD20EFRX-68AX9N0
  size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
  type: N/A serial: <filter> rev: 0A80 scheme: GPT
  SMART Message: Unknown smartctl error. Unable to generate data.
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 103.79 GiB size: 103.74 GiB (99.95%)
  used: 29.2 GiB (28.1%) fs: xfs block-size: 512 B dev: /dev/sda1 maj-min: 8:1
  label: N/A uuid: f54aa98f-0686-45c4-8bc3-6d95ca77e027
  ID-2: /home raw-size: 1.82 TiB size: 1.79 TiB (98.42%)
  used: 1.11 TiB (62.1%) fs: ext4 block-size: 4096 B dev: /dev/sdb1
  maj-min: 8:17 label: Storage uuid: 9860f9db-3c65-4f5e-965b-de7f94e746d4
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/sda2 maj-min: 8:2 size: 8 GiB fs: xfs label: N/A
  uuid: 15b83ec7-a8d2-4299-b1b1-f1a3b9eff12c
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 16 rev: 2.0
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-9:2 info: Texas Instruments PCM2902 Audio Codec type: Audio,HID
  driver: hid-generic,snd-usb-audio,usbhid interfaces: 4 rev: 1.1
  speed: 12 Mb/s power: 100mA chip-ID: 08bb:2902 class-ID: 0300
  Device-2: 1-13:4
  info: Xenta 2.4GHz Wireless Reciever (Mini Keyboard & Mouse)
  type: Keyboard,Mouse,HID driver: hid-generic,usbhid interfaces: 3 rev: 1.1
  speed: 12 Mb/s power: 100mA chip-ID: 1d57:fa20 class-ID: 0300
  Device-3: 1-14:5 info: Valve Wireless Steam Controller type: Keyboard,HID
  driver: hid-steam,usbhid interfaces: 5 rev: 2.0 speed: 12 Mb/s power: 100mA
  chip-ID: 28de:1142 class-ID: 0300
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 10 rev: 3.0 speed: 5 Gb/s
  chip-ID: 1d6b:0003 class-ID: 0900
  Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-4: 4-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s
  chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 46.0 C mobo: 38.0 C gpu: nvidia temp: 58 C
  Fan Speeds (RPM): cpu: 0 fan-2: 311 fan-3: 808 fan-4: 0 fan-5: 0 gpu: nvidia
  fan: 37%
Info:
  Processes: 198 Uptime: 1h 20m wakeups: 0 Init: systemd v: 249
  tool: systemctl Compilers: gcc: 11.1.0 clang: 12.0.1 Packages: pacman: 1573
  lib: 395 Shell: Zsh v: 5.8 running-in: tmux: inxi: 3.3.08
pacmd list-cards
❯ pacmd list-cards
3 card(s) available.
[...]
    index: 4
	name: <alsa_card.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00>
	driver: <module-alsa-card.c>
	owner module: 28
	properties:
		alsa.card = "2"
		alsa.card_name = "USB PnP Sound Device"
		alsa.long_card_name = "C-Media Electronics Inc. USB PnP Sound Device at usb-0000:00:14.0-9, full speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:00:14.0-usb-0:9:1.0"
		sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/sound/card2"
		udev.id = "usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00"
		device.bus = "usb"
		device.vendor.id = "08bb"
		device.vendor.name = "Texas Instruments"
		device.product.id = "2902"
		device.product.name = "PCM2902 Audio Codec"
		device.serial = "C-Media_Electronics_Inc._USB_PnP_Sound_Device"
		device.string = "2"
		device.description = "PCM2902 Audio Codec"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-usb"
	profiles:
		output:analog-stereo-output: Analog Stereo Output (priority 5000, available: unknown)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-stereo-output>
	sinks:
		alsa_output.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00.analog-stereo-output/#7: PCM2902 Audio Codec Analog Stereo
	sources:
		alsa_output.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00.analog-stereo-output.monitor/#9: Monitor of PCM2902 Audio Codec Analog Stereo
	ports:
		analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
			properties:
			
pacmd list-sources
❯ pacmd list-sources
6 source(s) available.
    index: 9
	name: <alsa_output.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00.analog-stereo-output.monitor>
	driver: <module-alsa-card.c>
	flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: IDLE
	suspend cause: (none)
	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: 344 KiB
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 2000.00 ms; range is 0.50 .. 2000.00 ms
	monitor_of: 7
	card: 4 <alsa_card.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00>
	module: 28
	properties:
		device.description = "Monitor of PCM2902 Audio Codec Analog Stereo"
		device.class = "monitor"
		alsa.card = "2"
		alsa.card_name = "USB PnP Sound Device"
		alsa.long_card_name = "C-Media Electronics Inc. USB PnP Sound Device at usb-0000:00:14.0-9, full speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:00:14.0-usb-0:9:1.0"
		sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/sound/card2"
		udev.id = "usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00"
		device.bus = "usb"
		device.vendor.id = "08bb"
		device.vendor.name = "Texas Instruments"
		device.product.id = "2902"
		device.product.name = "PCM2902 Audio Codec"
		device.serial = "C-Media_Electronics_Inc._USB_PnP_Sound_Device"
		device.string = "2"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-usb"

Ended up buying a $10 phantom power supply - works great. I’m yet to try to replace PulseAudio with PipeWire, didn’t manage to squeeze it in on this weekend’s TODO list but maybe the next one.