Re: Internal Microphone on Thinkpad X1 Carbon 7th gen not working

2020-12-10 Thread Stefan Hagen
Alexandre Ratchov wrote:
> On Thu, Dec 10, 2020 at 10:30:56AM +0100, Anders Damsgaard wrote:
>> * Stefan Hagen [2020-12-10 10:14:35 +0100]:
>>> Bodie wrote:
 On 9.12.2020 20:43, Stefan Hagen wrote:
> Hello Zachary,
>
> Zachary Campbell wrote:
>> Any luck with this? I am also struggling to get the internal
>> mic to work on the X1 Carbon 7th Gen. Have gone through
>> everything discussed here, but still no luck.
>>
>> My dmesg and mixerctl match those already shared in thread.
>> Happy to share anything else that might be helpful, but after
>> reading through the multimedia FAQ and this thread I am
>> not quite sure where to go next.
>
> No progress here.
>
> I think all needed information is in here.
> https://bbs.archlinux.org/viewtopic.php?id=249900

 That part on SST remind me my problem with audio on T590 under Windows.
 For at least two patch builds Windows had issue to picking up wrong
 driver for audio. Instead of regular HD Audio they were setting
 up SST HD Audio and then output/input were not working.

 So maybe it is something wrong inside that HW like reporting wrong
 capabilities?
>>>
>>> Not unlikely as "microphone not working on x1 carbon gen 7" complaints
>>> are all over the place. The solution for ms windows is upgrade + use
>>> newest drivers. So yes, I assume there's something off that has been
>>> fixed in software.
>>>
>>> I've seen similar complaints about Dell Laptops that are also using
>>> the Realtek ALC285 chip.
>>>
>>> If it's just this one chip, then fine, let's ignore it.
>>>
>>> Can someone with a X1 Carbon Gen 8 report it working?
>>
>> The same issue persists on 8th generation, also reported to dmesg@.
>>
>> azalia0 at pci0 dev 31 function 3 "Intel 400 Series HD Audio" rev 0x00: msi
>> azalia0: codecs: Realtek ALC285, Intel/0x280b, using Realtek ALC285
>> audio0 at azalia0
>>
>> Also, the mic is enabled in BIOS and kern.audio.record=1.
>
> AFAIU, all audio components but the internal microphone are connected
> to the "Realtek ALC285" codec which is handled by azalia(4). The
> internal microphone uses the Intel Smart Sound Technology, which needs
> a dedicated driver.
 ^^
Right! That's how it shows up on windows.

I think it's *not* worth to create a driver for the internal microphone.
It's really not that useful most of the time.

But it's good to know that it's not just configuration that's missing.
So I can stop fiddling and accept that it does not work.

Thanks,
Stefan



Re: Internal Microphone on Thinkpad X1 Carbon 7th gen not working

2020-12-10 Thread Alexandre Ratchov
On Thu, Dec 10, 2020 at 10:30:56AM +0100, Anders Damsgaard wrote:
> * Stefan Hagen  [2020-12-10 10:14:35 +0100]:
> 
> > Bodie wrote:
> > > 
> > > 
> > > On 9.12.2020 20:43, Stefan Hagen wrote:
> > > > Hello Zachary,
> > > > 
> > > > Zachary Campbell wrote:
> > > > > Any luck with this? I am also struggling to get the internal
> > > > > mic to work on the X1 Carbon 7th Gen. Have gone through
> > > > > everything discussed here, but still no luck.
> > > > > 
> > > > > My dmesg and mixerctl match those already shared in thread.
> > > > > Happy to share anything else that might be helpful, but after
> > > > > reading through the multimedia FAQ and this thread I am
> > > > > not quite sure where to go next.
> > > > 
> > > > No progress here.
> > > > 
> > > > I think all needed information is in here.
> > > > https://bbs.archlinux.org/viewtopic.php?id=249900
> > > > 
> > > 
> > > That part on SST remind me my problem with audio on T590 under Windows.
> > > For at least two patch builds Windows had issue to picking up wrong
> > > driver for audio. Instead of regular HD Audio they were setting
> > > up SST HD Audio and then output/input were not working.
> > > 
> > > So maybe it is something wrong inside that HW like reporting wrong
> > > capabilities?
> > 
> > Not unlikely as "microphone not working on x1 carbon gen 7" complaints
> > are all over the place. The solution for ms windows is upgrade + use
> > newest drivers. So yes, I assume there's something off that has been
> > fixed in software.
> > 
> > I've seen similar complaints about Dell Laptops that are also using
> > the Realtek ALC285 chip.
> > 
> > If it's just this one chip, then fine, let's ignore it.
> > 
> > Can someone with a X1 Carbon Gen 8 report it working?
> > 
> > Best Regards,
> > Stefan
> > 
> 
> The same issue persists on 8th generation, also reported to dmesg@.
> 
> azalia0 at pci0 dev 31 function 3 "Intel 400 Series HD Audio" rev 0x00: msi
> azalia0: codecs: Realtek ALC285, Intel/0x280b, using Realtek ALC285
> audio0 at azalia0
> 
> Also, the mic is enabled in BIOS and kern.audio.record=1.
> 

