<div dir="ltr">Hi Hans,<br><br>I'm using the latest of Ubuntu 16.04, <br><br>4.15.0-23-generic<div><br></div><div>Regards.</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 5, 2018 at 11:47 AM Hans de Goede <<a href="mailto:hdegoede@redhat.com">hdegoede@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
On 07/05/2018 04:02 PM, Gustavo Duarte wrote:<br>
> HI Hans,<br>
> <br>
> I tried the normal profile without kernel parameters and the mic still<br>
> doesn't work.<br>
<br>
That is disappointing. I'm afraid I'm all out of idea to try next<br>
then.<br>
<br>
One thing which might still be a problem is using an old kernel,<br>
what is the version of the kernel you are using?<br>
<br>
Regards,<br>
<br>
<br>
Hans<br>
<br>
<br>
> <br>
> Please see the video: <a href="https://we.tl/p7b3ne79xB" rel="noreferrer" target="_blank">https://we.tl/p7b3ne79xB</a><br>
> <br>
> Thanks in advance.<br>
> <br>
> Gustavo.<br>
> On Wed, Jul 4, 2018 at 2:01 PM Hans de Goede <<a href="mailto:hdegoede@redhat.com" target="_blank">hdegoede@redhat.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> On 04-07-18 17:31, Gustavo Duarte wrote:<br>
>>> Hi Hans,<br>
>>><br>
>>> I tried again, changing HiFI.conf and chtrt5645.conf  from ucm<br>
>>> alsa-lib and from Asus T100HA, and at this time, the profile was<br>
>>> loaded right, because "Internal Analog Microphone" was showed at first<br>
>>> and "Internal Microphone" at second time.<br>
>>><br>
>>> When I used Asus T100HA profile, i tried with all the kernel command<br>
>>> line parameter combination, 0x0100 to 0x0400 and 0x1000 to 0x4000.<br>
>>><br>
>>> However, the internal microphone still doesn't work. Gnome audio<br>
>>> settings, doesn't detect input signal and when a tried record from<br>
>>> command line no sound is detected (arecord -vv -fdat<br>
>>> stackoverflow.wav).<br>
>>><br>
>>> Anything else  to try ?<br>
>><br>
>> Have you also tried with the normal profile and and no kernel commandline<br>
>> option?<br>
>><br>
>> IOW, please try with:<br>
>> -The normal (not the Asus T100HA) chtrt5645.conf and HiFi.conf, so<br>
>>    the input will be named "Internal Analog Microphone"; *AND*<br>
>> -No kernel commandline option, check cat /proc/cmdline does not contain<br>
>>    chtrt5645 in there<br>
>><br>
>> Since you were not using the UCM profile initially it might very well<br>
>> be that your laptop has a normal analog mic and things where not<br>
>> working before because the profile was not loaded.<br>
>><br>
>> Regards,<br>
>><br>
>> Hans<br>
>><br>
>><br>
>><br>
>>><br>
>>> Thanks in advance.<br>
>>><br>
>>> Gustavo.<br>
>>><br>
>>><br>
>>> On Sun, Jul 1, 2018 at 11:18 AM Hans de Goede <<a href="mailto:hdegoede@redhat.com" target="_blank">hdegoede@redhat.com</a>> wrote:<br>
>>>><br>
>>>> Hi,<br>
>>>><br>
>>>> On 29-06-18 18:25, Gustavo Duarte wrote:<br>
>>>>> Hi Hans,<br>
>>>>><br>
>>>>>> I assume that when you say there is no input sound, you mean that the<br>
>>>>>> microphone build into the laptop is not working ?<br>
>>>>><br>
>>>>> That's right.<br>
>>>>><br>
>>>>> I tried your suggestions, substitute HiFi.conf file and add these<br>
>>>>> kernel command line parameters. And the mic, still desn't works.<br>
>>>>> I tried also dmic on 1st and 2nd input.<br>
>>>>><br>
>>>>> There is something that catches my attention.<br>
>>>>> Always after did a change, I go to Gnome sound settings, input tab,<br>
>>>>> and the only device showed is chtrt5645 Analog Stereo.<br>
>>>>> I expected see a digital device... i don't know.<br>
>>>><br>
>>>> If you see "chtrt5645 Analog Stereo" on the input tab, then the<br>
>>>> UCM profile is not loading correctly. You need to fix that first,<br>
>>>> if you have an old alsa-lib which did not include a<br>
>>>> /usr/share/alsa/ucm/chtrt5645 yet, then start with copying<br>
>>>> both HiFi.conf and chtrt5645.conf from:<br>
>>>><br>
>>>> <a href="http://git.alsa-project.org/?p=alsa-lib.git;a=tree;f=src/conf/ucm/chtrt5645" rel="noreferrer" target="_blank">http://git.alsa-project.org/?p=alsa-lib.git;a=tree;f=src/conf/ucm/chtrt5645</a><br>
>>>><br>
>>>> To a directory named:<br>
>>>><br>
>>>> /usr/share/alsa/ucm/chtrt5645<br>
>>>><br>
>>>> Note you need the plain txt (raw) versions of both files.<br>
>>>> Then close the gnome sound-settings, do "killall pulseaudio"<br>
>>>> and re-open gnome-sound-settings.<br>
>>>><br>
>>>> The input should be named "Internal Analog Microphone" now,<br>
>>>> once you've managed to get the input named that way (so the UCM<br>
>>>> profile is loaded correctly) try if the buildin mic works now.<br>
>>>><br>
>>>> If things still don't work, then replace the HiFi.conf with<br>
>>>> the file from the Asus T100HA profile I linked to before *and*<br>
>>>> put snd_soc_rt5645.quirk=0x0100 on the kernel commandline.<br>
>>>><br>
>>>> Note to test the digital-mic you need both the Asus T100HA<br>
>>>> HiFi.conf *and* the kernel commandline option.<br>
>>>><br>
>>>> To check the kernel commandline option is present after<br>
>>>> rebooting do: "cat /proc/cmdline", if you are using the<br>
>>>> Asus T100HA HiFi.conf, the input should now be named<br>
>>>> "Internal Microphone" (note no more "Analog" in there).<br>
>>>><br>
>>>> Regards,<br>
>>>><br>
>>>> Hans<br>
>>>><br>
>>>><br>
>>>><br>
>>>>> On Fri, Jun 29, 2018 at 11:00 AM Hans de Goede <<a href="mailto:hdegoede@redhat.com" target="_blank">hdegoede@redhat.com</a>> wrote:<br>
>>>>>><br>
>>>>>> Hi,<br>
>>>>>><br>
>>>>>> On 28-06-18 12:59, Tanu Kaskinen wrote:<br>
>>>>>>> On Wed, 2018-06-27 at 10:10 -0300, Gustavo Duarte wrote:<br>
>>>>>>>> On Fri, 2018-06-15 at 12:56 -0300, Gustavo Duarte wrote:<br>
>>>>>>>>> * Hi all,<br>
>>>>>>>> *> >* The input sound isn't working. No sound is detected.<br>
>>>>>>>> *> >* Environment:<br>
>>>>>>>> *> >* Laptop brand: JP Couto model EF20EA<br>
>>>>>>>> *> >* Distributor ID: Ubuntu<br>
>>>>>>>> *>* Description: Ubuntu 16.04.4 LTS<br>
>>>>>>>> *>* Release: 16.04<br>
>>>>>>>> *>* Codename: xenial<br>
>>>>>>>> *> >* Linux Kernel: 4.15.0-23-generic<br>
>>>>>>>> *> >* Right after install Ubuntu 16.04 on the laptop, the sound output and input<br>
>>>>>>>> *>* isn't worked.<br>
>>>>>>>> *> >* So i followed this procedure:<br>
>>>>>>>> *>* <a href="https://ubuntuforums.org/showthread.php?t=2374383&p=13698722#post13698722" rel="noreferrer" target="_blank">https://ubuntuforums.org/showthread.php?t=2374383&p=13698722#post13698722</a><br>
>>>>>>>> <<a href="https://ubuntuforums.org/showthread.php?t=2374383&p=13698722#post13698722" rel="noreferrer" target="_blank">https://ubuntuforums.org/showthread.php?t=2374383&p=13698722#post13698722</a>><br>
>>>>>>>> *>* and then, output sound starting to work, but input not.<br>
>>>>>>>> *> >* An strange thing is that output of amixer -cO is empty.<br>
>>>>>>>> *<br>
>>>>>>>> On your machine card 0 is HDMI, which is why amixer -c0 is empty.<br>
>>>>>>>> amixer -c1 will show the chtrt5645 mixer settings.<br>
>>>>>>>><br>
>>>>>>>> There have been input related fixes to chtrt5645's UCM config recently.<br>
>>>>>>>> This is the latest<br>
>>>>>>>> version:<a href="http://git.alsa-project.org/?p=alsa-lib.git;a=blob_plain;f=src/conf/ucm/chtrt5645/HiFi.conf;hb=HEAD" rel="noreferrer" target="_blank">http://git.alsa-project.org/?p=alsa-lib.git;a=blob_plain;f=src/conf/ucm/chtrt5645/HiFi.conf;hb=HEAD</a><br>
>>>>>>>><br>
>>>>>>>> Try copying that to /usr/share/alsa/ucm/chtrt5645/HiFi.conf<br>
>>>>>>>><br>
>>>>>>>> --<br>
>>>>>>>> Tanu<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> I tried this fix, after substitute HiFI.conf file and reboot the laptop,<br>
>>>>>>>> sound configuration options changed, output sound still working, but input<br>
>>>>>>>> NOT.<br>
>>>>>>>><br>
>>>>>>>> Something else to do ?<br>
>>>>>>>><br>
>>>>>>>> Thanks.<br>
>>>>>>><br>
>>>>>>> Apparently your laptop requires some special configuration for the mic<br>
>>>>>>> to work. There are a couple of different rt5645 UCM configurations<br>
>>>>>>> already in alsa-lib:<br>
>>>>>>> <a href="http://git.alsa-project.org/?p=alsa-lib.git;a=tree;f=src/conf/ucm;hb=HEAD" rel="noreferrer" target="_blank">http://git.alsa-project.org/?p=alsa-lib.git;a=tree;f=src/conf/ucm;hb=HEAD</a><br>
>>>>>>><br>
>>>>>>> You can try playing with "alsamixer -c1" to find out what settings need<br>
>>>>>>> to be changed. If you manage to find a working settings, then the UCM<br>
>>>>>>> configuration can be fixed.<br>
>>>>>>><br>
>>>>>>> I'll add Hans de Goede to Cc in case he has any hints or is otherwise<br>
>>>>>>> interested (he has fixed input for some other laptops that use rt5645).<br>
>>>>>><br>
>>>>>> I assume that when you say there is no input sound, you mean that the<br>
>>>>>> microphone build into the laptop is not working ?<br>
>>>>>><br>
>>>>>> It could be that your laptop is using a digital mic rather then an analog one.<br>
>>>>>><br>
>>>>>> To try for a digital mic on the 1st dmic input, copy:<br>
>>>>>><br>
>>>>>> <a href="http://git.alsa-project.org/?p=alsa-lib.git;a=blob_plain;f=src/conf/ucm/ASUSTeKCOMPUTERINC.-T100HAN-1.0-T100HAN/HiFi.conf" rel="noreferrer" target="_blank">git.alsa-project.org/?p=alsa-lib.git;a=blob_plain;f=src/conf/ucm/ASUSTeKCOMPUTERINC.-T100HAN-1.0-T100HAN/HiFi.conf</a><br>
>>>>>><br>
>>>>>> To /usr/share/alsa/ucm/chtrt5645/HiFi.conf<br>
>>>>>><br>
>>>>>> *AND* put snd_soc_rt5645.quirk=0x0100 on the kernel commandline.<br>
>>>>>><br>
>>>>>> If that does not work you can also try:<br>
>>>>>><br>
>>>>>> snd_soc_rt5645.quirk=0x0200<br>
>>>>>> snd_soc_rt5645.quirk=0x0300<br>
>>>>>> snd_soc_rt5645.quirk=0x0400<br>
>>>>>><br>
>>>>>> There also is a second digital mic input, but there is no matching UCM file<br>
>>>>>> for that, so you would need to edit the ucm HiFi.conf file yourself, or<br>
>>>>>> play with alsamixer -c 1. To try and activate a dmic on the 2nd input try:<br>
>>>>>><br>
>>>>>> snd_soc_rt5645.quirk=0x1000<br>
>>>>>> snd_soc_rt5645.quirk=0x2000<br>
>>>>>> snd_soc_rt5645.quirk=0x3000<br>
>>>>>><br>
>>>>>> Regards,<br>
>>>>>><br>
>>>>>> Hans<br>
>>>>>><br>
>>>>>><br>
>>>>>> _______________________________________________<br>
>>>>>> pulseaudio-discuss mailing list<br>
>>>>>> <a href="mailto:pulseaudio-discuss@lists.freedesktop.org" target="_blank">pulseaudio-discuss@lists.freedesktop.org</a><br>
>>>>>> <a href="https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss</a><br>
</blockquote></div>