Bug 219902 - Internal microphone on Asus X515JA gives no sound starting 6.12.14
Summary: Internal microphone on Asus X515JA gives no sound starting 6.12.14
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Sound(ALSA) (show other bugs)
Hardware: Intel Linux
: P3 blocking
Assignee: Jaroslav Kysela
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-20 20:28 UTC by Kiran
Modified: 2025-03-26 14:55 UTC (History)
2 users (show)

See Also:
Kernel Version: 6.12.14 and up
Subsystem:
Regression: Yes
Bisected commit-id: ef814c88415132f0597a09d8a16fcd78c04599fc


Attachments
journalctl --no-hostname -k > dmesg.txt (92.11 KB, text/plain)
2025-03-20 20:28 UTC, Kiran
Details
lspci -v (6.16 KB, text/plain)
2025-03-20 20:38 UTC, Kiran
Details
dmidecode output (13.72 KB, text/plain)
2025-03-20 20:41 UTC, Kiran
Details
Bisect log (1.64 KB, text/plain)
2025-03-26 11:14 UTC, Kiran
Details
not working alsainfo (45.86 KB, text/plain)
2025-03-26 11:49 UTC, Kiran
Details
Working alsainfo (46.00 KB, text/plain)
2025-03-26 11:53 UTC, Kiran
Details
Fix patch (1.56 KB, patch)
2025-03-26 13:40 UTC, Takashi Iwai
Details | Diff

Description Kiran 2025-03-20 20:28:35 UTC
Created attachment 307874 [details]
journalctl --no-hostname -k > dmesg.txt

Since kernel version 6.12.14 the internal microphone on an Asus X515JA stops working. It is listed as an input, but it gives no sound. 

It works perfectly on 6.12.13 and under, stopped working on 6.12.14 and up.

I am on a default fedora workstation installation (comes with pipewire), except to make this bug report I installed a vanilla kernel by following https://docs.fedoraproject.org/en-US/quick-docs/kernel-build-custom/ with the latest 6.13.7 tarball from kernel.org. On the vanilla kernel the issue is still present, while on older kernels it is not.

A while ago I reported this to redhat as well, one person claims to also experience this issue as of 6.12.14 https://bugzilla.redhat.com/show_bug.cgi?id=2347640

The issue is just with the internal microphone as my USB microphone works.

I attached dmesg, please let me know if there is anything else I should provide.

Any help is much appreciated.
Comment 1 Kiran 2025-03-20 20:37:22 UTC
If anyone has a patch I could test that would be amazing
Comment 2 Kiran 2025-03-20 20:38:21 UTC
Created attachment 307875 [details]
lspci -v
Comment 3 Kiran 2025-03-20 20:41:20 UTC
Created attachment 307876 [details]
dmidecode output
Comment 4 Artem S. Tashkinov 2025-03-21 08:52:08 UTC
First try 6.13.7 and if it still doesn't work, please try to bisect:

https://docs.kernel.org/admin-guide/bug-bisect.html
Comment 5 Kiran 2025-03-21 11:22:31 UTC
Im currently on vanilla 6.13.7, I will do a a bisect when I get home on Sunday.
Comment 6 Kiran 2025-03-26 11:13:36 UTC
(In reply to Artem S. Tashkinov from comment #4)
> First try 6.13.7 and if it still doesn't work, please try to bisect:
> 
> https://docs.kernel.org/admin-guide/bug-bisect.html

I did a bisect, sorry it took so long i was accidentally doing a full rebuild every time.

The bad commit ID is ef814c88415132f0597a09d8a16fcd78c04599fc https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ef814c88415132f0597a09d8a16fcd78c04599fc
I will attach the log
Comment 7 Kiran 2025-03-26 11:14:05 UTC
Created attachment 307894 [details]
Bisect log
Comment 8 Takashi Iwai 2025-03-26 11:33:34 UTC
The likely culprit is rather 3b4309546b48fc167aa615a2d881a09c0a97971f (and its backport to stable trees).

Please give alsa-info.sh outputs from both working and non-working cases.
Run the script with --no-upload and attach the outputs to Bugzilla.
Comment 9 Kiran 2025-03-26 11:49:52 UTC
Created attachment 307895 [details]
not working alsainfo

Here is the alsainfo when it's not working
Comment 10 Kiran 2025-03-26 11:53:26 UTC
Created attachment 307896 [details]
Working alsainfo

This is for kernel 6.12.0 because that's what i had installed without having to do a full rebuild.
Comment 11 Takashi Iwai 2025-03-26 13:07:39 UTC
Thanks.  Could you try to pass model=1043:1271 option to snd-hda-intel module?
e.g. boot with "snd_hda_intel.model=1043:1271" boot option.
This should apply the existing quirk that can match with your device.
Comment 12 Kiran 2025-03-26 13:17:48 UTC
(In reply to Takashi Iwai from comment #11)
> Thanks.  Could you try to pass model=1043:1271 option to snd-hda-intel
> module?
> e.g. boot with "snd_hda_intel.model=1043:1271" boot option.
> This should apply the existing quirk that can match with your device.

When booting with that option the microphone works! Is there a way to make that default for this device somehow though?
Comment 13 Takashi Iwai 2025-03-26 13:38:41 UTC
The proper fix patch is below.
Comment 14 Takashi Iwai 2025-03-26 13:40:20 UTC
Created attachment 307897 [details]
Fix patch
Comment 15 Kiran 2025-03-26 13:42:57 UTC
Awesome thank you so much! I will test it in an hour or so when the latest kernel from git is done building. What version of the kernel would this be in?
Comment 16 Takashi Iwai 2025-03-26 13:55:33 UTC
It slipped from my PR that has been submitted today, so it'll be likely in the second batch for 6.15-rc1 in the next week.  Then it'll be backported to stable trees afterwards.
Comment 17 Kiran 2025-03-26 14:55:53 UTC
(In reply to Takashi Iwai from comment #16)
> It slipped from my PR that has been submitted today, so it'll be likely in
> the second batch for 6.15-rc1 in the next week.  Then it'll be backported to
> stable trees afterwards.

Alright just tested, on the latest git version the microphone works only with your patch applied.
Thank you so much for your work, can't wait until this hits stable!

This issue is now resolved.

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