AFAIU, all audio components but the internal microphone are connected
to the "Realtek ALC285" codec which is handled by azalia(4). The
internal microphone uses the Intel Smart Sound Technology, which needs
a dedicated driver.

Linux has a driver written by Intel employees, which is around twice
as big as azalia. It's unclear how difficult it would be to write a
openbsd-ish driver that simply makes the hardware work. Sorry.

Meanwhile, if this is for voice calls, I'd suggest either using a
phone headset (the x1 probably has a trrs jack) or a comfortable
full-duplex usb headset; most work way better than the internal
mics/speakers.



Re: Internal Microphone on Thinkpad X1 Carbon 7th gen not working

2020-12-10 Thread Anders Damsgaard

* Stefan Hagen  [2020-12-10 10:14:35 +0100]:


Bodie wrote:



On 9.12.2020 20:43, Stefan Hagen wrote:

Hello Zachary,

Zachary Campbell wrote:

Any luck with this? I am also struggling to get the internal
mic to work on the X1 Carbon 7th Gen. Have gone through
everything discussed here, but still no luck.

My dmesg and mixerctl match those already shared in thread.
Happy to share anything else that might be helpful, but after
reading through the multimedia FAQ and this thread I am
not quite sure where to go next.


No progress here.

I think all needed information is in here.
https://bbs.archlinux.org/viewtopic.php?id=249900



That part on SST remind me my problem with audio on T590 under Windows.
For at least two patch builds Windows had issue to picking up wrong
driver for audio. Instead of regular HD Audio they were setting
up SST HD Audio and then output/input were not working.

So maybe it is something wrong inside that HW like reporting wrong
capabilities?


Not unlikely as "microphone not working on x1 carbon gen 7" complaints
are all over the place. The solution for ms windows is upgrade + use
newest drivers. So yes, I assume there's something off that has been
fixed in software.

I've seen similar complaints about Dell Laptops that are also using
the Realtek ALC285 chip.

If it's just this one chip, then fine, let's ignore it.

Can someone with a X1 Carbon Gen 8 report it working?

Best Regards,
Stefan



The same issue persists on 8th generation, also reported to dmesg@.

azalia0 at pci0 dev 31 function 3 "Intel 400 Series HD Audio" rev 0x00: msi
azalia0: codecs: Realtek ALC285, Intel/0x280b, using Realtek ALC285
audio0 at azalia0

Also, the mic is enabled in BIOS and kern.audio.record=1.

Cheers, Anders



Re: Internal Microphone on Thinkpad X1 Carbon 7th gen not working

2020-12-10 Thread Stefan Hagen
Bodie wrote:
>
>
> On 9.12.2020 20:43, Stefan Hagen wrote:
>> Hello Zachary,
>>
>> Zachary Campbell wrote:
>>> Any luck with this? I am also struggling to get the internal
>>> mic to work on the X1 Carbon 7th Gen. Have gone through
>>> everything discussed here, but still no luck.
>>>
>>> My dmesg and mixerctl match those already shared in thread.
>>> Happy to share anything else that might be helpful, but after
>>> reading through the multimedia FAQ and this thread I am
>>> not quite sure where to go next.
>>
>> No progress here.
>>
>> I think all needed information is in here.
>> https://bbs.archlinux.org/viewtopic.php?id=249900
>>
>
> That part on SST remind me my problem with audio on T590 under Windows.
> For at least two patch builds Windows had issue to picking up wrong
> driver for audio. Instead of regular HD Audio they were setting
> up SST HD Audio and then output/input were not working.
>
> So maybe it is something wrong inside that HW like reporting wrong
> capabilities?

Not unlikely as "microphone not working on x1 carbon gen 7" complaints
are all over the place. The solution for ms windows is upgrade + use
newest drivers. So yes, I assume there's something off that has been
fixed in software.

I've seen similar complaints about Dell Laptops that are also using
the Realtek ALC285 chip.

If it's just this one chip, then fine, let's ignore it.

Can someone with a X1 Carbon Gen 8 report it working?

Best Regards,
Stefan



Re: Internal Microphone on Thinkpad X1 Carbon 7th gen not working

2020-12-09 Thread Bodie




On 9.12.2020 20:43, Stefan Hagen wrote:

Hello Zachary,

Zachary Campbell wrote:

Any luck with this? I am also struggling to get the internal
mic to work on the X1 Carbon 7th Gen. Have gone through
everything discussed here, but still no luck.

