Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1759432 - Microphone not recognized on Spectre X360 13" (2018) model ap03xxng
Summary: Microphone not recognized on Spectre X360 13" (2018) model ap03xxng
Keywords:
Status: CLOSED DUPLICATE of bug 1772498
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 31
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jaroslav Kysela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1750194
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-08 07:31 UTC by dovla091
Modified: 2019-11-19 08:41 UTC (History)
19 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-19 08:41:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Latest dmesg (99.41 KB, text/plain)
2019-10-08 07:31 UTC, dovla091
no flags Details
older kernel version dmesg output (95.78 KB, text/plain)
2019-10-08 07:32 UTC, dovla091
no flags Details
Alsa info old output (kernel 5.4-rc1) (42.24 KB, text/plain)
2019-10-08 07:33 UTC, dovla091
no flags Details
Alsa info old output (kernel 5.4-rc2) (42.18 KB, text/plain)
2019-10-08 07:33 UTC, dovla091
no flags Details

Description dovla091 2019-10-08 07:31:47 UTC
Created attachment 1623428 [details]
Latest dmesg

Description of problem:
Internal microphone is not recognized, and possibly front speakers (as I don't hear the sound)


Version-Release number of selected component (if applicable):
Kernel release: 5.4.0-0.rc2.git0.1.fc32.x86_64
Driver version: k5.4.0-0.rc2.git0.1.fc32.x86_64
Utilities version:  1.1.9

tested with previous kernels as well starting from 5.0.x, 5.1.x, 5.2.x and 5.3.1. Even rawhide is not supporting Realtek ALC285 

alsa-info script included in the attachment

How reproducible:
Use any HP Spectre X360 (2018) 13" model ap03xxng
load Fedora 30 or 31, and check for Microphone in the settings.
Also it appears that not all speakers are working, but only 2 out of 4


Actual results:
After testing on Fedora 30, 31 with kernels which I wrote above, the microphone detection is missing. Also sound to all 4 speakers are not recognized.


Expected results:
Microphone should be supported, and speakers as well

module: Realtek ALC285


Additional info:

In the attachment you might find alsa-info script output, and dmesg from my PC.

Comment 1 dovla091 2019-10-08 07:32:31 UTC
Created attachment 1623429 [details]
older kernel version dmesg output

Comment 2 dovla091 2019-10-08 07:33:05 UTC
Created attachment 1623430 [details]
Alsa info old output (kernel 5.4-rc1)

Comment 3 dovla091 2019-10-08 07:33:52 UTC
Created attachment 1623431 [details]
Alsa info old output (kernel 5.4-rc2)

Comment 4 dovla091 2019-10-08 18:03:09 UTC
There were some attempts to patch this issue in regards to internal microphone and all 4 speakers.

While investigating this issue, I found this sit with the same issue. It appears that someone created a patch.


So, the patch for this is made and available here: https://github.com/gled-rs/linux-hp_ap0xxx

Since I don't have a hw programming knowledge, perhaps someone can look at this patch, review it and if it is good/valid, to implement it in the new version.

Comment 5 dovla091 2019-10-08 18:04:33 UTC
Sorry I forgot to give a link to site where I found similar issue: https://wiki.archlinux.org/index.php/HP_Spectre_x360_-_13-ap0xxxx

Comment 6 Tim Jackson 2019-10-09 20:12:49 UTC
This bug is filed against the alsa-firmware package but doesn't sound like a
problem with alsa-firmware.
alsa-firmware contains firmware drivers for a very small number of specialist 
sound cards only.

Please be aware that problems with sound can be caused by many different
software components within a Fedora system (including ALSA kernel modules,
PulseAudio, desktop volume controls, individual applications and more) and
you may find it easier to get some informal help to track down the problem 
before filing bugs (if necessary), so that you can file them against the 
right component and the appropriate person can help.

Information about debugging sound problems can be found here:
https://fedoraproject.org/wiki/How_to_debug_sound_problems

General help resources are listed here:
https://fedoraproject.org/wiki/Communicating_and_getting_help

Comment 7 dovla091 2019-10-10 06:36:18 UTC
ok, so what about microphone which is not listed? Again, the bug was filed primarily for microphone which is not recognized.

Comment 8 Jaroslav Kysela 2019-10-10 08:27:43 UTC
It's Intel's Cannonlake platform. Most likely, the digital microphone (DMIC) is connected directly to the DSP. You need sof-pci-dev driver and appropriate firmware. Unfortunately, not all pieces are ready for the distributions (firmware, UCM configs, the kernel auto-detection for such hardware). We are working on it with Intel. Please, wait for few weeks.

Comment 9 dovla091 2019-10-10 08:56:09 UTC
Hi Jaroslav.
Thanks for the explanation. I am only a sys engineer, so in regards to hardware and programming part, I rather chose to report and leave it to the experts in that field.
Once again thank for response and looking forward for your patch to be released.

Brgds.

Comment 10 dovla091 2019-10-25 19:17:51 UTC
Hi again, 
any progress on this issue? Is there any kernel mailing list where I can keep a track on the progress instead of bugging you and writing a message on bugzilla?

warmest regards

Comment 11 Jaroslav Kysela 2019-10-31 18:15:16 UTC
Unfortunately, this issue hits the kernel, firmware and the user space packages. I have an update for you: The functional SOF driver will be in the kernel 5.5 (requires to add SOF firmware files version 1.3.0) and the working configuration will be in the alsa-ucm package version 1.1.10. So we need to push all those bits to Fedora when released.

Comment 12 dovla091 2019-10-31 18:25:30 UTC
Hi again. Thnx for keeping me in a loop.
And many thanks for taking a huge effort for fixing things and making our hardware useful.

Best regards.

Comment 13 Jaroslav Kysela 2019-11-19 08:41:44 UTC
Okay, things are finally moving. I will continue in bug#1772498 and closing this as a duplicate. Please, test the kernel + user space.

*** This bug has been marked as a duplicate of bug 1772498 ***


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