Discussion:
[pulseaudio-discuss] Sound input problem on chtrt5645 device
Gustavo Duarte
2018-06-27 13:10:22 UTC
Permalink
* Hi all,
*> >* The input sound isn't working. No sound is detected.
*> >* Environment:
*> >* Laptop brand: JP Couto model EF20EA
*> >* Distributor ID: Ubuntu
*>* Description: Ubuntu 16.04.4 LTS
*>* Release: 16.04
*>* Codename: xenial
*> >* Linux Kernel: 4.15.0-23-generic
*> >* Right after install Ubuntu 16.04 on the laptop, the sound output and input
*>* isn't worked.
*> >* So i followed this procedure:
*>* https://ubuntuforums.org/showthread.php?t=2374383&p=13698722#post13698722
<https://ubuntuforums.org/showthread.php?t=2374383&p=13698722#post13698722>
*>* and then, output sound starting to work, but input not.
*> >* An strange thing is that output of amixer -cO is empty.
*
On your machine card 0 is HDMI, which is why amixer -c0 is empty.
amixer -c1 will show the chtrt5645 mixer settings.

There have been input related fixes to chtrt5645's UCM config recently.
This is the latest
version:http://git.alsa-project.org/?p=alsa-lib.git;a=blob_plain;f=src/conf/ucm/chtrt5645/HiFi.conf;hb=HEAD

Try copying that to /usr/share/alsa/ucm/chtrt5645/HiFi.conf
--
Tanu


I tried this fix, after substitute HiFI.conf file and reboot the laptop,
sound configuration options changed, output sound still working, but input
NOT.

Something else to do ?

Thanks.
Tanu Kaskinen
2018-06-28 10:59:27 UTC
Permalink
Post by Gustavo Duarte
* Hi all,
*> >* The input sound isn't working. No sound is detected.
*> >* Laptop brand: JP Couto model EF20EA
*> >* Distributor ID: Ubuntu
*>* Description: Ubuntu 16.04.4 LTS
*>* Release: 16.04
*>* Codename: xenial
*> >* Linux Kernel: 4.15.0-23-generic
*> >* Right after install Ubuntu 16.04 on the laptop, the sound output and input
*>* isn't worked.
*>* https://ubuntuforums.org/showthread.php?t=2374383&p=13698722#post13698722
<https://ubuntuforums.org/showthread.php?t=2374383&p=13698722#post13698722>
*>* and then, output sound starting to work, but input not.
*> >* An strange thing is that output of amixer -cO is empty.
*
On your machine card 0 is HDMI, which is why amixer -c0 is empty.
amixer -c1 will show the chtrt5645 mixer settings.
There have been input related fixes to chtrt5645's UCM config recently.
This is the latest
version:http://git.alsa-project.org/?p=alsa-lib.git;a=blob_plain;f=src/conf/ucm/chtrt5645/HiFi.conf;hb=HEAD
Try copying that to /usr/share/alsa/ucm/chtrt5645/HiFi.conf
--
Tanu
I tried this fix, after substitute HiFI.conf file and reboot the laptop,
sound configuration options changed, output sound still working, but input
NOT.
Something else to do ?
Thanks.
Apparently your laptop requires some special configuration for the mic
to work. There are a couple of different rt5645 UCM configurations
already in alsa-lib:
http://git.alsa-project.org/?p=alsa-lib.git;a=tree;f=src/conf/ucm;hb=HEAD

You can try playing with "alsamixer -c1" to find out what settings need
to be changed. If you manage to find a working settings, then the UCM
configuration can be fixed.

I'll add Hans de Goede to Cc in case he has any hints or is otherwise
interested (he has fixed input for some other laptops that use rt5645).

By the way, it would be good if you could fix your quoting style (and
preferably send plain text emails instead of html). Currently it's hard
to see from your email where the quoted part ends and your own text
begins.
--
Tanu