My dmesg and mixerctl match those already shared in thread.
Happy to share anything else that might be helpful, but after
reading through the multimedia FAQ and this thread I am
not quite sure where to go next.


No progress here.

I think all needed information is in here.
https://bbs.archlinux.org/viewtopic.php?id=249900



That part on SST remind me my problem with audio on T590 under Windows.
For at least two patch builds Windows had issue to picking up wrong
driver for audio. Instead of regular HD Audio they were setting
up SST HD Audio and then output/input were not working.

So maybe it is something wrong inside that HW like reporting wrong
capabilities?


Seems to be something for an azalia developer.

Best Regards,
Stefan




Re: Internal Microphone on Thinkpad X1 Carbon 7th gen not working

2020-12-09 Thread Stefan Hagen
Hello Zachary,

Zachary Campbell wrote:
> Any luck with this? I am also struggling to get the internal
> mic to work on the X1 Carbon 7th Gen. Have gone through
> everything discussed here, but still no luck.
>
> My dmesg and mixerctl match those already shared in thread.
> Happy to share anything else that might be helpful, but after
> reading through the multimedia FAQ and this thread I am
> not quite sure where to go next.

No progress here.

I think all needed information is in here. 
https://bbs.archlinux.org/viewtopic.php?id=249900

Seems to be something for an azalia developer.

Best Regards,
Stefan



Re: Internal Microphone on Thinkpad X1 Carbon 7th gen not working

2020-12-09 Thread Zachary Campbell
Hello,

Any luck with this? I am also struggling to get the internal
mic to work on the X1 Carbon 7th Gen. Have gone through
everything discussed here, but still no luck.

My dmesg and mixerctl match those already shared in thread.
Happy to share anything else that might be helpful, but after
reading through the multimedia FAQ and this thread I am
not quite sure where to go next.

Best,
Zachary
Stefan Hagen writes:

