external mic not detected on machines with alc256 codec

Bug #1447909 reported by Hui Wang
40
This bug affects 7 people
Affects Status Importance Assigned to Milestone
HWE Next
Fix Released
High
Hui Wang
linux (Ubuntu)
Fix Released
High
Hui Wang

Bug Description

This bug is used for tracking, please do not triage.

Hui Wang (hui.wang)
Changed in hwe-next:
assignee: nobody → Hui Wang (hui.wang)
Changed in linux (Ubuntu):
importance: Undecided → High
Changed in hwe-next:
importance: Undecided → High
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1447909

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Hui Wang (hui.wang) wrote :

commit e8191a8e475551b277d85cd76c3f0f52fdf42e86
Author: Hui Wang <email address hidden>
Date: Fri Apr 24 13:39:59 2015 +0800

    ALSA: hda - fix headset mic detection problem for one more machine

    We have two machines with alc256 codec in the pin quirk table, so
    moving the common pins to ALC256_STANDARD_PINS.

    Cc: <email address hidden>
    BugLink: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1447909
    Signed-off-by: Hui Wang <email address hidden>
    Signed-off-by: Takashi Iwai <email address hidden>

Changed in hwe-next:
status: New → Fix Released
Changed in linux (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Brad Figg (brad-figg) wrote :

This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-vivid' to 'verification-done-vivid'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: verification-needed-vivid
Hui Wang (hui.wang)
tags: added: verification-done-vivid
removed: verification-needed-vivid
Revision history for this message
Riyafa Abdul Hameed (riyafa-q) wrote :

Same issue here on asus F555U. How to resolve it?

Revision history for this message
Riyafa Abdul Hameed (riyafa-q) wrote :

My kernel is 4.2.0-27-generic

Revision history for this message
Hui Wang (hui.wang) wrote :

@Riyafa,

Please upload the alsa-info.txt generated on your machine.

Please refer to https://wiki.ubuntu.com/Audio/AlsaInfo

Revision history for this message
Riyafa Abdul Hameed (riyafa-q) wrote :

I have attached the alsa info here

Revision history for this message
Hui Wang (hui.wang) wrote :

This bug is for headset microphone, after the headset is plugged in, the headset mic can't be detected.

I don't know if your problem is same as this one or not.

Anyway test this dkms.

$sudo dpkg -i oem-audio-hda-daily-dkms_0.1_all.deb
$sudo reboot

redo the test to see if it can fix your problem.

Revision history for this message
Riyafa Abdul Hameed (riyafa-q) wrote :

Now the "Headset Microphone" is shown in the sound settings, but it doesn't seem to capture any sound.

Revision history for this message
Riyafa Abdul Hameed (riyafa-q) wrote :

I installed ubuntu 16.04. What is the driver I could use on it? The given driver doesn't work

Revision history for this message
Riyafa Abdul Hameed (riyafa-q) wrote :

I installed ubuntu 16.04. What is the driver I could use on it? The given driver doesn't work. Now the kernel is 4.4.0-22-generic

Revision history for this message
Hui Wang (hui.wang) wrote :

If the problem is not fixed in the mainline kernel, It will have the same result no matter what drivers you try.

Do you still remember what testing steps you performed for the comment #9?

Revision history for this message
senya (senya) wrote :

Besides this I also have an issue with automatic detection of headphones plugging. May that be related? If I manually point pavucontrol to headphones, they work fine, but still being shown as "unplugged".

I tried installing oem-audio-hda-daily-dkms from https://launchpad.net/~ubuntu-audio-dev/+archive/ubuntu/alsa-daily/+packages and that didn't help.

Revision history for this message
Hui Wang (hui.wang) wrote :

@senya,

Please upload the alsa-info.txt generated on your machine.

Please refer to https://wiki.ubuntu.com/Audio/AlsaInfo

Revision history for this message
senya (senya) wrote :
Revision history for this message
Hui Wang (hui.wang) wrote :

@senya,

There are lots of error logs in the dmesg:
[31989.266951] snd_soc_skl: disagrees about version of symbol snd_hdac_ext_bus_link_power_down_all
[31989.266953] snd_soc_skl: Unknown symbol snd_hdac_ext_bus_link_power_down_all (err -22)
[31989.266966] snd_soc_skl: disagrees about version of symbol snd_hdac_bus_send_cmd
[31989.266967] snd_soc_skl: Unknown symbol snd_hdac_bus_send_cmd (err -22)
[31989.266971] snd_soc_skl: disagrees about version of symbol snd_hdac_bus_enter_link_reset
[31989.266972] snd_soc_skl: Unknown symbol snd_hdac_bus_enter_link_reset (err -22)
[31989.266974] snd_soc_skl: disagrees about version of symbol snd_hdac_bus_get_response
[31989.266975] snd_soc_skl: Unknown symbol snd_hdac_bus_get_response (err -22)

Let us temporarily move the /lib/modules/4.4.0-36-generic/kernel/sound/soc to a place, e.g. $sudo mv /lib/modules/4.4.0-36-generic/kernel/sound/soc ~/;sudo reboot

Then test if headphone detection works fine or not.

And you can restore that folder to the original place anytime you want.

If move the folder soc/ does not help to fix headphone detection problem, Please also generate alsa-info.txt, this time please generate two, one is generated without headphone plugged, and another is generated with headphone plugged.

thx.

Revision history for this message
MIFAS (mmifas) wrote :

I've same laptop and 16.04 with latest update. My alsa log file
http://www.alsa-project.org/db/?f=37fccb98d36632887b82b768157dca2a46d817d3

I've the same issue. Sound working in laptop speaker. When I plugged in the headset, sometimes sound coming though both. I can configure in alsamixer. But That is not propper solution at all. And MICROPHONE NOT WORKING AT ALL.

Revision history for this message
senya (senya) wrote : Re: [Bug 1447909] Re: external mic not detected on machines with alc256 codec

@ hui.wang, I don't have this laptop currently with me. Probably I'll be
able to test this only after a month. Thanks for help!

Revision history for this message
Hui Wang (hui.wang) wrote :

@mmifas,

About your comment "When I plugged in the headset, sometimes sound coming though both. I can configure in alsamixer", in that situation, the sound is supposed to be played through headphone, so could you please generate 2 alsa-info.txt, the first one is generated when problem is reproduced, the second one is generated after you use alsamixer to workaround this problem.

thx.

Revision history for this message
MIFAS (mmifas) wrote :

@hui.wang

This is before changing the alsamixer and before plugged in the headset
http://www.alsa-project.org/db/?f=d2bc312661205b5868695b5c23a669720ac1fe5d

This is after changing the alsamixer and plugged in the headset(sound coming though speaker and headset)
http://www.alsa-project.org/db/?f=073766b215d6845aec7e4a26a012c1d48571cb31

This is after reduce the speaker volume to 0.( Now only headset is working)
http://www.alsa-project.org/db/?f=15e4fb459a359ad064051af59be92088eef12512

Revision history for this message
Hui Wang (hui.wang) wrote :

@mmifas,

According to the alsa-info.txt of the #20, it looks like the audio driver did not detect the headphone/headset plugging event at all, if it detects the plug/unplug event, the pulseaudio will automatically switch the output from the speaker to headphone, don't need you to manually change the alsamixer stuffs.

I guess after you plug in the headphone/headset, the output still only comes from speaker, then you use some way (like using the pavucontrol mentioned in the #13) to let the headphone work, but the driver and pulseaudio still think the headphone is not plugged, as a result the sound will be played out both from the speaker and headphone.

Please check /proc/interrupts on your machine, and notice the line end with the key word snd_hda_intel, this is the interrupt count for sound driver, plug and unplug the headset/headphone, let us see if this will trigger interrupt or not.

thx.

Revision history for this message
MIFAS (mmifas) wrote :

I've something like this
 131: 54 0 66 0 IR-PCI-MSI 514048-edge snd_hda_intel

Revision history for this message
Hui Wang (hui.wang) wrote :

After plugging or unplugging the headset, does the number in the #22 increase, if it does, it means the plug/unplug can trigger the interrupt, otherwise it can't.

thx.

Revision history for this message
MIFAS (mmifas) wrote :

I'm not sure when its increasing, I tried couple of times, value doesn't change. This is current value
131: 17 10 1810 184 IR-PCI-MSI 514048-edge snd_hda_intel:card0

Revision history for this message
Hui Wang (hui.wang) wrote :

It seems the plug/unplug the headset can't trigger the interrupt.

Please run $sudo hdajacksensetest -c 0 -a

Then plug the headset,

rerun the $sudo hdajacksensetest -c 0 -a

And upload the output of the above to launchpad.

BTW, does the internal microphone work on your machine?

Revision history for this message
MIFAS (mmifas) wrote :

sudo: hdajacksensetest: command not found

But I've installed hdajackretask

Revision history for this message
Hui Wang (hui.wang) wrote :

sudo apt install alsa-tools

Then you will have this command.

Revision history for this message
MIFAS (mmifas) wrote :

This is before plug the headset
Pin 0x12 (Internal Mic, ATAPI): present = No
Pin 0x13 (Not connected): present = No
Pin 0x14 (Internal Speaker, ATAPI): present = No
Pin 0x18 (Pink Mic, Rear side): present = No
Pin 0x19 (Not connected): present = No
Pin 0x1a (Internal Mic): present = No
Pin 0x1b (Not connected): present = Yes
Pin 0x1d (Not connected): present = No
Pin 0x1e (Not connected): present = No
Pin 0x21 (Black Headphone, Right side): present = No

This is after
Pin 0x12 (Internal Mic, ATAPI): present = No
Pin 0x13 (Not connected): present = No
Pin 0x14 (Internal Speaker, ATAPI): present = No
Pin 0x18 (Pink Mic, Rear side): present = No
Pin 0x19 (Not connected): present = No
Pin 0x1a (Internal Mic): present = No
Pin 0x1b (Not connected): present = Yes
Pin 0x1d (Not connected): present = No
Pin 0x1e (Not connected): present = No
Pin 0x21 (Black Headphone, Right side): present = No

Revision history for this message
Hui Wang (hui.wang) wrote :

@mmifas,

Thank you for your testing result, and It looks like the headphone (0x21) can't detect the plug/unplug. I have no idea why this happened.

I already asked for help from Realtek technical expert, he suggested we turn on the hidden register (0x20), then generate an alsa-info.txt.

To do so, please follow the steps as below:

1. sudo echo 1 > /sys/modules/snd_hda_codec/parameters/dump_coef

2. generate a new alsa-info.txt and upload it to launchpad. (refer to #14).

Thanks.

Revision history for this message
MIFAS (mmifas) wrote :

When the fixed gonna release?

Revision history for this message
Hui Wang (hui.wang) wrote :

There is no fix yet. And realtek engineer told me that he met the similar problem on the Dell laptop before, but it was proven a hardware problem (headphone can't be detected).

So does the headphone work well under Windows on your machine?

Revision history for this message
MIFAS (mmifas) wrote :

Perfectly working on Windows.

Revision history for this message
MIFAS (mmifas) wrote :

I've Dell 5000 Series, And sound card model is ALC3234, In that laptop, When I plug the headset, A dialogue is a popup, Unknown Audio device(see the attachment), Then, When I select Headset, the headset is working, Likewise, Can't you give us a fix like that?

Revision history for this message
Hui Wang (hui.wang) wrote :

They are different, on Dell laptop, the audio jack can detect the headphone plug/unplug, this is the pre-condition for fixing the headset-mic problem.

But on your Asus laptop, the audio jack can't detect any plug/unplug, so even apply the same fix to this machine it will not work.

Revision history for this message
MIFAS (mmifas) wrote :

Windows is detecting audio jack, so why ubuntu can't detect?. BTW Sometimes In ubuntu, audio jack is detecting. Don't say this is laptop issue.

Revision history for this message
Hui Wang (hui.wang) wrote :

Then please dump coefficient as #29, I will send it to realtek's engineer and let them have a look.

thx.

Revision history for this message
MIFAS (mmifas) wrote :

Hi

As you say, I've generated new alsa-info.txt. Please check the below link
http://www.alsa-project.org/db/?f=7bc43606415f0a0a2e459a7504a7d8b348895507

Please do the need full

Thanks

Revision history for this message
Hui Wang (hui.wang) wrote :

Sent the alsa-info.txt with coeff (#37) to audio expert of Realtek.

Revision history for this message
Hui Wang (hui.wang) wrote :

Please install this dkms and reboot, then test if mic can work or not.

Revision history for this message
MIFAS (mmifas) wrote :

Not working. It's only working when I add the following line in /etc/modprobe.d/alsa-base.conf file

options snd-hda-intel model=laptop-dmic

And Also I need to manually change to Internal Microphone through Sound Switcher Indicator - version 1.2.2

Revision history for this message
Yuriy (ort00gon) wrote :

Ubuntu 16.04 LTS on ASUS F555U jack is not detecting connection, but the mic problem is solved as in (#40)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.