https://liberapay.com/tanuk
https://www.patreon.com/tanuk
Hans de Goede
2018-06-29 13:02:40 UTC
Permalink
Hi,
Post by Tanu Kaskinen
Post by Gustavo Duarte
* Hi all,
*> >* The input sound isn't working. No sound is detected.
*> >* Laptop brand: JP Couto model EF20EA
*> >* Distributor ID: Ubuntu
*>* Description: Ubuntu 16.04.4 LTS
*>* Release: 16.04
*>* Codename: xenial
*> >* Linux Kernel: 4.15.0-23-generic
*> >* Right after install Ubuntu 16.04 on the laptop, the sound output and input
*>* isn't worked.
*>* https://ubuntuforums.org/showthread.php?t=2374383&p=13698722#post13698722
<https://ubuntuforums.org/showthread.php?t=2374383&p=13698722#post13698722>
*>* and then, output sound starting to work, but input not.
*> >* An strange thing is that output of amixer -cO is empty.
*
On your machine card 0 is HDMI, which is why amixer -c0 is empty.
amixer -c1 will show the chtrt5645 mixer settings.
There have been input related fixes to chtrt5645's UCM config recently.
This is the latest
version:http://git.alsa-project.org/?p=alsa-lib.git;a=blob_plain;f=src/conf/ucm/chtrt5645/HiFi.conf;hb=HEAD
Try copying that to /usr/share/alsa/ucm/chtrt5645/HiFi.conf
--
Tanu
I tried this fix, after substitute HiFI.conf file and reboot the laptop,
sound configuration options changed, output sound still working, but input
NOT.
Something else to do ?
Thanks.
Apparently your laptop requires some special configuration for the mic
to work. There are a couple of different rt5645 UCM configurations
http://git.alsa-project.org/?p=alsa-lib.git;a=tree;f=src/conf/ucm;hb=HEAD
You can try playing with "alsamixer -c1" to find out what settings need
to be changed. If you manage to find a working settings, then the UCM
configuration can be fixed.
I'll add Hans de Goede to Cc in case he has any hints or is otherwise
interested (he has fixed input for some other laptops that use rt5645).
I assume that when you say there is no input sound, you mean that the
microphone build into the laptop is not working ?

It could be that your laptop is using a digital mic rather then an analog one.

To try for a digital mic on the 1st dmic input, copy:

git.alsa-project.org/?p=alsa-lib.git;a=blob_plain;f=src/conf/ucm/ASUSTeKCOMPUTERINC.-T100HAN-1.0-T100HAN/HiFi.conf

To /usr/share/alsa/ucm/chtrt5645/HiFi.conf

*AND* put snd_soc_rt5645.quirk=0x0100 on the kernel commandline.

If that does not work you can also try:

snd_soc_rt5645.quirk=0x0200
snd_soc_rt5645.quirk=0x0300
snd_soc_rt5645.quirk=0x0400

There also is a second digital mic input, but there is no matching UCM file
for that, so you would need to edit the ucm HiFi.conf file yourself, or
play with alsamixer -c 1. To try and activate a dmic on the 2nd input try:

snd_soc_rt5645.quirk=0x1000
snd_soc_rt5645.quirk=0x2000
snd_soc_rt5645.quirk=0x3000

Regards,

Hans
Gustavo Duarte
2018-06-29 16:25:41 UTC
Permalink
Hi Hans,
Post by Hans de Goede
I assume that when you say there is no input sound, you mean that the
microphone build into the laptop is not working ?
That's right.

I tried your suggestions, substitute HiFi.conf file and add these
kernel command line parameters. And the mic, still desn't works.
I tried also dmic on 1st and 2nd input.

There is something that catches my attention.
Always after did a change, I go to Gnome sound settings, input tab,
and the only device showed is chtrt5645 Analog Stereo.
I expected see a digital device... i don't know.

Are there something more to do ?

Thanks in advance.