> Hello,
>
> I'm struggling to get the internal microphone working on my Thinkpad
> X1 Carbon 7th Gen.
>
> I can record from an external USB microphone on OpenBSD. It is only the
> internal microphone I'm struggling with.
>
> To rule out a hardware fault, I booted windows from a USB drive and the
> microphone works fine in this OS. While being there, I also updated the 
> bios and thunderbolt firmware to the latest version.
>
> Is anyone here that got it working on this machine?
>
> dmesg:
> azalia0 at pci0 dev 31 function 3 "Intel 300 Series HD Audio" rev 0x11: msi
> azalia0: codecs: Realtek ALC285, Intel/0x280b, using Realtek ALC285
> audio0 at azalia0
>
> $ sysctl kern.audio.record
> kern.audio.record=1
>
> $ mixerctl -v
> inputs.dac-2:3=174,174
> inputs.dac-0:1=174,174
> record.adc-0:1_mute=off  [ off on ]
> record.adc-0:1=124,124
> record.adc-2:3_mute=off  [ off on ]
> record.adc-2:3=124,124
> outputs.spkr_source=dac-2:3  [ dac-2:3 ]
> outputs.spkr_mute=off  [ off on ]
> outputs.spkr_eapd=on  [ off on ]
> outputs.spkr2_source=dac-0:1  [ dac-2:3 dac-0:1 ]
> outputs.spkr2_mute=off  [ off on ]
> outputs.spkr2_boost=off  [ off on ]
> inputs.mic=85,85
> outputs.mic_dir=input-vr80  [ none input input-vr0 input-vr50 input-vr80 
> input-vr100 ]
> outputs.hp_source=dac-0:1  [ dac-2:3 dac-0:1 ]
> outputs.hp_mute=off  [ off on ]
> outputs.hp_boost=off  [ off on ]
> outputs.hp_eapd=on  [ off on ]
> record.adc-2:3_source=mic  { mic }
> record.adc-0:1_source=mic  { mic }
> outputs.mic_sense=unplugged  [ unplugged plugged ]
> outputs.hp_sense=unplugged  [ unplugged plugged ]
> outputs.spkr_muters=hp  { hp }
> outputs.master=255,255
> outputs.master.mute=off  [ off on ]
> outputs.master.slaves=dac-2:3,dac-0:1,spkr,spkr2,hp  { dac-2:3 dac-0:1 spkr 
> spkr2 hp }
> record.volume=124,124
> record.volume.mute=off  [ off on ]
> record.volume.slaves=adc-0:1,adc-2:3  { adc-0:1 adc-2:3 mic }
> record.enable=sysctl  [ off on sysctl ]
>
> I also cranked inputs.mic and record.volume up to 255,255 - no 
> difference.
>
> $ sndiod -ddd -f rsnd/0 -m play,rec # while aucat -o test.wav
> snd0 pst=cfg.default: rec=0:1 play=0:1 vol=23170 dup
> helper(helper|ini): created
> worker(worker|ini): created
> listen(/tmp/sndio/sock0|ini): created
> sock(sock|ini): created
> helper: recv: cmd = 0, num = 0, idx = 0, mode = 3, fd = -1
> helper: send: cmd = 3, num = 0, idx = 0, mode = 0, fd = 3
> helper: recv: cmd = 2, num = 0, idx = 0, mode = 768, fd = -1
> helper: send: cmd = 3, num = 0, idx = 0, mode = 0, fd = 3
> sock,rmsg,widl: AUTH message
> sock,rmsg,widl: HELLO message
> sock,rmsg,widl: hello from , mode = 2, ver 7
> snd0 pst=cfg: device requested
> worker: send: cmd = 0, num = 0, idx = 0, mode = 3, fd = -1
> worker: recv: cmd = 3, num = 0, idx = 0, mode = 0, fd = 6
> snd0 pst=cfg: using rsnd/0
> worker: send: cmd = 2, num = 0, idx = 0, mode = 768, fd = -1
> worker: recv: cmd = 3, num = 0, idx = 0, mode = 0, fd = 7
> sio(dev|ini): created
> sioctl(mix|ini): created
> snd0 pst=cfg: adding output0.level=255 at 25
> snd0 pst=cfg: adding output1.level=255 at 26
> snd0 pst=cfg: adding output0.mute=0 at 57
> snd0 pst=cfg: adding output1.mute=0 at 58
> snd0 pst=cfg: adding input0.level=124 at 89
> snd0 pst=cfg: adding input1.level=124 at 90
> snd0 pst=cfg: adding input0.mute=0 at 121
> snd0 pst=cfg: adding input1.mute=0 at 122
> snd0 pst=cfg: 48000Hz, s16le, play 0:1, rec 0:1, 16 blocks of 480 frames
> snd0 pst=cfg: adding app/aucat0.level=127 at 0
> aucat0 vol=127,pst=ini: using snd0 pst=ini.default, mode = 2
> aucat0 vol=127,pst=ini,rmsg,widl: SETPAR message
> aucat0 vol=127,pst=ini,rmsg,widl: recording channels 0:1 ->0:1
> aucat0 vol=127,pst=ini,rmsg,widl: 48000Hz sample rate, 480 frame blocks
> aucat0 vol=127,pst=ini,rmsg,widl: 9600 frame buffer
> aucat0 vol=127,pst=ini,rmsg,widl: GETPAR message
> aucat0 vol=127,pst=ini,rmsg,widl: GETPAR message
> aucat0 vol=127,pst=ini,rmsg,widl: START message
> aucat0 vol=127,pst=ini: recording s16le <- s16le
> cmap: nch = 2, ostart = 0, onext = 0, istart = 0, inext = 0
> aucat0 vol=127,pst=ini: allocated 9600/17280 fr buffers
> snd0 pst=ini: device started
> snd0 pst=run: started
> aucat0 vol=127,pst=run: attached at -7680, delta = 0
> aucat0 vol=127,pst=run: 48000

Re: Internal Microphone on Thinkpad X1 Carbon 7th gen not working

2020-12-04 Thread Stefan Hagen
Michel von Behr wrote:
> Check sysctl(8) - kern.audio.record (turned off by default)

> Stefan Hagen wrote:
> > $ sysctl kern.audio.record
> > kern.audio.record=1

Yes, kern.audio.record is enabled. I'm also able to record from USB audio
devices. Just the internal one doesn't work.

Best Regards,
Stefan



Re: Internal Microphone on Thinkpad X1 Carbon 7th gen not working

2020-12-04 Thread Stefan Hagen
Tom Smyth wrote:
> Hello  Stefan,
> 
> have you checked the Bios is it disabled (for Privacy )   / (security)

It is enabled in the BIOS. I would assume that if it would be disabled,
windows would also not be able to record.

Best Regards,
Stefan



Re: Internal Microphone on Thinkpad X1 Carbon 7th gen not working

2020-12-04 Thread Michel von Behr
Check sysctl(8) - kern.audio.record (turned off by default)

On Fri, 4 Dec 2020 at 1:41 PM Tom Smyth 
wrote:

