On 1/23/20 9:02 AM, Michal Feix wrote:
Thanks Pierre. I'm aware of the work done previously on Asus T100. Not sure, if Asus T100TAM is any significantly different. Just tried your suggested commands as root user:
# alsaucm -c bytcr-rt5640 set _verb HiFi set _enadev Headphones ALSA lib ucm_subs.c:215:(uc_mgr_get_substituted_value) variable '${CardComponents}' is not defined in this context! ALSA lib main.c:960:(snd_use_case_mgr_open) error: failed to import bytcr-rt5640 use case configuration -22 alsaucm: error failed to open sound card bytcr-rt5640: Invalid argument
# alsaucm -c bytcr-rt5640 set _verb HiFi set _enadev Speaker ALSA lib ucm_subs.c:215:(uc_mgr_get_substituted_value) variable '${CardComponents}' is not defined in this context! ALSA lib main.c:960:(snd_use_case_mgr_open) error: failed to import bytcr-rt5640 use case configuration -22 alsaucm: error failed to open sound card bytcr-rt5640: Invalid argument
I also tried this:
# alsaucm listcards ALSA lib utils.c:261:(uc_mgr_config_load) could not open configuration file /usr/share/alsa/ucm2/HDA Intel PCH/HDA Intel PCH.conf alsaucm: error failed to get card list: No such file or directory
There really is no such file "HDA Intel PCH.conf" in HDA Intel PCH directory, but I do not see any such file in the alsa-ucm-conf package downloaded from origin Alsa site.
can you point us to the alsa-info results then? It could indeed be a completely different hardware, where you only have HDaudio support (no I2S codecs), in which case you shouldn't need UCM.
http://alsa-project.org/db/?f=e5f8088e73917cfeddca95344aef7debf1498fa1
weird, the ACPI info shows you have an RT5640 codec and the card bytcr_rt5640 is indeed created. You also have the lpe_hdmi driver, which means your platforms does not support HDaudio, so there is no dependency on 'HDA Intel PCH.conf'
It looks to me like an UCM issue. alsaucm listcards should give you all the UCM profiles supported, if this doesn't work then there's something missing. Probably something for Jaroslav to comment on?