Gustavo
Post by Hans de Goede
Hi,
Post by Tanu Kaskinen
Post by Gustavo Duarte
* Hi all,
*> >* The input sound isn't working. No sound is detected.
*> >* Laptop brand: JP Couto model EF20EA
*> >* Distributor ID: Ubuntu
*>* Description: Ubuntu 16.04.4 LTS
*>* Release: 16.04
*>* Codename: xenial
*> >* Linux Kernel: 4.15.0-23-generic
*> >* Right after install Ubuntu 16.04 on the laptop, the sound output and input
*>* isn't worked.
*>* https://ubuntuforums.org/showthread.php?t=2374383&p=13698722#post13698722
<https://ubuntuforums.org/showthread.php?t=2374383&p=13698722#post13698722>
*>* and then, output sound starting to work, but input not.
*> >* An strange thing is that output of amixer -cO is empty.
*
On your machine card 0 is HDMI, which is why amixer -c0 is empty.
amixer -c1 will show the chtrt5645 mixer settings.
There have been input related fixes to chtrt5645's UCM config recently.
This is the latest
version:http://git.alsa-project.org/?p=alsa-lib.git;a=blob_plain;f=src/conf/ucm/chtrt5645/HiFi.conf;hb=HEAD
Try copying that to /usr/share/alsa/ucm/chtrt5645/HiFi.conf
--
Tanu
I tried this fix, after substitute HiFI.conf file and reboot the laptop,
sound configuration options changed, output sound still working, but input
NOT.
Something else to do ?
Thanks.
Apparently your laptop requires some special configuration for the mic
to work. There are a couple of different rt5645 UCM configurations
http://git.alsa-project.org/?p=alsa-lib.git;a=tree;f=src/conf/ucm;hb=HEAD
You can try playing with "alsamixer -c1" to find out what settings need
to be changed. If you manage to find a working settings, then the UCM
configuration can be fixed.
I'll add Hans de Goede to Cc in case he has any hints or is otherwise
interested (he has fixed input for some other laptops that use rt5645).
I assume that when you say there is no input sound, you mean that the
microphone build into the laptop is not working ?
It could be that your laptop is using a digital mic rather then an analog one.
git.alsa-project.org/?p=alsa-lib.git;a=blob_plain;f=src/conf/ucm/ASUSTeKCOMPUTERINC.-T100HAN-1.0-T100HAN/HiFi.conf
To /usr/share/alsa/ucm/chtrt5645/HiFi.conf
*AND* put snd_soc_rt5645.quirk=0x0100 on the kernel commandline.
snd_soc_rt5645.quirk=0x0200
snd_soc_rt5645.quirk=0x0300
snd_soc_rt5645.quirk=0x0400
There also is a second digital mic input, but there is no matching UCM file
for that, so you would need to edit the ucm HiFi.conf file yourself, or
snd_soc_rt5645.quirk=0x1000
snd_soc_rt5645.quirk=0x2000
snd_soc_rt5645.quirk=0x3000
Regards,
Hans
_______________________________________________
pulseaudio-discuss mailing list
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
Hans de Goede
2018-07-01 14:18:44 UTC
Permalink
Hi,
Post by Gustavo Duarte
Hi Hans,
Post by Hans de Goede
I assume that when you say there is no input sound, you mean that the
microphone build into the laptop is not working ?
That's right.
I tried your suggestions, substitute HiFi.conf file and add these
kernel command line parameters. And the mic, still desn't works.
I tried also dmic on 1st and 2nd input.
There is something that catches my attention.
Always after did a change, I go to Gnome sound settings, input tab,
and the only device showed is chtrt5645 Analog Stereo.
I expected see a digital device... i don't know.
If you see "chtrt5645 Analog Stereo" on the input tab, then the
UCM profile is not loading correctly. You need to fix that first,
if you have an old alsa-lib which did not include a
/usr/share/alsa/ucm/chtrt5645 yet, then start with copying
both HiFi.conf and chtrt5645.conf from:

http://git.alsa-project.org/?p=alsa-lib.git;a=tree;f=src/conf/ucm/chtrt5645

To a directory named:

/usr/share/alsa/ucm/chtrt5645

Note you need the plain txt (raw) versions of both files.
Then close the gnome sound-settings, do "killall pulseaudio"
and re-open gnome-sound-settings.

