Microphone doesn't work on OpenBSD reddit / BSD ---------------------------------------------------------------------- zielonykid1234 · 2021-12-08 14:48 Any fixing ideas please ---------------------------------------------------------------------- gumnos · 2021-12-08 14:56 Have you set [`kern.audio.record=1`](https://www.openbsd.org/faq/faq13 .html#enablerec) to enable recording? ---------------------------------------------------------------------- zielonykid1234 · 2021-12-08 14:59 of course ---------------------------------------------------------------------- gumnos · 2021-12-08 15:23 okay, you hadn't mentioned that, so wanted to make sure. It would also help to have the output of the following commands: $ sndioctl $ grep sndio /etc/rc.conf.local $ sysctl kern.audio as well as any `dmesg` output related to audio devices like $ dmesg | awk -F'[ :]' '$2 == "at" {a[$1] = $3; f[$1] = $0}$1 ~ /^audio/ { print "Device", n = $1; while (n in a) {print f[n];n=a[n]}}' ---------------------------------------------------------------------- zielonykid1234 · 2021-12-08 15:30 `sndioctl`: output.level=0.204 output.mute=0 app/firefox0.level=1.000 app/firefox1.level=1.000 app/firefox2.level=1.000 `grep sndio/etc/rc.conf.local`: no output `sysctl` [`kern.audio`](https://kern.audio): `kern.audio.record=1`. The dmesg command: Device audio0 audio0 at azalia0 azalia0 at pci1 dev 0 function 1 vendor "NVIDIA", unknown product 0x2291 rev 0xa1: msi pci1 at ppb0 bus1 ppb0 at pci0 dev 1 function 0 "Intel Core 6G PCIE" rev 0x02: msi pci0 at mainbus0 bus 0 mainbus0 at root Device audio1 audio1 at azalia1 azalia1 at pci0 dev 31 function 3 "Intel 400 Series cAVS" rev 0x00: msi pci0 at mainbus0 bus0 mainbus0 at root ---------------------------------------------------------------------- gumnos · 2021-12-08 18:03 Do you know which of those two devices (`audio0` or `audio1`) the microphone is plugged into? And which application(s) are you using to test the recording (making sure that it's pointed at the appropriate hardware)? ---------------------------------------------------------------------- zielonykid1234 · 2021-12-08 18:24 audio0 is my noVideo GPU, audio1 is my actual speaker, i don't know what's with my microphone, it's a laptop built-in device. I test the microphone with Firefox. ---------------------------------------------------------------------- gumnos · 2021-12-08 18:48 strange. Does `doas mixerctl` output anything useful? Particularly interested in the `record.*` and the `inputs.*` entries. ---------------------------------------------------------------------- zielonykid1234 · 2021-12-08 18:49 >doas mixerctl outputs.digital-out_sou=dac-0:1 outputs.digital-out_sen=unplugged record.enable=sysctl ---------------------------------------------------------------------- gumnos · 2021-12-08 20:13 that's it? I was expecting to see bunches of lines like I do on my OpenBSD laptops here. gumnos@mini10: doas mixerctl | awk -F[.] '{++a[$1]}END{for (k in a) print k, a[k]}' | sort inputs 18 outputs 22 record 10 gumnos@inspiron: doas mixerctl | awk -F[.] '{++a[$1]}END{for (k in a) print k, a[k]}' | sort inputs 8 outputs 16 record 10 gumnos@solo: doas mixerctl | awk -F[.] '{++a[$1]}END{for (k in a) print k, a[k]}' | sort inputs 18 outputs 8 record 4 To only have two `output` entries and one `record` seems a bit sparse. ---------------------------------------------------------------------- zielonykid1234 · 2021-12-08 20:25 so what? Is my mic unsupported? ---------------------------------------------------------------------- gumnos · 2021-12-08 20:51 I'd start with trying to record from various sources using the built- in tools rather than putting Firefox in the mix. $ aucat -f snd/0 -o test.wav then try `snd/1` (and `snd/2` etc, until you get a device- doesn't-exist sort of error), repeating until you have a `.wav` file that hopefully works and you know which device is the desired recording input device. If you can successfully get a recording using `aucat`, then it reduces it to a Firefox issue rather than an OpenBSD issue. ---------------------------------------------------------------------- zielonykid1234 · 2021-12-08 21:32 snd/0 is the noVidia GPU, snd/1 is my speaker, snd/2 (or greater) doesn't exist (the error message). ---------------------------------------------------------------------- gumnos · 2021-12-08 22:00 so if you did $ aucat -f snd/0 -o test.wav for a while, tapped on or spoke into the mic, and then hit `^C`, did the resulting `test.wav` contain your noise? If you repeat it with `snd/1`, does the resulting `test.wav` contain your noise? If neither produces results, there may be some other issue at play. If one of them successfully records, then we've narrowed it down to a FF issue rather than an OpenBSD issue. ---------------------------------------------------------------------- zielonykid1234 · 2021-12-08 22:07 with snd/0 and snd/1 i have the same file, [here](https://pastebin.com/XbHBYG3c) are the contents dumped with hexdump. ---------------------------------------------------------------------- gumnos · 2021-12-08 22:12 Okay, I'm out of my depth here, but if `aucat` isn't able to record successfully, then it's either a driver thing or some other configuration issue I'm unable to track down. ---------------------------------------------------------------------- zielonykid1234 · 2021-12-08 22:22 shit i need a working microphone, it also won't detect plugged in headphones mic. Thank you for trying to help. ---------------------------------------------------------------------- Paspie · 2021-12-11 13:44 I suggest posting a full dmesg.