> Hello  Stefan,
>
> have you checked the Bios is it disabled (for Privacy )   / (security)
>
>
>
> On Fri, 4 Dec 2020 at 09:20, Stefan Hagen  wrote:
>
> > Hello,
> >
> > I'm struggling to get the internal microphone working on my Thinkpad
> > X1 Carbon 7th Gen.
> >
> > I can record from an external USB microphone on OpenBSD. It is only the
> > internal microphone I'm struggling with.
> >
> > To rule out a hardware fault, I booted windows from a USB drive and the
> > microphone works fine in this OS. While being there, I also updated the
> > bios and thunderbolt firmware to the latest version.
> >
> > Is anyone here that got it working on this machine?
> >
> > dmesg:
> > azalia0 at pci0 dev 31 function 3 "Intel 300 Series HD Audio" rev 0x11:
> msi
> > azalia0: codecs: Realtek ALC285, Intel/0x280b, using Realtek ALC285
> > audio0 at azalia0
> >
> > $ sysctl kern.audio.record
> > kern.audio.record=1
> >
> > $ mixerctl -v
> > inputs.dac-2:3=174,174
> > inputs.dac-0:1=174,174
> > record.adc-0:1_mute=off  [ off on ]
> > record.adc-0:1=124,124
> > record.adc-2:3_mute=off  [ off on ]
> > record.adc-2:3=124,124
> > outputs.spkr_source=dac-2:3  [ dac-2:3 ]
> > outputs.spkr_mute=off  [ off on ]
> > outputs.spkr_eapd=on  [ off on ]
> > outputs.spkr2_source=dac-0:1  [ dac-2:3 dac-0:1 ]
> > outputs.spkr2_mute=off  [ off on ]
> > outputs.spkr2_boost=off  [ off on ]
> > inputs.mic=85,85
> > outputs.mic_dir=input-vr80  [ none input input-vr0 input-vr50 input-vr80
> > input-vr100 ]
> > outputs.hp_source=dac-0:1  [ dac-2:3 dac-0:1 ]
> > outputs.hp_mute=off  [ off on ]
> > outputs.hp_boost=off  [ off on ]
> > outputs.hp_eapd=on  [ off on ]
> > record.adc-2:3_source=mic  { mic }
> > record.adc-0:1_source=mic  { mic }
> > outputs.mic_sense=unplugged  [ unplugged plugged ]
> > outputs.hp_sense=unplugged  [ unplugged plugged ]
> > outputs.spkr_muters=hp  { hp }
> > outputs.master=255,255
> > outputs.master.mute=off  [ off on ]
> > outputs.master.slaves=dac-2:3,dac-0:1,spkr,spkr2,hp  { dac-2:3 dac-0:1
> > spkr spkr2 hp }
> > record.volume=124,124
> > record.volume.mute=off  [ off on ]
> > record.volume.slaves=adc-0:1,adc-2:3  { adc-0:1 adc-2:3 mic }
> > record.enable=sysctl  [ off on sysctl ]
> >
> > I also cranked inputs.mic and record.volume up to 255,255 - no
> > difference.
> >
> > $ sndiod -ddd -f rsnd/0 -m play,rec # while aucat -o test.wav
> > snd0 pst=cfg.default: rec=0:1 play=0:1 vol=23170 dup
> > helper(helper|ini): created
> > worker(worker|ini): created
> > listen(/tmp/sndio/sock0|ini): created
> > sock(sock|ini): created
> > helper: recv: cmd = 0, num = 0, idx = 0, mode = 3, fd = -1
> > helper: send: cmd = 3, num = 0, idx = 0, mode = 0, fd = 3
> > helper: recv: cmd = 2, num = 0, idx = 0, mode = 768, fd = -1
> > helper: send: cmd = 3, num = 0, idx = 0, mode = 0, fd = 3
> > sock,rmsg,widl: AUTH message
> > sock,rmsg,widl: HELLO message
> > sock,rmsg,widl: hello from , mode = 2, ver 7
> > snd0 pst=cfg: device requested
> > worker: send: cmd = 0, num = 0, idx = 0, mode = 3, fd = -1
> > worker: recv: cmd = 3, num = 0, idx = 0, mode = 0, fd = 6
> > snd0 pst=cfg: using rsnd/0
> > worker: send: cmd = 2, num = 0, idx = 0, mode = 768, fd = -1
> > worker: recv: cmd = 3, num = 0, idx = 0, mode = 0, fd = 7
> > sio(dev|ini): created
> > sioctl(mix|ini): created
> > snd0 pst=cfg: adding output0.level=255 at 25
> > snd0 pst=cfg: adding output1.level=255 at 26
> > snd0 pst=cfg: adding output0.mute=0 at 57
> > snd0 pst=cfg: adding output1.mute=0 at 58
> > snd0 pst=cfg: adding input0.level=124 at 89
> > snd0 pst=cfg: adding input1.level=124 at 90
> > snd0 pst=cfg: adding input0.mute=0 at 121
> > snd0 pst=cfg: adding input1.mute=0 at 122
> > snd0 pst=cfg: 48000Hz, s16le, play 0:1, rec 0:1, 16 blocks of 480 frames
> > snd0 pst=cfg: adding app/aucat0.level=127 at 0
> > aucat0 vol=127,pst=ini: using snd0 pst=ini.default, mode = 2
> > aucat0 vol=127,pst=ini,rmsg,widl: SETPAR message
> > aucat0 vol=127,pst=ini,rmsg,widl: recording channels 0:1 ->0:1
> > aucat0 vol=127,pst=ini,rmsg,widl: 48000Hz sample rate, 480 frame blocks
> > aucat0 vol=127,pst=ini,rmsg,widl: 9600 frame buffer
> > aucat0 vol=127,pst=ini,rmsg,widl: GETPAR message
> > aucat0 vol=127,pst=ini,rmsg,widl: GETPAR message
> > aucat0 vol=127,pst=ini,rmsg,w