The input should be named "Internal Analog Microphone" now,
once you've managed to get the input named that way (so the UCM
profile is loaded correctly) try if the buildin mic works now.

If things still don't work, then replace the HiFi.conf with
the file from the Asus T100HA profile I linked to before *and*
put snd_soc_rt5645.quirk=0x0100 on the kernel commandline.

Note to test the digital-mic you need both the Asus T100HA
HiFi.conf *and* the kernel commandline option.

To check the kernel commandline option is present after
rebooting do: "cat /proc/cmdline", if you are using the
Asus T100HA HiFi.conf, the input should now be named
"Internal Microphone" (note no more "Analog" in there).

Regards,

Hans
Post by Gustavo Duarte
Post by Hans de Goede
Hi,
Post by Tanu Kaskinen
Post by Gustavo Duarte
* Hi all,
*> >* The input sound isn't working. No sound is detected.
*> >* Laptop brand: JP Couto model EF20EA
*> >* Distributor ID: Ubuntu
*>* Description: Ubuntu 16.04.4 LTS
*>* Release: 16.04
*>* Codename: xenial
*> >* Linux Kernel: 4.15.0-23-generic
*> >* Right after install Ubuntu 16.04 on the laptop, the sound output and input
*>* isn't worked.
*>* https://ubuntuforums.org/showthread.php?t=2374383&p=13698722#post13698722
<https://ubuntuforums.org/showthread.php?t=2374383&p=13698722#post13698722>
*>* and then, output sound starting to work, but input not.
*> >* An strange thing is that output of amixer -cO is empty.
*
On your machine card 0 is HDMI, which is why amixer -c0 is empty.
amixer -c1 will show the chtrt5645 mixer settings.
There have been input related fixes to chtrt5645's UCM config recently.
This is the latest
version:http://git.alsa-project.org/?p=alsa-lib.git;a=blob_plain;f=src/conf/ucm/chtrt5645/HiFi.conf;hb=HEAD
Try copying that to /usr/share/alsa/ucm/chtrt5645/HiFi.conf
--
Tanu
I tried this fix, after substitute HiFI.conf file and reboot the laptop,
sound configuration options changed, output sound still working, but input
NOT.
Something else to do ?
Thanks.
Apparently your laptop requires some special configuration for the mic
to work. There are a couple of different rt5645 UCM configurations
http://git.alsa-project.org/?p=alsa-lib.git;a=tree;f=src/conf/ucm;hb=HEAD
You can try playing with "alsamixer -c1" to find out what settings need
to be changed. If you manage to find a working settings, then the UCM
configuration can be fixed.
I'll add Hans de Goede to Cc in case he has any hints or is otherwise
interested (he has fixed input for some other laptops that use rt5645).
I assume that when you say there is no input sound, you mean that the
microphone build into the laptop is not working ?
It could be that your laptop is using a digital mic rather then an analog one.
git.alsa-project.org/?p=alsa-lib.git;a=blob_plain;f=src/conf/ucm/ASUSTeKCOMPUTERINC.-T100HAN-1.0-T100HAN/HiFi.conf
To /usr/share/alsa/ucm/chtrt5645/HiFi.conf
*AND* put snd_soc_rt5645.quirk=0x0100 on the kernel commandline.
snd_soc_rt5645.quirk=0x0200
snd_soc_rt5645.quirk=0x0300
snd_soc_rt5645.quirk=0x0400
There also is a second digital mic input, but there is no matching UCM file
for that, so you would need to edit the ucm HiFi.conf file yourself, or
snd_soc_rt5645.quirk=0x1000
snd_soc_rt5645.quirk=0x2000
snd_soc_rt5645.quirk=0x3000
Regards,
Hans
_______________________________________________
pulseaudio-discuss mailing list
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
Gustavo Duarte
2018-07-04 15:31:31 UTC
Permalink
Hi Hans,

