Bug 206121 - alc283 no external mic. combo jack
Summary: alc283 no external mic. combo jack
Status: RESOLVED PATCH_ALREADY_AVAILABLE
Alias: None
Product: Drivers
Classification: Unclassified
Component: Sound(ALSA) (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Jaroslav Kysela
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-08 04:59 UTC by andrx
Modified: 2020-08-13 13:40 UTC (History)
2 users (show)

See Also:
Kernel Version: 5.3.0-24
Subsystem:
Regression: No
Bisected commit-id:


Attachments
alsa-info without anything plugged into combo jack (41.42 KB, text/plain)
2020-01-08 05:01 UTC, andrx
Details
alsa-info with headset plugged into combo jack (41.41 KB, text/plain)
2020-01-08 05:03 UTC, andrx
Details
PinConfigOverrideVerbs from windows10 (2.26 KB, text/x-ms-regedit)
2020-01-29 15:14 UTC, andrx
Details
GlobalSettings from windows10 (2.85 KB, text/x-ms-regedit)
2020-01-29 15:18 UTC, andrx
Details
Settings from Windows (8.05 KB, text/x-ms-regedit)
2020-01-29 15:20 UTC, andrx
Details
Fix patch (1.40 KB, patch)
2020-06-16 12:48 UTC, Takashi Iwai
Details | Diff

Description andrx 2020-01-08 04:59:12 UTC
As suggested during discussion of the issue at https://forums.linuxmint.com/viewtopic.php?f=49&t=308376&p=1738216
opening the ticket here. As mentioned on the mint forum, I tried several things but unsuccessful.

I have Aspire VN7-591G. I don't see external mic when plugging it into combojack.

Attaching alsa-info
Comment 1 andrx 2020-01-08 05:01:41 UTC
Created attachment 286677 [details]
alsa-info without anything plugged into combo jack
Comment 2 andrx 2020-01-08 05:03:58 UTC
Created attachment 286679 [details]
alsa-info with headset plugged into combo jack
Comment 3 andrx 2020-01-29 15:14:58 UTC
Created attachment 287019 [details]
PinConfigOverrideVerbs from windows10

I installed win10 pro on that machine (it works fine there).
Grabbed PinConfigOverrideVerbs (attached) from regedit for the alc283.

Tried to decode it. Got this:

012 71C A0
012 71D 01
012 71E A6
012 71F 90
-> 0x90a601a0

014 71C 10
014 71D 01
014 71E 17
014 71F 90
-> 0x90170110

017 71C 08
017 71D 00
017 71E 02
017 71F 40
-> 0x40020008

018 71C F0
018 71D 11
018 71E 11
018 71F 41
-> 0x411111f0
	    
019 71C F0
019 71D 11
019 71E 11
019 71F 41
-> 0x411111f0
	    
01A 71C F0
01A 71D 11
01A 71E 11
01A 71F 41
-> 0x411111f0
	    
01B 71C F0
01B 71D 11
01B 71E 11
01B 71F 41
-> 0x411111f0
	    
01D 71C 01
01D 71D 00
01D 71E E0
01D 71F 40
-> 0x40e00001
	    
01E 71C F0
01E 71D 11
01E 71E 11
01E 71F 41
-> 0x411111f0
	    
021 71C 1F
021 71D 10
021 71E 21
021 71F 03
-> 0x0321101f


so this is basically default values for each pin that i see on hdajackretask.

I compared it with:

root@laptop:/home/andrx# cat /lib/firmware/hda-jack-retask.fw 
[codec]
0x10ec0283 0x10250926 0

[pincfg]
0x12 0x90a601a0
0x14 0x90170110
0x17 0x40020008
0x18 0x411111f0
0x19 0x411111f0
0x1a 0x411111f0
0x1b 0x411111f0
0x1d 0x40e00001
0x1e 0x411111f0
0x21 0x0321101f


and looks the same
Comment 4 andrx 2020-01-29 15:18:04 UTC
Created attachment 287021 [details]
GlobalSettings from windows10

GlobalSettings from windows mention hp mode = true
Comment 5 andrx 2020-01-29 15:20:31 UTC
Created attachment 287023 [details]
Settings from Windows

in windows Settings you can see the pins that are probably remapped on Windows side. It doesn't mention 0x14 probably because it just uses default settings but the other ones are here: Pin12, Pin19, Pin21.

"Pin12"=hex:01,00,00,00
"Pin19"=hex:30,00,00,00
"Pin21"=hex:32,00,00,00

I wish I knew what these HEXes mean
Comment 6 andrx 2020-06-15 04:12:26 UTC
Finally, what helped me was to flip the cards order

options snd-hda-intel model=auto,dell-headset-multi index=1,0
Comment 7 Takashi Iwai 2020-06-15 09:11:43 UTC
Could you check whether using "headset-mode" instead of "dell-headset-multi" works instead?  The latter includes the former, but the question is whether the pin overrides in dell-headset-multi is still needed on yours or not.

Once when you confirm, I can write up a patch to set up the quirk statically in the driver.
Comment 8 andrx 2020-06-16 06:36:18 UTC
Sure. I've just checked it.
"headset-mode" doesn't work.
Comment 9 Takashi Iwai 2020-06-16 12:48:15 UTC
OK, then the patch is below.  With this patch applied, the driver should work without passing model option.  You can keep the index option as is if you want to put the onboard audio as the primary device.

Let me know if that works.  Once after confirmation, I'll submit to the upstream and merge it.
Comment 10 Takashi Iwai 2020-06-16 12:48:36 UTC
Created attachment 289701 [details]
Fix patch
Comment 11 andrx 2020-06-18 04:37:04 UTC
Thank you. I'll let you know later this week
Comment 12 andrx 2020-06-23 03:26:36 UTC
Sorry, charger died for the laptop. Ordered a new one. will take some time.
Will update you once i test it.
Comment 13 andrx 2020-07-09 04:11:23 UTC
(In reply to Takashi Iwai from comment #10)
> Created attachment 289701 [details]
> Fix patch

Tested the patch today. Thank you. It worked

Note You need to log in before you can comment on or make changes to this bug.