Re: Internal Microphone on Thinkpad X1 Carbon 7th gen not working

2020-12-04 Thread Tom Smyth
Hello  Stefan,

have you checked the Bios is it disabled (for Privacy )   / (security)



On Fri, 4 Dec 2020 at 09:20, Stefan Hagen  wrote:

> Hello,
>
> I'm struggling to get the internal microphone working on my Thinkpad
> X1 Carbon 7th Gen.
>
> I can record from an external USB microphone on OpenBSD. It is only the
> internal microphone I'm struggling with.
>
> To rule out a hardware fault, I booted windows from a USB drive and the
> microphone works fine in this OS. While being there, I also updated the
> bios and thunderbolt firmware to the latest version.
>
> Is anyone here that got it working on this machine?
>
> dmesg:
> azalia0 at pci0 dev 31 function 3 "Intel 300 Series HD Audio" rev 0x11: msi
> azalia0: codecs: Realtek ALC285, Intel/0x280b, using Realtek ALC285
> audio0 at azalia0
>
> $ sysctl kern.audio.record
> kern.audio.record=1
>
> $ mixerctl -v
> inputs.dac-2:3=174,174
> inputs.dac-0:1=174,174
> record.adc-0:1_mute=off  [ off on ]
> record.adc-0:1=124,124
> record.adc-2:3_mute=off  [ off on ]
> record.adc-2:3=124,124
> outputs.spkr_source=dac-2:3  [ dac-2:3 ]
> outputs.spkr_mute=off  [ off on ]
> outputs.spkr_eapd=on  [ off on ]
> outputs.spkr2_source=dac-0:1  [ dac-2:3 dac-0:1 ]
> outputs.spkr2_mute=off  [ off on ]
> outputs.spkr2_boost=off  [ off on ]
> inputs.mic=85,85
> outputs.mic_dir=input-vr80  [ none input input-vr0 input-vr50 input-vr80
> input-vr100 ]
> outputs.hp_source=dac-0:1  [ dac-2:3 dac-0:1 ]
> outputs.hp_mute=off  [ off on ]
> outputs.hp_boost=off  [ off on ]
> outputs.hp_eapd=on  [ off on ]
> record.adc-2:3_source=mic  { mic }
> record.adc-0:1_source=mic  { mic }
> outputs.mic_sense=unplugged  [ unplugged plugged ]
> outputs.hp_sense=unplugged  [ unplugged plugged ]
> outputs.spkr_muters=hp  { hp }
> outputs.master=255,255
> outputs.master.mute=off  [ off on ]
> outputs.master.slaves=dac-2:3,dac-0:1,spkr,spkr2,hp  { dac-2:3 dac-0:1
> spkr spkr2 hp }
> record.volume=124,124
> record.volume.mute=off  [ off on ]
> record.volume.slaves=adc-0:1,adc-2:3  { adc-0:1 adc-2:3 mic }
> record.enable=sysctl  [ off on sysctl ]
>
> I also cranked inputs.mic and record.volume up to 255,255 - no
> difference.
>
> $ sndiod -ddd -f rsnd/0 -m play,rec # while aucat -o test.wav
> snd0 pst=cfg.default: rec=0:1 play=0:1 vol=23170 dup
> helper(helper|ini): created
> worker(worker|ini): created
> listen(/tmp/sndio/sock0|ini): created
> sock(sock|ini): created
> helper: recv: cmd = 0, num = 0, idx = 0, mode = 3, fd = -1
> helper: send: cmd = 3, num = 0, idx = 0, mode = 0, fd = 3
> helper: recv: cmd = 2, num = 0, idx = 0, mode = 768, fd = -1
> helper: send: cmd = 3, num = 0, idx = 0, mode = 0, fd = 3
> sock,rmsg,widl: AUTH message
> sock,rmsg,widl: HELLO message
> sock,rmsg,widl: hello from , mode = 2, ver 7
> snd0 pst=cfg: device requested
> worker: send: cmd = 0, num = 0, idx = 0, mode = 3, fd = -1
> worker: recv: cmd = 3, num = 0, idx = 0, mode = 0, fd = 6
> snd0 pst=cfg: using rsnd/0
> worker: send: cmd = 2, num = 0, idx = 0, mode = 768, fd = -1
> worker: recv: cmd = 3, num = 0, idx = 0, mode = 0, fd = 7
> sio(dev|ini): created
> sioctl(mix|ini): created
> snd0 pst=cfg: adding output0.level=255 at 25
> snd0 pst=cfg: adding output1.level=255 at 26
> snd0 pst=cfg: adding output0.mute=0 at 57
> snd0 pst=cfg: adding output1.mute=0 at 58
> snd0 pst=cfg: adding input0.level=124 at 89
> snd0 pst=cfg: adding input1.level=124 at 90
> snd0 pst=cfg: adding input0.mute=0 at 121
> snd0 pst=cfg: adding input1.mute=0 at 122
> snd0 pst=cfg: 48000Hz, s16le, play 0:1, rec 0:1, 16 blocks of 480 frames
> snd0 pst=cfg: adding app/aucat0.level=127 at 0
> aucat0 vol=127,pst=ini: using snd0 pst=ini.default, mode = 2
> aucat0 vol=127,pst=ini,rmsg,widl: SETPAR message
> aucat0 vol=127,pst=ini,rmsg,widl: recording channels 0:1 ->0:1
> aucat0 vol=127,pst=ini,rmsg,widl: 48000Hz sample rate, 480 frame blocks
> aucat0 vol=127,pst=ini,rmsg,widl: 9600 frame buffer
> aucat0 vol=127,pst=ini,rmsg,widl: GETPAR message
> aucat0 vol=127,pst=ini,rmsg,widl: GETPAR message
> aucat0 vol=127,pst=ini,rmsg,widl: START message
> aucat0 vol=127,pst=ini: recording s16le <- s16le
> cmap: nch = 2, ostart = 0, onext = 0, istart = 0, inext = 0
> aucat0 vol=127,pst=ini: allocated 9600/17280 fr buffers
> snd0 pst=ini: device started
> snd0 pst=run: started
> aucat0 vol=127,pst=run: attached at -7680, delta = 0
> aucat0 vol=127,pst=run: 48000Hz, s16le, rec 0:1, 20 blocks of 480 frames
> aucat0 vol=127,pst=run,rmsg,widl: building SETVOL message, vol = 127
> aucat0 vol=127,pst=run: prime = 16
> aucat0 vol=127,pst=run: prime = 15
> aucat0 vol=127,pst=run: prime = 14
> aucat0 vol=127,pst=run: prime = 13
> 