I tried again, changing HiFI.conf and chtrt5645.conf from ucm
alsa-lib and from Asus T100HA, and at this time, the profile was
loaded right, because "Internal Analog Microphone" was showed at first
and "Internal Microphone" at second time.

When I used Asus T100HA profile, i tried with all the kernel command
line parameter combination, 0x0100 to 0x0400 and 0x1000 to 0x4000.

However, the internal microphone still doesn't work. Gnome audio
settings, doesn't detect input signal and when a tried record from
command line no sound is detected (arecord -vv -fdat
stackoverflow.wav).

Anything else to try ?

Thanks in advance.

Gustavo.
Post by Hans de Goede
Hi,
Post by Gustavo Duarte
Hi Hans,
Post by Hans de Goede
I assume that when you say there is no input sound, you mean that the
microphone build into the laptop is not working ?
That's right.
I tried your suggestions, substitute HiFi.conf file and add these
kernel command line parameters. And the mic, still desn't works.
I tried also dmic on 1st and 2nd input.
There is something that catches my attention.
Always after did a change, I go to Gnome sound settings, input tab,
and the only device showed is chtrt5645 Analog Stereo.
I expected see a digital device... i don't know.
If you see "chtrt5645 Analog Stereo" on the input tab, then the
UCM profile is not loading correctly. You need to fix that first,
if you have an old alsa-lib which did not include a
/usr/share/alsa/ucm/chtrt5645 yet, then start with copying
http://git.alsa-project.org/?p=alsa-lib.git;a=tree;f=src/conf/ucm/chtrt5645
/usr/share/alsa/ucm/chtrt5645
Note you need the plain txt (raw) versions of both files.
Then close the gnome sound-settings, do "killall pulseaudio"
and re-open gnome-sound-settings.
The input should be named "Internal Analog Microphone" now,
once you've managed to get the input named that way (so the UCM
profile is loaded correctly) try if the buildin mic works now.
If things still don't work, then replace the HiFi.conf with
the file from the Asus T100HA profile I linked to before *and*
put snd_soc_rt5645.quirk=0x0100 on the kernel commandline.
Note to test the digital-mic you need both the Asus T100HA
HiFi.conf *and* the kernel commandline option.
To check the kernel commandline option is present after
rebooting do: "cat /proc/cmdline", if you are using the
Asus T100HA HiFi.conf, the input should now be named
"Internal Microphone" (note no more "Analog" in there).
Regards,
Hans
Post by Gustavo Duarte
Post by Hans de Goede
Hi,
Post by Tanu Kaskinen
Post by Gustavo Duarte
* Hi all,
*> >* The input sound isn't working. No sound is detected.
*> >* Laptop brand: JP Couto model EF20EA
*> >* Distributor ID: Ubuntu
*>* Description: Ubuntu 16.04.4 LTS
*>* Release: 16.04
*>* Codename: xenial
*> >* Linux Kernel: 4.15.0-23-generic
*> >* Right after install Ubuntu 16.04 on the laptop, the sound output and input
*>* isn't worked.
*>* https://ubuntuforums.org/showthread.php?t=2374383&p=13698722#post13698722
<https://ubuntuforums.org/showthread.php?t=2374383&p=13698722#post13698722>
*>* and then, output sound starting to work, but input not.
*> >* An strange thing is that output of amixer -cO is empty.
*
On your machine card 0 is HDMI, which is why amixer -c0 is empty.
amixer -c1 will show the chtrt5645 mixer settings.
There have been input related fixes to chtrt5645's UCM config recently.
This is the latest
version:http://git.alsa-project.org/?p=alsa-lib.git;a=blob_plain;f=src/conf/ucm/chtrt5645/HiFi.conf;hb=HEAD
Try copying that to /usr/share/alsa/ucm/chtrt5645/HiFi.conf
--
Tanu
I tried this fix, after substitute HiFI.conf file and reboot the laptop,
sound configuration options changed, output sound still working, but input
NOT.
Something else to do ?
Thanks.
Apparently your laptop requires some special configuration for the mic
to work. There are a couple of different rt5645 UCM configurations
http://git.alsa-project.org/?p=alsa-lib.git;a=tree;f=src/conf/ucm;hb=HEAD
You can try playing with "alsamixer -c1" to find out what settings need
to be changed. If you manage to find a working settings, then the UCM
configuration can be fixed.
I'll add Hans de Goede to Cc in case he has any hints or is otherwise
interested (he has fixed input for some other laptops that use rt5645).
I assume that when you say there is no input sound, you mean that the
microphone build into the laptop is not working ?
It could be that your laptop is using a digital mic rather then an analog one.
git.alsa-project.org/?p=alsa-lib.git;a=blob_plain;f=src/conf/ucm/ASUSTeKCOMPUTERINC.-T100HAN-1.0-T100HAN/HiFi.conf
To /usr/share/alsa/ucm/chtrt5645/HiFi.conf
*AND* put snd_soc_rt5645.quirk=0x0100 on the kernel commandline.
snd_soc_rt5645.quirk=0x0200
snd_soc_rt5645.quirk=0x0300
snd_soc_rt5645.quirk=0x0400
There also is a second digital mic input, but there is no matching UCM file
for that, so you would need to edit the ucm HiFi.conf file yourself, or
snd_soc_rt5645.quirk=0x1000
snd_soc_rt5645.quirk=0x2000
snd_soc_rt5645.quirk=0x3000
Regards,
Hans
_______________________________________________
pulseaudio-discuss mailing list
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
Hans de Goede
2018-07-04 17:01:33 UTC
Permalink
Hi,
Post by Gustavo Duarte
Hi Hans,
I tried again, changing HiFI.conf and chtrt5645.conf from ucm
alsa-lib and from Asus T100HA, and at this time, the profile was
loaded right, because "Internal Analog Microphone" was showed at first
and "Internal Microphone" at second time.
When I used Asus T100HA profile, i tried with all the kernel command
line parameter combination, 0x0100 to 0x0400 and 0x1000 to 0x4000.
However, the internal microphone still doesn't work. Gnome audio
settings, doesn't detect input signal and when a tried record from
command line no sound is detected (arecord -vv -fdat
stackoverflow.wav).
Anything else to try ?
Have you also tried with the normal profile and and no kernel commandline
option?

