You are not logged in.

#1 2018-05-08 01:40:21

Ryunaq
Member
Registered: 2018-03-06
Posts: 8

No audio recorded thorugh my mic

After a clean reinstall of arch my mic won't record my voice. Thing is pulseaudio is actually recognizing the mic, alsa too, yet when I record no voice comes out, just static noise. Upping the gain and playing with all of valves in alsamixer gave no results. I've confirmed the mic is not muted in neither pulseaudio or alsa. Pic of pavucontrol recognizing the mic and recording pure static noise https://imgur.com/a/P453EDT .

Trying the 'Static noise in microphone recording' from the wiki https://wiki.archlinux.org/index.php/Pu … _recording gets me stucked on part two since 'arecord -f dat -r 60000 -D hw:0,0 -d 5 test.wav' outputs 'arecord: main:828: audio open error: Device or resource busy'. That is the only hint I have.

Here's the output of some commands:

$ sudo fuser -v /dev/snd/*
                              USER        PID ACCESS COMMAND
/dev/snd/controlC0:  root      19629 F.... pulseaudio
                               X         19648 F.... pulseaudio
/dev/snd/controlC1:  root      19629 F.... pulseaudio
                               X         19648 F.... pulseaudio
/dev/snd/controlC2:  root      19629 F.... pulseaudio
                                 X       19648 F.... pulseaudio
/dev/snd/pcmC0D0c:   X       19648 F...m pulseaudio
/dev/snd/pcmC0D0p:   X       19648 F...m pulseaudio
/dev/snd/pcmC1D7p:   X      19648 F...m pulseaudio
/dev/snd/pcmC2D0p:   X      19648 F...m pulseaudio

$ arecord --list-devices
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC1150 Analog [ALC1150 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: ALC1150 Alt Analog [ALC1150 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Thanks for the help in advance.

Offline

#2 2018-05-08 06:36:35

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,376

Re: No audio recorded thorugh my mic

Why do you have a root owned pulseaudio accessing your device? You might get some fight between the two pulses. Can you during a recording attempt post

pacmd list-sources
pacmd list-source-outputs

Offline

#3 2018-05-08 17:19:19

Ryunaq
Member
Registered: 2018-03-06
Posts: 8

Re: No audio recorded thorugh my mic

The root owned pulseaudio seems to be coming from gdm. Killing it does not seem to do anything though. Here's the output while recording with audacity:

$ pacmd list-sources
pacmd list-sources
3 source(s) available.
    index: 0
	name: <alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1.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 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 0.50 .. 1999.82 ms
	monitor_of: 0
	card: 0 <alsa_card.pci-0000_01_00.1>
	module: 6
	properties:
		device.description = "Monitor of GP107GL High Definition Audio Controller Digital Stereo (HDMI 2)"
		device.class = "monitor"
		alsa.card = "1"
		alsa.card_name = "HDA NVidia"
		alsa.long_card_name = "HDA NVidia at 0xef080000 irq 17"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:01:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
		device.bus = "pci"
		device.vendor.id = "10de"
		device.vendor.name = "NVIDIA Corporation"
		device.product.id = "0fb9"
		device.product.name = "GP107GL High Definition Audio Controller"
		device.string = "1"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
    index: 1
	name: <alsa_output.usb-Schiit_Audio_USB_Modi_Device-00.analog-stereo.monitor>
	driver: <module-alsa-card.c>
	flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: IDLE
	suspend cause: 
	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 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 1837.50 ms; range is 0.50 .. 1837.50 ms
	monitor_of: 1
	card: 1 <alsa_card.usb-Schiit_Audio_USB_Modi_Device-00>
	module: 7
	properties:
		device.description = "Monitor of USB Modi Device Analog Stereo"
		device.class = "monitor"
		alsa.card = "2"
		alsa.card_name = "USB Modi Device"
		alsa.long_card_name = "Schiit Audio USB Modi Device at usb-0000:00:14.0-1, high speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:00:14.0-usb-0:1:1.0"
		sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/sound/card2"
		udev.id = "usb-Schiit_Audio_USB_Modi_Device-00"
		device.bus = "usb"
		device.vendor.id = "0d8c"
		device.vendor.name = "C-Media Electronics, Inc."
		device.product.id = "0319"
		device.product.name = "USB Modi Device"
		device.serial = "Schiit_Audio_USB_Modi_Device"
		device.string = "2"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-usb"
  * index: 2
	name: <alsa_input.pci-0000_00_1b.0.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: 
	priority: 9039
	volume: front-left: 6554 /  10% / -60.00 dB,   front-right: 6554 /  10% / -60.00 dB
	        balance 0.00
	base volume: 6554 /  10% / -60.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.39 ms
	max rewind: 0 KiB
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 1
	configured latency: 24.99 ms; range is 1.00 .. 2000.00 ms
	card: 2 <alsa_card.pci-0000_00_1b.0>
	module: 8
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC1150 Analog"
		alsa.id = "ALC1150 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 0xef210000 irq 28"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "8ca0"
		device.product.name = "9 Series Chipset Family HD Audio Controller"
		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 = "Realtek ALC1150"
		alsa.components = "HDA:10ec0900,1462d918,00100001"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)
			properties:
				
	active port: <analog-input-front-mic>


$ pacmd list-source-outputs
1 source output(s) available.
    index: 10
	driver: <protocol-native.c>
	flags: 
	state: RUNNING
	source: 2 <alsa_input.pci-0000_00_1b.0.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: 24.99 ms
	sample spec: float32le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	resample method: copy
	owner module: 13
	client: 14 <ALSA plug-in [audacity]>
	properties:
		media.name = "ALSA Capture"
		application.name = "ALSA plug-in [audacity]"
		native-protocol.peer = "UNIX socket client"
		native-protocol.version = "32"
		application.process.id = "7699"
		application.process.user = "x"
		application.process.host = "archlinux"
		application.process.binary = "audacity"
		application.language = "C"
		window.x11.display = ":1"
		application.process.machine_id = "84f24398d71f4338bf1965be77959747"
		application.process.session_id = "c3"
		application.icon_name = "audacity"
		module-stream-restore.id = "source-output-by-application-name:ALSA plug-in [audacity]

Offline

#4 2018-05-08 18:39:43

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,376

Re: No audio recorded thorugh my mic

GDM usually has it's own user for that, that's why I find it weird, but I agree that it's likely to only be tangentially related.

The volume here is at a low 10%, however in the screenshot you have it higher, so I assume we can rule that out. What's a bit more alarming is the low latency, which might be indicative of some recording issue (unless you only hit record and were completely silent which would explain this tongue ). Something you can try is up the latency manually on the source in pavucontrol. Maybe it simply something like that, that there's a weird issue that your samples are being pushed out too quickly. Do you get any output (e.g. ALSA underruns/xruns) from an affected application during recording?

FWIW if it isn't that either and you want to give the wiki suggestion a shot, modern pulse is autostarted over systemd user sockets, adjusting the client.conf doesn't really have an effect anymore (I've been meaning to update the pulse wiki article, but am heads deep into my semester and don't really have time to devote to that right now, we'll see maybe over the summer break) so in order to properly kill it to allow direct hardware access you'd have to run

systemctl --user mask pulseaudio.socket
systemctl --user stop pulseaudio
systemctl --user unmask pulseaudio.socket #To restore autostarting behaviour

Last edited by V1del (2018-05-08 18:40:36)

Offline

#5 2018-05-08 20:11:49

Ryunaq
Member
Registered: 2018-03-06
Posts: 8

Re: No audio recorded thorugh my mic

Thanks for the response.
Woops forgot I returned the gain to base, but yeah I don't think that's related. Thing is being silent or not does not affect the output at all, the recordings looks the same in audacity, just noice. I don't really know about this but could it be that it's related to some permissions stuff? or maybe the noise filter is corrupted and counts literally everything as noise (and the audacity recorded noise is from the sound card)? I'm sorry, what do you mean by alsa underruns outputs? After turning the gain to base in pavucontrol makes the bar (from the imgur above) not move under any ammount of sound, so I don't think it's related to any application in particular. Thanks to that commands I could do the arch wiki thingy, I don't know if it's related but the output was reversed. I mean, the maximum sampling rate of my card was 48000 but the default sample rate in the .conf was 44100. I changed it so the conf would match my card but still no sound sad .

Offline

Board footer

Powered by FluxBB