Internal Microphone on Thinkpad X1 Carbon 7th gen not working

2020-12-04 Thread Stefan Hagen
Hello,

I'm struggling to get the internal microphone working on my Thinkpad
X1 Carbon 7th Gen.

I can record from an external USB microphone on OpenBSD. It is only the
internal microphone I'm struggling with.

To rule out a hardware fault, I booted windows from a USB drive and the
microphone works fine in this OS. While being there, I also updated the 
bios and thunderbolt firmware to the latest version.

Is anyone here that got it working on this machine?

dmesg:
azalia0 at pci0 dev 31 function 3 "Intel 300 Series HD Audio" rev 0x11: msi
azalia0: codecs: Realtek ALC285, Intel/0x280b, using Realtek ALC285
audio0 at azalia0

$ sysctl kern.audio.record
kern.audio.record=1

$ mixerctl -v
inputs.dac-2:3=174,174
inputs.dac-0:1=174,174
record.adc-0:1_mute=off  [ off on ]
record.adc-0:1=124,124
record.adc-2:3_mute=off  [ off on ]
record.adc-2:3=124,124
outputs.spkr_source=dac-2:3  [ dac-2:3 ]
outputs.spkr_mute=off  [ off on ]
outputs.spkr_eapd=on  [ off on ]
outputs.spkr2_source=dac-0:1  [ dac-2:3 dac-0:1 ]
outputs.spkr2_mute=off  [ off on ]
outputs.spkr2_boost=off  [ off on ]
inputs.mic=85,85
outputs.mic_dir=input-vr80  [ none input input-vr0 input-vr50 input-vr80 
input-vr100 ]
outputs.hp_source=dac-0:1  [ dac-2:3 dac-0:1 ]
outputs.hp_mute=off  [ off on ]
outputs.hp_boost=off  [ off on ]
outputs.hp_eapd=on  [ off on ]
record.adc-2:3_source=mic  { mic }
record.adc-0:1_source=mic  { mic }
outputs.mic_sense=unplugged  [ unplugged plugged ]
outputs.hp_sense=unplugged  [ unplugged plugged ]
outputs.spkr_muters=hp  { hp }
outputs.master=255,255
outputs.master.mute=off  [ off on ]
outputs.master.slaves=dac-2:3,dac-0:1,spkr,spkr2,hp  { dac-2:3 dac-0:1 spkr 
spkr2 hp }
record.volume=124,124
record.volume.mute=off  [ off on ]
record.volume.slaves=adc-0:1,adc-2:3  { adc-0:1 adc-2:3 mic }
record.enable=sysctl  [ off on sysctl ]