IOW, please try with:
-The normal (not the Asus T100HA) chtrt5645.conf and HiFi.conf, so
the input will be named "Internal Analog Microphone"; *AND*
-No kernel commandline option, check cat /proc/cmdline does not contain
chtrt5645 in there

Since you were not using the UCM profile initially it might very well
be that your laptop has a normal analog mic and things where not
working before because the profile was not loaded.

Regards,

Hans
Post by Gustavo Duarte
Thanks in advance.
Gustavo.
Post by Hans de Goede
Hi,
Post by Gustavo Duarte
Hi Hans,
Post by Hans de Goede
I assume that when you say there is no input sound, you mean that the
microphone build into the laptop is not working ?
That's right.
I tried your suggestions, substitute HiFi.conf file and add these
kernel command line parameters. And the mic, still desn't works.
I tried also dmic on 1st and 2nd input.
There is something that catches my attention.
Always after did a change, I go to Gnome sound settings, input tab,
and the only device showed is chtrt5645 Analog Stereo.
I expected see a digital device... i don't know.
If you see "chtrt5645 Analog Stereo" on the input tab, then the
UCM profile is not loading correctly. You need to fix that first,
if you have an old alsa-lib which did not include a
/usr/share/alsa/ucm/chtrt5645 yet, then start with copying
http://git.alsa-project.org/?p=alsa-lib.git;a=tree;f=src/conf/ucm/chtrt5645
/usr/share/alsa/ucm/chtrt5645
Note you need the plain txt (raw) versions of both files.
Then close the gnome sound-settings, do "killall pulseaudio"
and re-open gnome-sound-settings.
The input should be named "Internal Analog Microphone" now,
once you've managed to get the input named that way (so the UCM
profile is loaded correctly) try if the buildin mic works now.
If things still don't work, then replace the HiFi.conf with
the file from the Asus T100HA profile I linked to before *and*
put snd_soc_rt5645.quirk=0x0100 on the kernel commandline.
Note to test the digital-mic you need both the Asus T100HA
HiFi.conf *and* the kernel commandline option.
To check the kernel commandline option is present after
rebooting do: "cat /proc/cmdline", if you are using the
Asus T100HA HiFi.conf, the input should now be named
"Internal Microphone" (note no more "Analog" in there).
Regards,
Hans
Post by Gustavo Duarte
Post by Hans de Goede
Hi,
Post by Tanu Kaskinen
Post by Gustavo Duarte
* Hi all,
*> >* The input sound isn't working. No sound is detected.
*> >* Laptop brand: JP Couto model EF20EA
*> >* Distributor ID: Ubuntu
*>* Description: Ubuntu 16.04.4 LTS
*>* Release: 16.04
*>* Codename: xenial
*> >* Linux Kernel: 4.15.0-23-generic
*> >* Right after install Ubuntu 16.04 on the laptop, the sound output and input
*>* isn't worked.
*>* https://ubuntuforums.org/showthread.php?t=2374383&p=13698722#post13698722
<https://ubuntuforums.org/showthread.php?t=2374383&p=13698722#post13698722>
*>* and then, output sound starting to work, but input not.
*> >* An strange thing is that output of amixer -cO is empty.
*
On your machine card 0 is HDMI, which is why amixer -c0 is empty.
amixer -c1 will show the chtrt5645 mixer settings.
There have been input related fixes to chtrt5645's UCM config recently.
This is the latest
version:http://git.alsa-project.org/?p=alsa-lib.git;a=blob_plain;f=src/conf/ucm/chtrt5645/HiFi.conf;hb=HEAD
Try copying that to /usr/share/alsa/ucm/chtrt5645/HiFi.conf
--
Tanu
I tried this fix, after substitute HiFI.conf file and reboot the laptop,
sound configuration options changed, output sound still working, but input
NOT.
Something else to do ?
Thanks.
Apparently your laptop requires some special configuration for the mic
to work. There are a couple of different rt5645 UCM configurations
http://git.alsa-project.org/?p=alsa-lib.git;a=tree;f=src/conf/ucm;hb=HEAD
You can try playing with "alsamixer -c1" to find out what settings need
to be changed. If you manage to find a working settings, then the UCM
configuration can be fixed.
I'll add Hans de Goede to Cc in case he has any hints or is otherwise
interested (he has fixed input for some other laptops that use rt5645).
I assume that when you say there is no input sound, you mean that the
microphone build into the laptop is not working ?
It could be that your laptop is using a digital mic rather then an analog one.
git.alsa-project.org/?p=alsa-lib.git;a=blob_plain;f=src/conf/ucm/ASUSTeKCOMPUTERINC.-T100HAN-1.0-T100HAN/HiFi.conf
To /usr/share/alsa/ucm/chtrt5645/HiFi.conf
*AND* put snd_soc_rt5645.quirk=0x0100 on the kernel commandline.
snd_soc_rt5645.quirk=0x0200
snd_soc_rt5645.quirk=0x0300
snd_soc_rt5645.quirk=0x0400
There also is a second digital mic input, but there is no matching UCM file
for that, so you would need to edit the ucm HiFi.conf file yourself, or
snd_soc_rt5645.quirk=0x1000
snd_soc_rt5645.quirk=0x2000
snd_soc_rt5645.quirk=0x3000
Regards,
Hans
_______________________________________________
pulseaudio-discuss mailing list
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
Gustavo Duarte
2018-07-05 14:02:15 UTC
Permalink
HI Hans,

I tried the normal profile without kernel parameters and the mic still
doesn't work.

Please see the video: https://we.tl/p7b3ne79xB

Thanks in advance.

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

One thing which might still be a problem is using an old kernel,
what is the version of the kernel you are using?

Regards,


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

I'm using the latest of Ubuntu 16.04,

4.15.0-23-generic

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

Regards,

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

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