Re: Microphone on Thinkpad X1 carbon 7th Gen

2023-12-05 Thread Corl3ss




On 05/12/2023 10:11, Stefan Hagen wrote:

Corl3ss wrote (2023-12-05 09:18 CET):



On 04/12/2023 23:12, Carsten Reith wrote:

Corl3ss  writes:


Hi everyone,


Everything but the microphone is working well on my Thinkpad X1 carbon 7th Gen
(20QD).

I have reviewed [1] and [2] without solution.
Below some useful data.



Have you enabled the appropriate sysctl ? (see:
https://www.openbsd.org/faq/faq13.html#recordaudio)

# sysctl kern.audio.record=1
# echo kern.audio.record=1 >> /etc/sysctl.conf


Thanks Carsten for your answer !

Yes, sure (and sorry I did not mention that on my first message).


Here is a list of platforms who's microphones won't work on OpenBSD:
https://thesofproject.github.io/latest/platforms/index.html#supported-platforms

Microphones in many modern Laptops don't work. Thanks to intel smart sound 
technology (Intel SST),
microphones now need a firmware (https://github.com/thesofproject/sof) and 
nobody has written a
driver for OpenBSD yet.

You can use a headset on the headset port and the microphone there should work. 
It's only the
builtin mic that won't do anything (even though all toggles in mixerctl / 
sndioctl appear operational).

Fun part reg SOF: it doesn't build with clang, see FAQ:
https://thesofproject.github.io/latest/introduction/index.html

So - I don't think we'll see mic support for these platforms anytime soon.

Best Regards,
Stefan


Thanks a lot for your precise answer Stefan. Very kind of you.

It does not seems to work neither with the headset port but will give it 
another try :)


Thanks again !
Have a nice day Stefan, have a nice day all !

Corl3ss



Re: Microphone on Thinkpad X1 carbon 7th Gen

2023-12-05 Thread Corl3ss




On 04/12/2023 23:12, Carsten Reith wrote:

Corl3ss  writes:


Hi everyone,


Everything but the microphone is working well on my Thinkpad X1 carbon 7th Gen
(20QD).

I have reviewed [1] and [2] without solution.
Below some useful data.



Have you enabled the appropriate sysctl ? (see:
https://www.openbsd.org/faq/faq13.html#recordaudio)

# sysctl kern.audio.record=1
# echo kern.audio.record=1 >> /etc/sysctl.conf


Thanks Carsten for your answer !

Yes, sure (and sorry I did not mention that on my first message).

Corl3ss



Microphone on Thinkpad X1 carbon 7th Gen

2023-12-04 Thread Corl3ss

Hi everyone,


Everything but the microphone is working well on my Thinkpad X1 carbon 
7th Gen (20QD).


I have reviewed [1] and [2] without solution.
Below some useful data.

Do you have any solution or tips ? Did I missed something ? or is it 
just not supported ?


Thanks in advance for your help !!

Grateful to the OpenBSD community :)


Corl3ss


[1] https://cdn.openbsd.org/pub/OpenBSD/7.4/amd64/install74.img
[2] https://jcs.org/2019/08/14/x1c7#openbsd-support-log

==
# mixerctl
inputs.dac-2:3=112,112
inputs.dac-0:1=112,112
record.adc-0:1_mute=off
record.adc-0:1=252,252
record.adc-2:3_mute=off
record.adc-2:3=252,252
outputs.spkr_source=dac-2:3
outputs.spkr_mute=off
outputs.spkr_eapd=on
outputs.spkr2_source=dac-0:1
outputs.spkr2_mute=off
outputs.spkr2_boost=off
inputs.mic=85,85
outputs.mic_dir=input-vr80
outputs.hp_source=dac-0:1
outputs.hp_mute=off
outputs.hp_boost=off
outputs.hp_eapd=on
record.adc-2:3_source=mic
record.adc-0:1_source=mic
outputs.mic_sense=unplugged
outputs.hp_sense=unplugged
outputs.spkr_muters=hp
outputs.master=112,112
outputs.master.mute=off
outputs.master.slaves=dac-2:3,dac-0:1,spkr,spkr2,hp
record.volume=255,255
record.volume.mute=off
record.volume.slaves=adc-0:1,adc-2:3
record.enable=sysctl


=
/var/log/messages extract:
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

==
# pcidump -v (extract of audio items only)
 0:31:3: Intel 100 Series HD Audio
0x: Vendor ID: 8086, Product ID: 9d70
0x0004: Command: 0106, Status: 0010
0x0008: Class: 04 Multimedia, Subclass: 03 HD Audio,
Interface: 00, Revision: 21
0x000c: BIST: 00, Header Type: 00, Latency Timer: 20,
Cache Line Size: 00
0x0010: BAR mem 64bit addr: 0xef22/0x4000
0x0018: BAR empty ()
0x001c: BAR empty ()
0x0020: BAR mem 64bit addr: 0xef20/0x0001
0x0028: Cardbus CIS: 
0x002c: Subsystem Vendor ID: 103c Product ID: 8184
0x0030: Expansion ROM Base Address: 
0x0038: 
0x003c: Interrupt Pin: 01 Line: 0b Min Gnt: 00 Max Lat: 00
0x0050: Capability 0x01: Power Management
State: D0
0x0060: Capability 0x05: Message Signalled Interrupts (MSI)
Enabled: yes
[...]
 0:31:3: Intel 300 Series HD Audio
0x: Vendor ID: 8086, Product ID: 9dc8
0x0004: Command: 0006, Status: 0010
0x0008: Class: 04 Multimedia, Subclass: 03 HD Audio,
Interface: 80, Revision: 11
0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
Cache Line Size: 00
0x0010: BAR mem 64bit addr: 0xea23c000/0x4000
0x0018: BAR empty ()
0x001c: BAR empty ()
0x0020: BAR mem 64bit addr: 0xea00/0x0010
0x0028: Cardbus CIS: 
0x002c: Subsystem Vendor ID: 17aa Product ID: 2292
0x0030: Expansion ROM Base Address: 
0x0038: 
0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00
0x0050: Capability 0x01: Power Management
State: D0
0x0080: Capability 0x09: Vendor Specific
0x0060: Capability 0x05: Message Signalled Interrupts (MSI)
Enabled: yes