I also cranked inputs.mic and record.volume up to 255,255 - no 
difference.

$ sndiod -ddd -f rsnd/0 -m play,rec # while aucat -o test.wav
snd0 pst=cfg.default: rec=0:1 play=0:1 vol=23170 dup
helper(helper|ini): created
worker(worker|ini): created
listen(/tmp/sndio/sock0|ini): created
sock(sock|ini): created
helper: recv: cmd = 0, num = 0, idx = 0, mode = 3, fd = -1
helper: send: cmd = 3, num = 0, idx = 0, mode = 0, fd = 3
helper: recv: cmd = 2, num = 0, idx = 0, mode = 768, fd = -1
helper: send: cmd = 3, num = 0, idx = 0, mode = 0, fd = 3
sock,rmsg,widl: AUTH message
sock,rmsg,widl: HELLO message
sock,rmsg,widl: hello from , mode = 2, ver 7
snd0 pst=cfg: device requested
worker: send: cmd = 0, num = 0, idx = 0, mode = 3, fd = -1
worker: recv: cmd = 3, num = 0, idx = 0, mode = 0, fd = 6
snd0 pst=cfg: using rsnd/0
worker: send: cmd = 2, num = 0, idx = 0, mode = 768, fd = -1
worker: recv: cmd = 3, num = 0, idx = 0, mode = 0, fd = 7
sio(dev|ini): created
sioctl(mix|ini): created
snd0 pst=cfg: adding output0.level=255 at 25
snd0 pst=cfg: adding output1.level=255 at 26
snd0 pst=cfg: adding output0.mute=0 at 57
snd0 pst=cfg: adding output1.mute=0 at 58
snd0 pst=cfg: adding input0.level=124 at 89
snd0 pst=cfg: adding input1.level=124 at 90
snd0 pst=cfg: adding input0.mute=0 at 121
snd0 pst=cfg: adding input1.mute=0 at 122
snd0 pst=cfg: 48000Hz, s16le, play 0:1, rec 0:1, 16 blocks of 480 frames
snd0 pst=cfg: adding app/aucat0.level=127 at 0
aucat0 vol=127,pst=ini: using snd0 pst=ini.default, mode = 2
aucat0 vol=127,pst=ini,rmsg,widl: SETPAR message
aucat0 vol=127,pst=ini,rmsg,widl: recording channels 0:1 ->0:1
aucat0 vol=127,pst=ini,rmsg,widl: 48000Hz sample rate, 480 frame blocks
aucat0 vol=127,pst=ini,rmsg,widl: 9600 frame buffer
aucat0 vol=127,pst=ini,rmsg,widl: GETPAR message
aucat0 vol=127,pst=ini,rmsg,widl: GETPAR message
aucat0 vol=127,pst=ini,rmsg,widl: START message
aucat0 vol=127,pst=ini: recording s16le <- s16le
cmap: nch = 2, ostart = 0, onext = 0, istart = 0, inext = 0
aucat0 vol=127,pst=ini: allocated 9600/17280 fr buffers
snd0 pst=ini: device started
snd0 pst=run: started
aucat0 vol=127,pst=run: attached at -7680, delta = 0
aucat0 vol=127,pst=run: 48000Hz, s16le, rec 0:1, 20 blocks of 480 frames
aucat0 vol=127,pst=run,rmsg,widl: building SETVOL message, vol = 127
aucat0 vol=127,pst=run: prime = 16
aucat0 vol=127,pst=run: prime = 15
aucat0 vol=127,pst=run: prime = 14
aucat0 vol=127,pst=run: prime = 13
aucat0 vol=127,pst=run: prime = 12
aucat0 vol=127,pst=run: prime = 11
aucat0 vol=127,pst=run: prime = 10
aucat0 vol=127,pst=run: prime = 9
aucat0 vol=127,pst=run: prime = 8
aucat0 vol=127,pst=run: prime = 7
aucat0 vol=127,pst=run: prime = 6
aucat0 vol=127,pst=run: prime = 5
aucat0 vol=127,pst=run: prime = 4
aucat0 vol=127,pst=run: prime = 3
aucat0 vol=127,pst=run: prime = 2
aucat0 vol=127,pst=run: prime = 1
aucat0 vol=127,pst=run,rmsg,widl: STOP message
aucat0 vol=127,pst=run: stopping
aucat0 vol=127,pst=run: detaching
aucat0 vol=127,pst=ini,rmsg,widl: stopped
aucat0 vol=127,pst=ini,rmsg,widl: building STOP message
aucat0 vol=127,pst=ini,rmsg,widl: BYE message
aucat0 vol=127,p