You are not logged in.
I'm using pulseaudio 13.0 and only internal, built-in microphone. The recording quality is fine when using ffmpeg, but in all browsers I tested the recording not only has more noise/crackling than a broken TV antenna, but is also so quiet that I have to set input volume to 150% in pulsemixer to be able to hear just how terrible it is.
After reading on different forums, I tried setting
load-module module-udev-detect tsched=0
in /etc/pulse/default.pa and also
alternate-sample-rate = 44100
in daemon.conf, but to no avail.
lspci -v output:
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 08)
Subsystem: Lenovo Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers
Flags: bus master, fast devsel, latency 0
Capabilities: <access denied>
Kernel driver in use: skl_uncore
00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07) (prog-if 00 [VGA controller])
Subsystem: Lenovo Skylake GT2 [HD Graphics 520]
Flags: bus master, fast devsel, latency 0, IRQ 130
Memory at 92000000 (64-bit, non-prefetchable) [size=16M]
Memory at a0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 5000 [size=64]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21) (prog-if 30 [XHCI])
Subsystem: Lenovo Sunrise Point-LP USB 3.0 xHCI Controller
Flags: bus master, medium devsel, latency 0, IRQ 125
Memory at 94300000 (64-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
Subsystem: Lenovo Sunrise Point-LP Thermal subsystem
Flags: bus master, fast devsel, latency 0, IRQ 18
Memory at 9432a000 (64-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: intel_pch_thermal
Kernel modules: intel_pch_thermal
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
Subsystem: Lenovo Sunrise Point-LP CSME HECI
Flags: bus master, fast devsel, latency 0, IRQ 127
Memory at 9432b000 (64-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: mei_me
Kernel modules: mei_me
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21) (prog-if 01 [AHCI 1.0])
Subsystem: Lenovo Sunrise Point-LP SATA Controller [AHCI mode]
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 126
Memory at 94328000 (32-bit, non-prefetchable) [size=8K]
Memory at 9432e000 (32-bit, non-prefetchable) [size=256]
I/O ports at 5080 [size=8]
I/O ports at 5088 [size=4]
I/O ports at 5060 [size=32]
Memory at 9432c000 (32-bit, non-prefetchable) [size=2K]
Capabilities: <access denied>
Kernel driver in use: ahci
Kernel modules: ahci
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 122
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 00004000-00004fff [size=4K]
Memory behind bridge: 94200000-942fffff [size=1M]
Prefetchable memory behind bridge: None
Capabilities: <access denied>
Kernel driver in use: pcieport
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 123
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: None
Memory behind bridge: 94000000-941fffff [size=2M]
Prefetchable memory behind bridge: None
Capabilities: <access denied>
Kernel driver in use: pcieport
00:1d.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #9 (rev f1) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 124
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
I/O behind bridge: 00003000-00003fff [size=4K]
Memory behind bridge: 93000000-93ffffff [size=16M]
Prefetchable memory behind bridge: 0000000080000000-0000000091ffffff [size=288M]
Capabilities: <access denied>
Kernel driver in use: pcieport
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
Subsystem: Lenovo Sunrise Point-LP LPC Controller
Flags: bus master, medium devsel, latency 0
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
Subsystem: Lenovo Sunrise Point-LP PMC
Flags: bus master, fast devsel, latency 0
Memory at 94324000 (32-bit, non-prefetchable) [size=16K]
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
Subsystem: Lenovo Sunrise Point-LP HD Audio
Flags: bus master, fast devsel, latency 32, IRQ 131
Memory at 94320000 (64-bit, non-prefetchable) [size=16K]
Memory at 94310000 (64-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
Subsystem: Lenovo Sunrise Point-LP SMBus
Flags: medium devsel, IRQ 16
Memory at 9432d000 (64-bit, non-prefetchable) [size=256]
I/O ports at 5040 [size=32]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
Flags: bus master, fast devsel, latency 0, IRQ 16
I/O ports at 4000 [size=256]
Memory at 94204000 (64-bit, non-prefetchable) [size=4K]
Memory at 94200000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: r8169
Kernel modules: r8169
02:00.0 Network controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 30)
Subsystem: Lenovo QCA9377 802.11ac Wireless Network Adapter
Flags: bus master, fast devsel, latency 0, IRQ 132
Memory at 94000000 (64-bit, non-prefetchable) [size=2M]
Capabilities: <access denied>
Kernel driver in use: ath10k_pci
Kernel modules: ath10k_pci
03:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 920MX] (rev a2)
Subsystem: Lenovo GM108M [GeForce 920MX]
Flags: bus master, fast devsel, latency 0, IRQ 129
Memory at 93000000 (32-bit, non-prefetchable) [size=16M]
Memory at 80000000 (64-bit, prefetchable) [size=256M]
Memory at 90000000 (64-bit, prefetchable) [size=32M]
I/O ports at 3000 [size=128]
Expansion ROM at <ignored> [disabled]
Capabilities: <access denied>
Kernel driver in use: nouveau
Kernel modules: nouveau
Any ideas?
Offline
Revert these two config changes they are often misguided and break a lot of unrelated things.
Setting the recording to 150% will naturally introduce clipping there isn't much way around that, you should never need to go that far. After having reverted those changes post during a recording attempt:
sudo fuser -v /dev/snd/*
amixer -c0
pacmd list-sources
pacmd list-source-outputs
. Which pages are you using to test this?
Last edited by V1del (2020-01-21 13:52:50)
Offline
Tested in Chromium and Firefox on various websites, all give the same result
sudo fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/controlC0: m 49432 F.... pulseaudio
/dev/snd/pcmC0D0c: m 49432 F...m pulseaudio
/dev/snd/pcmC0D0p: m 49432 F...m pulseaudio
amixer -c0
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 74
Mono: Playback 71 [96%] [-3.00dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 74
Mono:
Front Left: Playback 0 [0%] [-74.00dB] [off]
Front Right: Playback 0 [0%] [-74.00dB] [off]
Simple mixer control 'Speaker',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 74
Mono:
Front Left: Playback 74 [100%] [0.00dB] [on]
Front Right: Playback 74 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 253 [99%] [-0.40dB]
Front Right: Playback 253 [99%] [-0.40dB]
Simple mixer control 'Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'IEC958',1
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',2
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',3
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',4
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Beep',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 7
Mono: Playback 5 [71%] [-8.00dB] [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 80
Front Left: Capture 80 [100%] [6.00dB] [on]
Front Right: Capture 80 [100%] [6.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
Capabilities: enum
Items: 'Disabled' 'Enabled'
Item0: 'Enabled'
Simple mixer control 'Digital',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 120
Front Left: Capture 60 [50%] [0.00dB]
Front Right: Capture 60 [50%] [0.00dB]
Simple mixer control 'Internal Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 3 [100%] [36.00dB]
Front Right: 3 [100%] [36.00dB]
pacmd list-sources
2 source(s) available.
index: 0
name: <alsa_output.pci-0000_00_1f.3.analog-stereo.monitor>
driver: <module-alsa-card.c>
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 1030
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
configured latency: 0.00 ms; range is 0.50 .. 1837.50 ms
monitor_of: 0
card: 0 <alsa_card.pci-0000_00_1f.3>
module: 6
properties:
device.description = "Monitor of Built-in Audio Analog Stereo"
device.class = "monitor"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x94320000 irq 131"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1f.3"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "9d70"
device.product.name = "Sunrise Point-LP HD Audio"
device.form_factor = "internal"
device.string = "0"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
* index: 1
name: <alsa_input.pci-0000_00_1f.3.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause: (none)
priority: 9039
volume: front-left: 65535 / 100% / -0.00 dB, front-right: 65535 / 100% / -0.00 dB
balance 0.00
base volume: 13076 / 20% / -42.00 dB
volume steps: 65537
muted: no
current latency: 0.82 ms
max rewind: 0 KiB
sample spec: s16le 2ch 48000Hz
channel map: front-left,front-right
Stereo
used by: 1
linked by: 1
configured latency: 10.00 ms; range is 0.50 .. 1837.50 ms
card: 0 <alsa_card.pci-0000_00_1f.3>
module: 6
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "CX20751/2 Analog"
alsa.id = "CX20751/2 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x94320000 irq 131"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1f.3"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "9d70"
device.product.name = "Sunrise Point-LP HD Audio"
device.form_factor = "internal"
device.string = "front:0"
device.buffering.buffer_size = "352800"
device.buffering.fragment_size = "176400"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Built-in Audio Analog Stereo"
alsa.mixer_name = "Conexant CX20751/2"
alsa.components = "HDA:14f1510f,17aa3828,00100100 HDA:80862809,80860101,00100000"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
properties:
device.icon_name = "audio-input-microphone"
analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-input-microphone"
active port: <analog-input-internal-mic>
pacmd list-source-outputs
1 source output(s) available.
index: 2
driver: <protocol-native.c>
flags:
state: RUNNING
source: 1 <alsa_input.pci-0000_00_1f.3.analog-stereo>
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
muted: no
current latency: 0.00 ms
requested latency: 10.00 ms
sample spec: s16le 2ch 48000Hz
channel map: front-left,front-right
Stereo
resample method: (null)
owner module: 11
client: 14 <ALSA plug-in [chromium]>
properties:
media.name = "ALSA Capture"
application.name = "ALSA plug-in [chromium]"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
application.process.id = "20749"
application.process.user = "m"
application.process.host = "ciek"
application.process.binary = "chromium"
application.language = "en_US.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "b65d937afc7c4958965c8419ba153253"
application.process.session_id = "1"
application.icon_name = "chromium"
module-stream-restore.id = "source-output-by-application-name:ALSA plug-in [chromium]"
Offline
These are unreasonable latency targets. Does
pacmd set-port-latency-offset alsa_input.pci-0000_00_1f.3.analog-stereo analog-input-internal-mic 20000
help?
But much more intriguing, why is that using ALSA for recording? Did configure something here, environment variables, custom library path? What's your /etc/asound.conf, .asoundrc and maybe
pacman -Qkk pulseaudio
Offline
pacmd set-port-latency-offset alsa_input.pci-0000_00_1f.3.analog-stereo analog-input-internal-mic 20000
returns "No card found by this name or index."
I don't have .asoundrc in $HOME and /etc/asound.conf is
# Use PulseAudio by default
pcm.!default {
type pulse
fallback "sysdefault"
hint {
show on
description "Default ALSA Output (currently PulseAudio Sound Server)"
}
}
ctl.!default {
type pulse
fallback "sysdefault"
}
# vim:set ft=alsaconf:
And pacman -Qkk pulseaudio
backup file: pulseaudio: /etc/pulse/daemon.conf (Modification time mismatch)
backup file: pulseaudio: /etc/pulse/default.pa (Modification time mismatch)
pulseaudio: 344 total files, 0 altered files
Last edited by maciekcube (2020-01-21 14:30:23)
Offline
Try to use PulseEffects to send input audio stream to browsers, maybe you can solve the issue using some plugins like compressor or maximizer.
Offline
Try to use PulseEffects to send input audio stream to browsers, maybe you can solve the issue using some plugins like compressor or maximizer.
Send input stream to the browser? The browser is receiving the input, it's just that perhaps some post processing is messing it up. And after tinkering with some plugins I can make the volume reasonable, but the noise gets even worse.
But much more intriguing, why is that using ALSA for recording?
What should be used? Pulse Audio? I tried recording sound with ffmpeg using both '-f alsa' and '-f pulse' and they both work fine, so I'm not sure if that could be the issue. Is there any way to change how firefox/chromium handles the input?
Last edited by maciekcube (2020-01-22 12:05:17)
Offline
Yes I'd expect them both to natively use pulse for recording and not opt for an ALSA bridge (but I'm going to double check this on my system when I'm home, not on my Arch atm). Can you, for comparison, repost the source-outputs command with these two ffmpeg cases?
FWIW for my previous command:
pacmd set-port-latency-offset alsa_input.pci-0000_00_1f.3 analog-input-internal-mic 20000
should work instead.
Regarding the pulse effects suggestion, my theory is that it isn't actually a general problem that the signal would be low quality in general, it simply requests information too fast 0.8 ms latency is insane and not realistically reachable. you should at least have like 10 or so. If the signal comes into pulse effects at that same rate no amount of mucking with filters will help here.
Offline
pacmd set-port-latency-offset alsa_input.pci-0000_00_1f.3 analog-input-internal-mic 20000
Oh, wait, the first command (with a .analog-stereo) worked now. It says "You need to specify a latency offset." What should I set it to?
Edit: now it's not working again. I'll do some more testing.
analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
Why is the available field "unknown"?
Edit2: I tried "0" instead of the "human readable name"
pacmd set-port-latency-offset 0 analog-input-internal-mic 20000
and the command worked. list-sources says that current latency is 20.43 ms, but the sound is still shit
ffmpeg -f alsa -i default test.ogg:
1 source output(s) available.
index: 35
driver: <protocol-native.c>
flags:
state: RUNNING
source: 1 <alsa_input.pci-0000_00_1f.3.analog-stereo>
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
muted: no
current latency: 0.00 ms
requested latency: 2.67 ms
sample spec: s16le 2ch 48000Hz
channel map: front-left,front-right
Stereo
resample method: (null)
owner module: 11
client: 354 <ALSA plug-in [ffmpeg]>
properties:
media.name = "ALSA Capture"
application.name = "ALSA plug-in [ffmpeg]"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
application.process.id = "40900"
application.process.user = "m"
application.process.host = "ciek"
application.process.binary = "ffmpeg"
application.language = "C"
window.x11.display = ":0"
application.process.machine_id = "b65d937afc7c4958965c8419ba153253"
application.process.session_id = "1"
module-stream-restore.id = "source-output-by-application-name:ALSA plug-in [ffmpeg]"
ffmpeg -f pulse -i default test.ogg:
1 source output(s) available.
index: 36
driver: <protocol-native.c>
flags:
state: RUNNING
source: 1 <alsa_input.pci-0000_00_1f.3.analog-stereo>
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
muted: no
current latency: 0.00 ms
requested latency: 1837.50 ms
sample spec: s16le 2ch 48000Hz
channel map: front-left,front-right
Stereo
resample method: (null)
owner module: 11
client: 378 <Lavf58.29.100>
properties:
media.name = "record"
application.name = "Lavf58.29.100"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
application.process.id = "41278"
application.process.user = "m"
application.process.host = "ciek"
application.process.binary = "ffmpeg"
application.language = "C"
window.x11.display = ":0"
application.process.machine_id = "b65d937afc7c4958965c8419ba153253"
application.process.session_id = "1"
module-stream-restore.id = "source-output-by-application-name:Lavf58.29.100"
Last edited by maciekcube (2020-01-22 13:02:54)
Offline
The 20000 should set a latency offset, from the list-sources the line
analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
should read 20 usec on the offset param (maybe I'm also stupid and the interpreted value is already in ms in which case you will want to specify 20 and not 20000 on invocation)
I find it slightly weird that only the requested latency is shown here and 0 for the current latency, so you might have to recheck with list-sources as well, the latency there should be in a more sensible range than < 1ms
Offline
After running
pacmd set-port-latency-offset 0 analog-input-internal-mic 20000
The output is
analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 20000 usec, available: unknown)
but the sound quality is the same. 20000, 20 and even 2000000 don't make any difference
Also, running pacmd list-source-outpus shows
current latency: 0.00 ms
requested latency: 10.00 ms
for browser, for ffmpeg with alsa it's 2.67ms requested and 0 current and for ffmpeg with pulse it 1837.5ms requested and 0 current, but when recording with ffmpeg the quality is fine.
Last edited by maciekcube (2020-01-22 13:12:25)
Offline
Send input stream to the browser? The browser is receiving the input, it's just that perhaps some post processing is messing it up. And after tinkering with some plugins I can make the volume reasonable, but the noise gets even worse.
Which plugin are you tinkering?
Maybe it's something wrong inside the browser, which browser did you use? Chromium? Firefox?
Anyway, if it's something inside the browser that you can't change, you can use pulseeffects to adjust the stream before sending it to the browser. Just give it a try.
What should be used? Pulse Audio? I tried recording sound with ffmpeg using both '-f alsa' and '-f pulse' and they both work fine, so I'm not sure if that could be the issue. Is there any way to change how firefox/chromium handles the input?
If you installed pulseaudio, you have to use pulseaudio because it is managing alsa to redirect the audio stream from/to alsa device inside the kernel.
For input stream is: microphone >> alsa >> pulse >> browser
If you install pulseeffects: microphone >> alsa >> pulse >> pulseeffects >> browser
Last edited by digitalone (2020-01-22 15:14:00)
Offline
Done some testing, I've used https://online-voice-recorder.com/ for this and my outputs are
* index: 1
name: <alsa_input.usb-Astro_Gaming_Astro_A50-00.multichannel-input>
driver: <module-alsa-card.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause: (none)
priority: 9040
volume: mono: 65536 / 100% / 0.00 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 2.49 ms
max rewind: 0 KiB
sample spec: s16le 1ch 16000Hz
channel map: mono
Mono
used by: 1
linked by: 1
configured latency: 10.00 ms; range is 0.50 .. 2000.00 ms
card: 1 <alsa_card.usb-Astro_Gaming_Astro_A50-00>
module: 7
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "USB Audio"
alsa.id = "USB Audio"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "Astro A50"
alsa.long_card_name = "Astro Gaming Astro A50 at usb-0000:00:14.0-3.1.3, full speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:00:14.0-usb-0:3.1.3:1.0"
sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1.3/1-3.1.3:1.0/sound/card1"
udev.id = "usb-Astro_Gaming_Astro_A50-00"
device.bus = "usb"
device.vendor.id = "9886"
device.vendor.name = "Astro Gaming"
device.product.id = "002c"
device.product.name = "Astro A50"
device.serial = "Astro_Gaming_Astro_A50"
device.string = "hw:1"
device.buffering.buffer_size = "64000"
device.buffering.fragment_size = "32000"
device.access_mode = "mmap+timer"
device.profile.name = "multichannel-input"
device.profile.description = "Mehrkanal"
device.description = "Astro A50 Mehrkanal"
alsa.mixer_name = "USB Mixer"
alsa.components = "USB9886:002c"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-usb"
ports:
multichannel-input: Mehrkanaleingang (priority 0, latency offset 0 usec, available: unknown)
properties:
active port: <multichannel-input>
...
1 source output(s) available.
index: 0
driver: <protocol-native.c>
flags: START_CORKED
state: RUNNING
source: 1 <alsa_input.usb-Astro_Gaming_Astro_A50-00.multichannel-input>
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
muted: no
current latency: 0.00 ms
requested latency: 10.00 ms
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
resample method: speex-float-5
owner module: 10
client: 14 <Chrome input>
properties:
application.icon_name = "chromium-browser"
media.name = "RecordStream"
application.name = "Chrome input"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
application.process.id = "2276"
application.process.user = "videl"
application.process.host = "arch-videl"
application.process.binary = "chromium"
application.language = "de_CH.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "ef708790c5d340338fecf6c8033cfd8e"
application.process.session_id = "2"
module-stream-restore.id = "source-output-by-application-name:Chrome input"
works fine here, so it seems the latency isn't as important as I initially assumed, leaves the mystery as to why it uses the ALSA plugin for recording, something I'm also noticing, though this would be weird if it didn't affect ffmpeg as well is that your Mic Boost is quite high, having that on level three can easily and quickly lead to distortions.
For figuring out why it's using ALSA instead of the native pulse, try installing strace and run
strace chromium 2>&1 | grep -E 'pulse|alsa|asound'
Offline
Well, I tried lowering Mic Boost, and all the difference is that it's quieter when recording with ffmpeg and not audible in browser.
Output of strace chromium 2>&1 | grep -E 'pulse|alsa|asound':
openat(AT_FDCWD, "/usr/lib/libasound.so.2", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib/libpulse.so.0", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib/pulseaudio/tls/haswell/x86_64/libpulsecommon-13.0.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/pulseaudio/tls/haswell/x86_64", 0x7fff9ccb6990) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/pulseaudio/tls/haswell/libpulsecommon-13.0.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/pulseaudio/tls/haswell", 0x7fff9ccb6990) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/pulseaudio/tls/x86_64/libpulsecommon-13.0.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/pulseaudio/tls/x86_64", 0x7fff9ccb6990) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/pulseaudio/tls/libpulsecommon-13.0.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/pulseaudio/tls", 0x7fff9ccb6990) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/pulseaudio/haswell/x86_64/libpulsecommon-13.0.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/pulseaudio/haswell/x86_64", 0x7fff9ccb6990) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/pulseaudio/haswell/libpulsecommon-13.0.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/pulseaudio/haswell", 0x7fff9ccb6990) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/pulseaudio/x86_64/libpulsecommon-13.0.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/pulseaudio/x86_64", 0x7fff9ccb6990) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/pulseaudio/libpulsecommon-13.0.so", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib/pulseaudio/libsndfile.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/pulseaudio/libasyncns.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
So no trace (hehe) of alsa
Offline
Alright, I decided to revive this thread, as I did a bit more research on it.
II tested the mic on two sites - SpeakPipe and Online Voice Recorder and two browsers - Chromium and Firefox, while comparing the output of "pacmd list-source-outputs"
In Chromium none of those work, and in Firefox the SpeakPipe works perfectly - clear, high quality sound, while the other is broken just as in Chormium.
The only fields that are different are "requested latency" and "resamaple method" - the latter for Firefox says "copy" and for Chromium is null.
So I tried manually forcing resampling method by setting it in /etc/pulse/daemon.conf, but for some reason it appears to have no impact on the resample method used in the browser.
What is even more surprising is that now, no browser uses ALSA as they used to 2 months ago, even though I didn't change anything in the meantime and Chromium doesn't record any input as if it didn't detect the mic (before it did record, but it was super quiet and low aulity)
pacmd list-source-outpus fir Firefox and Chromium:
1 source output(s) available.
index: 3
driver: <protocol-native.c>
flags: START_CORKED
state: RUNNING
source: 1 <alsa_input.pci-0000_00_1f.3.analog-stereo>
volume: front-left: 41943 / 64% / -11.63 dB, front-right: 41943 / 64% / -11.63 dB
balance 0.00
muted: no
current latency: 0.00 ms
requested latency: 24.99 ms
sample spec: float32le 2ch 44100Hz
channel map: front-left,front-right
Stereo
resample method: copy
owner module: 11
client: 10 <Firefox>
properties:
media.name = "AudioCallbackDriver"
application.name = "Firefox"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
application.process.id = "2156"
application.process.user = "m"
application.process.host = "ciek"
application.process.binary = "firefox"
application.language = "en_US.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "b65d937afc7c4958965c8419ba153253"
application.process.session_id = "2"
application.icon_name = "firefox"
module-stream-restore.id = "source-output-by-application-name:Firefox"
1 source output(s) available.
index: 6
driver: <protocol-native.c>
flags: START_CORKED
state: RUNNING
source: 1 <alsa_input.pci-0000_00_1f.3.analog-stereo>
volume: front-left: 45875 / 70% / -9.29 dB, front-right: 45875 / 70% / -9.29 dB
balance 0.00
muted: no
current latency: 0.00 ms
requested latency: 10.00 ms
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
resample method: (null)
owner module: 11
client: 15 <Chrome input>
properties:
application.icon_name = "chromium-browser"
media.name = "RecordStream"
application.name = "Chrome input"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
application.process.id = "13382"
application.process.user = "m"
application.process.host = "ciek"
application.process.binary = "chromium"
application.language = "en_US.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "b65d937afc7c4958965c8419ba153253"
application.process.session_id = "2"
module-stream-restore.id = "source-output-by-application-name:Chrome input"
I'm kind of clueless - could the requested latency make the difference? Why does settings resample method manually have no effect?
What other ways are there to track the issue?
Last edited by maciekcube (2020-03-23 18:07:22)
Offline
Setting resample methods has no effect if there isn't anything to resample because the device in question supports the used sample rate natively, that's usually a good thing. null and copy both mean the same thing in this context, that they don't require to use resampling.
If you want to force a resample you'd have to set the default-sample-rate and alternate-sample-rate to something different, e.g. set both to 48000 to force use of 48000
However one difference that might indeed make a difference here is the different sample spec used. Try changing the default-sample-format = float32le . You might also want to post
pacmd list-sources
during the recording as the application streams themselves are often not telling enough.
Offline
I changed the sample format, but the output is the same
I reinstalled pulseaudio to make sure I'm using the default configuration and noticed that before reinstallation I had a client.conf file which had only one uncommented line "autospawn = no" - after reading the documentation I don't think it matters, but that's just one thing I noticed was different.
$ diff /etc/pulse/daemon.conf .config/pulse/daemon.conf
79c79
< ; default-sample-format = s16le
---
> default-sample-format = float32le
system.pa and default.pa are the same
pacmd list-sources
2 source(s) available.
index: 0
name: <alsa_output.pci-0000_00_1f.3.analog-stereo.monitor>
driver: <module-alsa-card.c>
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: IDLE
suspend cause: (none)
priority: 1030
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: 4 KiB
sample spec: s32le 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: 0
card: 0 <alsa_card.pci-0000_00_1f.3>
module: 6
properties:
device.description = "Monitor of Built-in Audio Analog Stereo"
device.class = "monitor"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x94320000 irq 130"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1f.3"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "9d70"
device.product.name = "Sunrise Point-LP HD Audio"
device.form_factor = "internal"
device.string = "0"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
* index: 1
name: <alsa_input.pci-0000_00_1f.3.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause: (none)
priority: 9039
volume: front-left: 43254 / 66% / -10.83 dB, front-right: 43254 / 66% / -10.83 dB
balance 0.00
base volume: 13076 / 20% / -42.00 dB
volume steps: 65537
muted: no
current latency: 20.69 ms
max rewind: 0 KiB
sample spec: s32le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 1
linked by: 1
configured latency: 10.00 ms; range is 0.50 .. 2000.00 ms
card: 0 <alsa_card.pci-0000_00_1f.3>
module: 6
properties:
alsa.resolution_bits = "32"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "CX20751/2 Analog"
alsa.id = "CX20751/2 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x94320000 irq 130"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1f.3"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "9d70"
device.product.name = "Sunrise Point-LP HD Audio"
device.form_factor = "internal"
device.string = "front:0"
device.buffering.buffer_size = "705600"
device.buffering.fragment_size = "352800"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Built-in Audio Analog Stereo"
alsa.mixer_name = "Conexant CX20751/2"
alsa.components = "HDA:14f1510f,17aa3828,00100100 HDA:80862809,80860101,00100000"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 20000 usec, available: unknown)
properties:
device.icon_name = "audio-input-microphone"
analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-input-microphone"
active port: <analog-input-internal-mic>
pacmd list-source-outputs
1 source output(s) available.
index: 1
driver: <protocol-native.c>
flags: START_CORKED
state: RUNNING
source: 1 <alsa_input.pci-0000_00_1f.3.analog-stereo>
volume: front-left: 45875 / 70% / -9.29 dB, front-right: 45875 / 70% / -9.29 dB
balance 0.00
muted: no
current latency: 0.00 ms
requested latency: 10.00 ms
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
resample method: copy
owner module: 11
client: 11 <Chrome input>
properties:
application.icon_name = "chromium-browser"
media.name = "RecordStream"
application.name = "Chrome input"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
application.process.id = "1939"
application.process.user = "m"
application.process.host = "ciek"
application.process.binary = "brave"
application.language = "en_US.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "b65d937afc7c4958965c8419ba153253"
application.process.session_id = "1"
module-stream-restore.id = "source-output-by-application-name:Chrome input"
Why is it still using s16le ? I restarted pulseaudio, heck I even rebooted my machine.
Last edited by maciekcube (2020-03-24 12:30:45)
Offline
The source-output (i.e. chromiums mic recording) depends on how it handles the relevant stream internally/passes it on to pulse. You won't be able to change that.
From the sources info the sample rate that the actual mic uses is
sample spec: s32le 2ch 44100Hz #It could be that the mic simply can't use fl32le and falls back to whatever's supported
and I'd suspect that to have been the same in the other run, for both firefox and chromium. I'm somewhat stumped at this point, seems like a weird interaction issue with your mic and chromium. You might want to try the sample rate adjustment to force everything to 48000 but I have my doubts that it will help.
Last edited by V1del (2020-03-24 13:29:23)
Offline
The source-output
Oh, sorry I misread that. Now testing on speakpipe it appears like Firefox is using float32le. However, on Online Voice Recorder I can barely hear anything even though Firefox is stillusing float32le.
Here's list output-source from Firefox:
Memory blocks currently allocated: 12, size: 90.7 KiB.
Memory blocks allocated during the whole lifetime: 1245083, size: 3.4 GiB.
Memory blocks imported from other processes: 6, size: 18.8 KiB.
Memory blocks exported to other processes: 0, size: 0 B.
Total sample cache size: 0 B.
Default sample spec: float32le 2ch 44100Hz
Default channel map: front-left,front-right
Default sink name: alsa_output.pci-0000_00_1f.3.analog-stereo
Default source name: alsa_input.pci-0000_00_1f.3.analog-stereo
Memory blocks of type POOL: 6 allocated/679017 accumulated.
Memory blocks of type POOL_EXTERNAL: 0 allocated/0 accumulated.
Memory blocks of type APPENDED: 0 allocated/0 accumulated.
Memory blocks of type USER: 0 allocated/0 accumulated.
Memory blocks of type FIXED: 0 allocated/431646 accumulated.
Memory blocks of type IMPORTED: 6 allocated/134420 accumulated.
25 module(s) loaded.
index: 0
name: <module-device-restore>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the volume/mute state of devices"
module.version = "13.0"
index: 1
name: <module-stream-restore>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the volume/mute/device state of streams"
module.version = "13.0"
index: 2
name: <module-card-restore>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore profile of cards"
module.version = "13.0"
index: 3
name: <module-augment-properties>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Augment the property sets of streams with additional static information"
module.version = "13.0"
index: 4
name: <module-switch-on-port-available>
argument: <>
used: -1
load once: yes
properties:
module.author = "David Henningsson"
module.description = "Switches ports and profiles when devices are plugged/unplugged"
module.version = "13.0"
index: 5
name: <module-udev-detect>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Detect available audio hardware and load matching drivers"
module.version = "13.0"
index: 6
name: <module-alsa-card>
argument: <device_id="0" name="pci-0000_00_1f.3" card_name="alsa_card.pci-0000_00_1f.3" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1">
used: 3
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "ALSA Card"
module.version = "13.0"
index: 7
name: <module-bluetooth-policy>
argument: <>
used: -1
load once: yes
properties:
module.author = "Frédéric Dalleau, Pali Rohár"
module.description = "Policy module to make using bluetooth devices out-of-the-box easier"
module.version = "13.0"
index: 8
name: <module-bluetooth-discover>
argument: <>
used: -1
load once: yes
properties:
module.author = "João Paulo Rechi Vita"
module.description = "Detect available Bluetooth daemon and load the corresponding discovery module"
module.version = "13.0"
index: 9
name: <module-bluez5-discover>
argument: <>
used: -1
load once: yes
properties:
module.author = "João Paulo Rechi Vita"
module.description = "Detect available BlueZ 5 Bluetooth audio devices and load BlueZ 5 Bluetooth audio drivers"
module.version = "13.0"
index: 10
name: <module-dbus-protocol>
argument: <>
used: -1
load once: yes
properties:
module.author = "Tanu Kaskinen"
module.description = "D-Bus interface"
module.version = "13.0"
index: 11
name: <module-native-protocol-unix>
argument: <>
used: -1
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "Native protocol (UNIX sockets)"
module.version = "13.0"
index: 12
name: <module-gsettings>
argument: <>
used: -1
load once: yes
properties:
module.author = "Sylvain Baubeau"
module.description = "GSettings Adapter"
module.version = "13.0"
index: 13
name: <module-default-device-restore>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the default sink and source"
module.version = "13.0"
index: 14
name: <module-rescue-streams>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "When a sink/source is removed, try to move its streams to the default sink/source"
module.version = "13.0"
index: 15
name: <module-always-sink>
argument: <>
used: -1
load once: yes
properties:
module.author = "Colin Guthrie"
module.description = "Always keeps at least one sink loaded even if it's a null one"
module.version = "13.0"
index: 16
name: <module-intended-roles>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically set device of streams based on intended roles of devices"
module.version = "13.0"
index: 17
name: <module-suspend-on-idle>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "When a sink/source is idle for too long, suspend it"
module.version = "13.0"
index: 18
name: <module-console-kit>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Create a client for each ConsoleKit session of this user"
module.version = "13.0"
index: 19
name: <module-systemd-login>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Create a client for each login session of this user"
module.version = "13.0"
index: 20
name: <module-position-event-sounds>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Position event sounds between L and R depending on the position on screen of the widget triggering them."
module.version = "13.0"
index: 21
name: <module-role-cork>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Mute & cork streams with certain roles while others exist"
module.version = "13.0"
index: 22
name: <module-filter-heuristics>
argument: <>
used: -1
load once: yes
properties:
module.author = "Colin Guthrie"
module.description = "Detect when various filters are desirable"
module.version = "13.0"
index: 23
name: <module-filter-apply>
argument: <>
used: -1
load once: yes
properties:
module.author = "Colin Guthrie"
module.description = "Load filter sinks automatically when needed"
module.version = "13.0"
index: 24
name: <module-cli-protocol-unix>
argument: <>
used: -1
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "Command line interface protocol (UNIX sockets)"
module.version = "13.0"
1 sink(s) available.
* index: 0
name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause: (none)
priority: 9039
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: 19.07 ms
max request: 6 KiB
max rewind: 6 KiB
monitor source: 0
sample spec: s32le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 1
linked by: 2
configured latency: 18.75 ms; range is 0.50 .. 2000.00 ms
card: 0 <alsa_card.pci-0000_00_1f.3>
module: 6
properties:
alsa.resolution_bits = "32"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "CX20751/2 Analog"
alsa.id = "CX20751/2 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x94320000 irq 130"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1f.3"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "9d70"
device.product.name = "Sunrise Point-LP HD Audio"
device.form_factor = "internal"
device.string = "front:0"
device.buffering.buffer_size = "705600"
device.buffering.fragment_size = "352800"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Built-in Audio Analog Stereo"
alsa.mixer_name = "Conexant CX20751/2"
alsa.components = "HDA:14f1510f,17aa3828,00100100 HDA:80862809,80860101,00100000"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
properties:
device.icon_name = "audio-speakers"
analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-headphones"
active port: <analog-output-speaker>
2 source(s) available.
index: 0
name: <alsa_output.pci-0000_00_1f.3.analog-stereo.monitor>
driver: <module-alsa-card.c>
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: IDLE
suspend cause: (none)
priority: 1030
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: 6 KiB
sample spec: s32le 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: 0
card: 0 <alsa_card.pci-0000_00_1f.3>
module: 6
properties:
device.description = "Monitor of Built-in Audio Analog Stereo"
device.class = "monitor"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x94320000 irq 130"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1f.3"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "9d70"
device.product.name = "Sunrise Point-LP HD Audio"
device.form_factor = "internal"
device.string = "0"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
* index: 1
name: <alsa_input.pci-0000_00_1f.3.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause: (none)
priority: 9039
volume: front-left: 65535 / 100% / -0.00 dB, front-right: 65535 / 100% / -0.00 dB
balance 0.00
base volume: 13076 / 20% / -42.00 dB
volume steps: 65537
muted: no
current latency: 24.11 ms
max rewind: 0 KiB
sample spec: s32le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 1
linked by: 1
configured latency: 24.99 ms; range is 0.50 .. 2000.00 ms
card: 0 <alsa_card.pci-0000_00_1f.3>
module: 6
properties:
alsa.resolution_bits = "32"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "CX20751/2 Analog"
alsa.id = "CX20751/2 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x94320000 irq 130"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1f.3"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "9d70"
device.product.name = "Sunrise Point-LP HD Audio"
device.form_factor = "internal"
device.string = "front:0"
device.buffering.buffer_size = "705600"
device.buffering.fragment_size = "352800"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Built-in Audio Analog Stereo"
alsa.mixer_name = "Conexant CX20751/2"
alsa.components = "HDA:14f1510f,17aa3828,00100100 HDA:80862809,80860101,00100000"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 20000 usec, available: unknown)
properties:
device.icon_name = "audio-input-microphone"
analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-input-microphone"
active port: <analog-input-internal-mic>
4 client(s) logged in.
index: 0
driver: <module-systemd-login.c>
owner module: 19
properties:
application.name = "Login Session 1"
systemd-login.session = "1"
index: 1
driver: <protocol-native.c>
owner module: 11
properties:
application.name = "Music Player Daemon"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
media.role = "music"
application.icon_name = "mpd"
application.process.id = "1056"
application.process.user = "m"
application.process.host = "ciek"
application.process.binary = "mpd"
application.language = "C"
application.process.machine_id = "b65d937afc7c4958965c8419ba153253"
application.process.session_id = "1"
index: 291
driver: <protocol-native.c>
owner module: 11
properties:
application.name = "Firefox"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
application.process.id = "122778"
application.process.user = "m"
application.process.host = "ciek"
application.process.binary = "firefox"
application.language = "en_US.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "b65d937afc7c4958965c8419ba153253"
application.process.session_id = "1"
application.icon_name = "firefox"
index: 292
driver: <cli.c>
owner module: 24
properties:
application.name = "UNIX socket client"
1 card(s) available.
index: 0
name: <alsa_card.pci-0000_00_1f.3>
driver: <module-alsa-card.c>
owner module: 6
properties:
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x94320000 irq 130"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1f.3"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "9d70"
device.product.name = "Sunrise Point-LP HD Audio"
device.form_factor = "internal"
device.string = "0"
device.description = "Built-in Audio"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
profiles:
input:analog-stereo: Analog Stereo Input (priority 65, available: unknown)
output:analog-stereo: Analog Stereo Output (priority 6500, available: unknown)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: unknown)
output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Analog Stereo Input (priority 5965, available: no)
output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
output:hdmi-surround+input:analog-stereo: Digital Surround 5.1 (HDMI) Output + Analog Stereo Input (priority 865, available: no)
output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
output:hdmi-surround71+input:analog-stereo: Digital Surround 7.1 (HDMI) Output + Analog Stereo Input (priority 865, available: no)
output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
output:hdmi-stereo-extra1+input:analog-stereo: Digital Stereo (HDMI 2) Output + Analog Stereo Input (priority 5765, available: no)
output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
output:hdmi-surround-extra1+input:analog-stereo: Digital Surround 5.1 (HDMI 2) Output + Analog Stereo Input (priority 665, available: no)
output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
output:hdmi-surround71-extra1+input:analog-stereo: Digital Surround 7.1 (HDMI 2) Output + Analog Stereo Input (priority 665, available: no)
output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
output:hdmi-stereo-extra2+input:analog-stereo: Digital Stereo (HDMI 3) Output + Analog Stereo Input (priority 5765, available: no)
output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
output:hdmi-surround-extra2+input:analog-stereo: Digital Surround 5.1 (HDMI 3) Output + Analog Stereo Input (priority 665, available: no)
output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
output:hdmi-surround71-extra2+input:analog-stereo: Digital Surround 7.1 (HDMI 3) Output + Analog Stereo Input (priority 665, available: no)
output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
output:hdmi-stereo-extra3+input:analog-stereo: Digital Stereo (HDMI 4) Output + Analog Stereo Input (priority 5765, available: no)
output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
output:hdmi-surround-extra3+input:analog-stereo: Digital Surround 5.1 (HDMI 4) Output + Analog Stereo Input (priority 665, available: no)
output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
output:hdmi-surround71-extra3+input:analog-stereo: Digital Surround 7.1 (HDMI 4) Output + Analog Stereo Input (priority 665, available: no)
output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: no)
output:hdmi-stereo-extra4+input:analog-stereo: Digital Stereo (HDMI 5) Output + Analog Stereo Input (priority 5765, available: no)
output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 600, available: no)
output:hdmi-surround-extra4+input:analog-stereo: Digital Surround 5.1 (HDMI 5) Output + Analog Stereo Input (priority 665, available: no)
output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 600, available: no)
output:hdmi-surround71-extra4+input:analog-stereo: Digital Surround 7.1 (HDMI 5) Output + Analog Stereo Input (priority 665, available: no)
off: Off (priority 0, available: unknown)
active profile: <output:analog-stereo+input:analog-stereo>
sinks:
alsa_output.pci-0000_00_1f.3.analog-stereo/#0: Built-in Audio Analog Stereo
sources:
alsa_output.pci-0000_00_1f.3.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
alsa_input.pci-0000_00_1f.3.analog-stereo/#1: Built-in Audio Analog Stereo
ports:
analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 20000 usec, available: unknown)
properties:
device.icon_name = "audio-input-microphone"
analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-input-microphone"
analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
properties:
device.icon_name = "audio-speakers"
analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-headphones"
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"
2 sink input(s) available.
index: 0
driver: <protocol-native.c>
flags:
state: CORKED
sink: 0 <alsa_output.pci-0000_00_1f.3.analog-stereo>
volume: front-left: 58982 / 90% / -2.75 dB, front-right: 58982 / 90% / -2.75 dB
balance 0.00
muted: no
current latency: 207.05 ms
requested latency: 210.00 ms
sample spec: float32le 2ch 44100Hz
channel map: front-left,front-right
Stereo
resample method: copy
module: 11
client: 1 <Music Player Daemon>
properties:
media.name = "pulse audio"
application.name = "Music Player Daemon"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
media.role = "music"
application.icon_name = "mpd"
application.process.id = "1056"
application.process.user = "m"
application.process.host = "ciek"
application.process.binary = "mpd"
application.language = "C"
application.process.machine_id = "b65d937afc7c4958965c8419ba153253"
application.process.session_id = "1"
module-stream-restore.id = "sink-input-by-media-role:music"
index: 194
driver: <protocol-native.c>
flags: START_CORKED
state: RUNNING
sink: 0 <alsa_output.pci-0000_00_1f.3.analog-stereo>
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
muted: no
current latency: 23.24 ms
requested latency: 18.75 ms
sample spec: float32le 2ch 44100Hz
channel map: front-left,front-right
Stereo
resample method: copy
module: 11
client: 291 <Firefox>
properties:
media.name = "AudioCallbackDriver"
application.name = "Firefox"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
application.process.id = "122778"
application.process.user = "m"
application.process.host = "ciek"
application.process.binary = "firefox"
application.language = "en_US.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "b65d937afc7c4958965c8419ba153253"
application.process.session_id = "1"
application.icon_name = "firefox"
module-stream-restore.id = "sink-input-by-application-name:Firefox"
1 source output(s) available.
index: 6
driver: <protocol-native.c>
flags: START_CORKED
state: RUNNING
source: 1 <alsa_input.pci-0000_00_1f.3.analog-stereo>
volume: front-left: 41943 / 64% / -11.63 dB, front-right: 41943 / 64% / -11.63 dB
balance 0.00
muted: no
current latency: 0.00 ms
requested latency: 24.99 ms
sample spec: float32le 2ch 44100Hz
channel map: front-left,front-right
Stereo
resample method: copy
owner module: 11
client: 291 <Firefox>
properties:
media.name = "AudioCallbackDriver"
application.name = "Firefox"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
application.process.id = "122778"
application.process.user = "m"
application.process.host = "ciek"
application.process.binary = "firefox"
application.language = "en_US.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "b65d937afc7c4958965c8419ba153253"
application.process.session_id = "1"
application.icon_name = "firefox"
module-stream-restore.id = "source-output-by-application-name:Firefox"
0 cache entrie(s) available.
and same from Chromium:
Memory blocks currently allocated: 8, size: 73.2 KiB.
Memory blocks allocated during the whole lifetime: 1240669, size: 3.4 GiB.
Memory blocks imported from other processes: 1, size: 4.0 KiB.
Memory blocks exported to other processes: 6, size: 5.2 KiB.
Total sample cache size: 0 B.
Default sample spec: float32le 2ch 44100Hz
Default channel map: front-left,front-right
Default sink name: alsa_output.pci-0000_00_1f.3.analog-stereo
Default source name: alsa_input.pci-0000_00_1f.3.analog-stereo
Memory blocks of type POOL: 7 allocated/676827 accumulated.
Memory blocks of type POOL_EXTERNAL: 0 allocated/0 accumulated.
Memory blocks of type APPENDED: 0 allocated/0 accumulated.
Memory blocks of type USER: 0 allocated/0 accumulated.
Memory blocks of type FIXED: 0 allocated/429967 accumulated.
Memory blocks of type IMPORTED: 1 allocated/133875 accumulated.
25 module(s) loaded.
index: 0
name: <module-device-restore>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the volume/mute state of devices"
module.version = "13.0"
index: 1
name: <module-stream-restore>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the volume/mute/device state of streams"
module.version = "13.0"
index: 2
name: <module-card-restore>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore profile of cards"
module.version = "13.0"
index: 3
name: <module-augment-properties>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Augment the property sets of streams with additional static information"
module.version = "13.0"
index: 4
name: <module-switch-on-port-available>
argument: <>
used: -1
load once: yes
properties:
module.author = "David Henningsson"
module.description = "Switches ports and profiles when devices are plugged/unplugged"
module.version = "13.0"
index: 5
name: <module-udev-detect>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Detect available audio hardware and load matching drivers"
module.version = "13.0"
index: 6
name: <module-alsa-card>
argument: <device_id="0" name="pci-0000_00_1f.3" card_name="alsa_card.pci-0000_00_1f.3" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1">
used: 3
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "ALSA Card"
module.version = "13.0"
index: 7
name: <module-bluetooth-policy>
argument: <>
used: -1
load once: yes
properties:
module.author = "Frédéric Dalleau, Pali Rohár"
module.description = "Policy module to make using bluetooth devices out-of-the-box easier"
module.version = "13.0"
index: 8
name: <module-bluetooth-discover>
argument: <>
used: -1
load once: yes
properties:
module.author = "João Paulo Rechi Vita"
module.description = "Detect available Bluetooth daemon and load the corresponding discovery module"
module.version = "13.0"
index: 9
name: <module-bluez5-discover>
argument: <>
used: -1
load once: yes
properties:
module.author = "João Paulo Rechi Vita"
module.description = "Detect available BlueZ 5 Bluetooth audio devices and load BlueZ 5 Bluetooth audio drivers"
module.version = "13.0"
index: 10
name: <module-dbus-protocol>
argument: <>
used: -1
load once: yes
properties:
module.author = "Tanu Kaskinen"
module.description = "D-Bus interface"
module.version = "13.0"
index: 11
name: <module-native-protocol-unix>
argument: <>
used: -1
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "Native protocol (UNIX sockets)"
module.version = "13.0"
index: 12
name: <module-gsettings>
argument: <>
used: -1
load once: yes
properties:
module.author = "Sylvain Baubeau"
module.description = "GSettings Adapter"
module.version = "13.0"
index: 13
name: <module-default-device-restore>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the default sink and source"
module.version = "13.0"
index: 14
name: <module-rescue-streams>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "When a sink/source is removed, try to move its streams to the default sink/source"
module.version = "13.0"
index: 15
name: <module-always-sink>
argument: <>
used: -1
load once: yes
properties:
module.author = "Colin Guthrie"
module.description = "Always keeps at least one sink loaded even if it's a null one"
module.version = "13.0"
index: 16
name: <module-intended-roles>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically set device of streams based on intended roles of devices"
module.version = "13.0"
index: 17
name: <module-suspend-on-idle>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "When a sink/source is idle for too long, suspend it"
module.version = "13.0"
index: 18
name: <module-console-kit>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Create a client for each ConsoleKit session of this user"
module.version = "13.0"
index: 19
name: <module-systemd-login>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Create a client for each login session of this user"
module.version = "13.0"
index: 20
name: <module-position-event-sounds>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Position event sounds between L and R depending on the position on screen of the widget triggering them."
module.version = "13.0"
index: 21
name: <module-role-cork>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Mute & cork streams with certain roles while others exist"
module.version = "13.0"
index: 22
name: <module-filter-heuristics>
argument: <>
used: -1
load once: yes
properties:
module.author = "Colin Guthrie"
module.description = "Detect when various filters are desirable"
module.version = "13.0"
index: 23
name: <module-filter-apply>
argument: <>
used: -1
load once: yes
properties:
module.author = "Colin Guthrie"
module.description = "Load filter sinks automatically when needed"
module.version = "13.0"
index: 24
name: <module-cli-protocol-unix>
argument: <>
used: -1
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "Command line interface protocol (UNIX sockets)"
module.version = "13.0"
1 sink(s) available.
* index: 0
name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause: (none)
priority: 9039
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: 11.76 ms
max request: 4 KiB
max rewind: 4 KiB
monitor source: 0
sample spec: s32le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 1
linked by: 2
configured latency: 11.61 ms; range is 0.50 .. 2000.00 ms
card: 0 <alsa_card.pci-0000_00_1f.3>
module: 6
properties:
alsa.resolution_bits = "32"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "CX20751/2 Analog"
alsa.id = "CX20751/2 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x94320000 irq 130"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1f.3"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "9d70"
device.product.name = "Sunrise Point-LP HD Audio"
device.form_factor = "internal"
device.string = "front:0"
device.buffering.buffer_size = "705600"
device.buffering.fragment_size = "352800"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Built-in Audio Analog Stereo"
alsa.mixer_name = "Conexant CX20751/2"
alsa.components = "HDA:14f1510f,17aa3828,00100100 HDA:80862809,80860101,00100000"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
properties:
device.icon_name = "audio-speakers"
analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-headphones"
active port: <analog-output-speaker>
2 source(s) available.
index: 0
name: <alsa_output.pci-0000_00_1f.3.analog-stereo.monitor>
driver: <module-alsa-card.c>
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: IDLE
suspend cause: (none)
priority: 1030
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: 4 KiB
sample spec: s32le 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: 0
card: 0 <alsa_card.pci-0000_00_1f.3>
module: 6
properties:
device.description = "Monitor of Built-in Audio Analog Stereo"
device.class = "monitor"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x94320000 irq 130"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1f.3"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "9d70"
device.product.name = "Sunrise Point-LP HD Audio"
device.form_factor = "internal"
device.string = "0"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
* index: 1
name: <alsa_input.pci-0000_00_1f.3.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause: (none)
priority: 9039
volume: front-left: 65535 / 100% / -0.00 dB, front-right: 65535 / 100% / -0.00 dB
balance 0.00
base volume: 13076 / 20% / -42.00 dB
volume steps: 65537
muted: no
current latency: 20.25 ms
max rewind: 0 KiB
sample spec: s32le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 1
linked by: 1
configured latency: 10.00 ms; range is 0.50 .. 2000.00 ms
card: 0 <alsa_card.pci-0000_00_1f.3>
module: 6
properties:
alsa.resolution_bits = "32"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "CX20751/2 Analog"
alsa.id = "CX20751/2 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x94320000 irq 130"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1f.3"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "9d70"
device.product.name = "Sunrise Point-LP HD Audio"
device.form_factor = "internal"
device.string = "front:0"
device.buffering.buffer_size = "705600"
device.buffering.fragment_size = "352800"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Built-in Audio Analog Stereo"
alsa.mixer_name = "Conexant CX20751/2"
alsa.components = "HDA:14f1510f,17aa3828,00100100 HDA:80862809,80860101,00100000"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 20000 usec, available: unknown)
properties:
device.icon_name = "audio-input-microphone"
analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-input-microphone"
active port: <analog-input-internal-mic>
5 client(s) logged in.
index: 0
driver: <module-systemd-login.c>
owner module: 19
properties:
application.name = "Login Session 1"
systemd-login.session = "1"
index: 1
driver: <protocol-native.c>
owner module: 11
properties:
application.name = "Music Player Daemon"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
media.role = "music"
application.icon_name = "mpd"
application.process.id = "1056"
application.process.user = "m"
application.process.host = "ciek"
application.process.binary = "mpd"
application.language = "C"
application.process.machine_id = "b65d937afc7c4958965c8419ba153253"
application.process.session_id = "1"
index: 288
driver: <protocol-native.c>
owner module: 11
properties:
application.name = "Chrome input"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
application.process.id = "122591"
application.process.user = "m"
application.process.host = "ciek"
application.process.binary = "chromium"
application.language = "en_US.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "b65d937afc7c4958965c8419ba153253"
application.process.session_id = "1"
application.icon_name = "chromium"
index: 289
driver: <protocol-native.c>
owner module: 11
properties:
application.name = "Chromium"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
application.process.id = "122591"
application.process.user = "m"
application.process.host = "ciek"
application.process.binary = "chromium"
application.language = "en_US.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "b65d937afc7c4958965c8419ba153253"
application.process.session_id = "1"
application.icon_name = "chromium"
index: 290
driver: <cli.c>
owner module: 24
properties:
application.name = "UNIX socket client"
1 card(s) available.
index: 0
name: <alsa_card.pci-0000_00_1f.3>
driver: <module-alsa-card.c>
owner module: 6
properties:
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x94320000 irq 130"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1f.3"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "9d70"
device.product.name = "Sunrise Point-LP HD Audio"
device.form_factor = "internal"
device.string = "0"
device.description = "Built-in Audio"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
profiles:
input:analog-stereo: Analog Stereo Input (priority 65, available: unknown)
output:analog-stereo: Analog Stereo Output (priority 6500, available: unknown)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: unknown)
output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Analog Stereo Input (priority 5965, available: no)
output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
output:hdmi-surround+input:analog-stereo: Digital Surround 5.1 (HDMI) Output + Analog Stereo Input (priority 865, available: no)
output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
output:hdmi-surround71+input:analog-stereo: Digital Surround 7.1 (HDMI) Output + Analog Stereo Input (priority 865, available: no)
output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
output:hdmi-stereo-extra1+input:analog-stereo: Digital Stereo (HDMI 2) Output + Analog Stereo Input (priority 5765, available: no)
output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
output:hdmi-surround-extra1+input:analog-stereo: Digital Surround 5.1 (HDMI 2) Output + Analog Stereo Input (priority 665, available: no)
output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
output:hdmi-surround71-extra1+input:analog-stereo: Digital Surround 7.1 (HDMI 2) Output + Analog Stereo Input (priority 665, available: no)
output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
output:hdmi-stereo-extra2+input:analog-stereo: Digital Stereo (HDMI 3) Output + Analog Stereo Input (priority 5765, available: no)
output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
output:hdmi-surround-extra2+input:analog-stereo: Digital Surround 5.1 (HDMI 3) Output + Analog Stereo Input (priority 665, available: no)
output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
output:hdmi-surround71-extra2+input:analog-stereo: Digital Surround 7.1 (HDMI 3) Output + Analog Stereo Input (priority 665, available: no)
output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
output:hdmi-stereo-extra3+input:analog-stereo: Digital Stereo (HDMI 4) Output + Analog Stereo Input (priority 5765, available: no)
output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
output:hdmi-surround-extra3+input:analog-stereo: Digital Surround 5.1 (HDMI 4) Output + Analog Stereo Input (priority 665, available: no)
output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
output:hdmi-surround71-extra3+input:analog-stereo: Digital Surround 7.1 (HDMI 4) Output + Analog Stereo Input (priority 665, available: no)
output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: no)
output:hdmi-stereo-extra4+input:analog-stereo: Digital Stereo (HDMI 5) Output + Analog Stereo Input (priority 5765, available: no)
output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 600, available: no)
output:hdmi-surround-extra4+input:analog-stereo: Digital Surround 5.1 (HDMI 5) Output + Analog Stereo Input (priority 665, available: no)
output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 600, available: no)
output:hdmi-surround71-extra4+input:analog-stereo: Digital Surround 7.1 (HDMI 5) Output + Analog Stereo Input (priority 665, available: no)
off: Off (priority 0, available: unknown)
active profile: <output:analog-stereo+input:analog-stereo>
sinks:
alsa_output.pci-0000_00_1f.3.analog-stereo/#0: Built-in Audio Analog Stereo
sources:
alsa_output.pci-0000_00_1f.3.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
alsa_input.pci-0000_00_1f.3.analog-stereo/#1: Built-in Audio Analog Stereo
ports:
analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 20000 usec, available: unknown)
properties:
device.icon_name = "audio-input-microphone"
analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-input-microphone"
analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
properties:
device.icon_name = "audio-speakers"
analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-headphones"
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"
2 sink input(s) available.
index: 0
driver: <protocol-native.c>
flags:
state: CORKED
sink: 0 <alsa_output.pci-0000_00_1f.3.analog-stereo>
volume: front-left: 58982 / 90% / -2.75 dB, front-right: 58982 / 90% / -2.75 dB
balance 0.00
muted: no
current latency: 207.05 ms
requested latency: 210.00 ms
sample spec: float32le 2ch 44100Hz
channel map: front-left,front-right
Stereo
resample method: copy
module: 11
client: 1 <Music Player Daemon>
properties:
media.name = "pulse audio"
application.name = "Music Player Daemon"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
media.role = "music"
application.icon_name = "mpd"
application.process.id = "1056"
application.process.user = "m"
application.process.host = "ciek"
application.process.binary = "mpd"
application.language = "C"
application.process.machine_id = "b65d937afc7c4958965c8419ba153253"
application.process.session_id = "1"
module-stream-restore.id = "sink-input-by-media-role:music"
index: 192
driver: <protocol-native.c>
flags: START_CORKED
state: RUNNING
sink: 0 <alsa_output.pci-0000_00_1f.3.analog-stereo>
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
muted: no
current latency: 0.00 ms
requested latency: 11.61 ms
sample spec: float32le 2ch 44100Hz
channel map: front-left,front-right
Stereo
resample method: copy
module: 11
client: 289 <Chromium>
properties:
application.icon_name = "chromium-browser"
media.name = "Playback"
application.name = "Chromium"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
application.process.id = "122591"
application.process.user = "m"
application.process.host = "ciek"
application.process.binary = "chromium"
application.language = "en_US.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "b65d937afc7c4958965c8419ba153253"
application.process.session_id = "1"
module-stream-restore.id = "sink-input-by-application-name:Chromium"
1 source output(s) available.
index: 5
driver: <protocol-native.c>
flags: START_CORKED
state: RUNNING
source: 1 <alsa_input.pci-0000_00_1f.3.analog-stereo>
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
muted: no
current latency: 0.00 ms
requested latency: 10.00 ms
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
resample method: copy
owner module: 11
client: 288 <Chrome input>
properties:
application.icon_name = "chromium-browser"
media.name = "RecordStream"
application.name = "Chrome input"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
application.process.id = "122591"
application.process.user = "m"
application.process.host = "ciek"
application.process.binary = "chromium"
application.language = "en_US.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "b65d937afc7c4958965c8419ba153253"
application.process.session_id = "1"
module-stream-restore.id = "source-output-by-application-name:Chrome input"
0 cache entrie(s) available.
Offline
You did post the correct command earlier (the current one is unnecessarily verbose), what I was trying to say that it is expected that the information for chromium and firefox from the pacmd list-source-outputs command isn't going to change as that depends on how the browsers handle that. What could change is the information present in the pacmd list-sources command.
Last edited by V1del (2020-03-25 09:38:32)
Offline
I was with the same problem, solved with this: https://help.ubuntu.com/community/Sound … leshooting
All i need to do is to open pavucontrol, go to input devices, unlock channels and mute the front right
I also found the answer here: https://wiki.archlinux.org/index.php/Pu … leshooting
In section: "only one channel can provide a valid sound signal."
Last edited by Anderson Danilo (2020-06-07 23:26:53)
Offline
I also found the answer here: https://wiki.archlinux.org/index.php/Pu … leshooting
In section: "only one channel can provide a valid sound signal."
I had the same issue. Bellow, as suggested, worked for me.
1. Find your source name from the following command; mine is alsa_input.pci-0000_00_1f.3.analog-stereo
pacmd list-sources | grep 'name:.*input'
2. Edit /etc/pulse/default.pa and add the following lines, where INPUT_NAME is name of the input source from above step:
load-module module-remap-source source_name=record_mono master=INPUT_NAME master_channel_map=front-left channel_map=mono set-default-source record_mono
3. Restart PulseAudio:
$ pulseaudio -k $ pulseaudio --start
Last edited by syssunn (2020-08-21 01:01:52)
Offline