Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

No sound on speakers on Chuwi Hi12 laptop - headphone sound works (es8316) #41

Open
sundarnagarajan opened this issue Jul 9, 2018 · 1 comment

Comments

@sundarnagarajan
Copy link

I have a Chuwi Hi12 2-in-1 tablet/laptop. It has a CheryTrail SoC, and an ES8316 sound card. I have got most things to work, but I have a small problem with the sound:

Sound works perfectly when I use the headphone jack, but I can't get sound on the built-in speakers

Settings --> Sound (Ubuntu Bionic Beaver 18.04 Gnome) shows only one device in the 'Output' tab: 'Speakers - Built-in Audio'

I am using custom kernel 4.16.18.

I am attaching the output of alsa-info script.
chuwi-hi12-alsa-info.txt

I have also uploaded this to alsa-project.org

How do I look for a solution? I am not very familiar with ALSA UCM files.

Thanks for all your work on making sound work on Intel chipsets!

@srikantpatnaik
Copy link

  1. The changes for the es8316 jack detection are available at torvalds/linux@8222576 (commit date: 7 Jan 2019)
  2. Compile the kernel with the above changes (I tried with kernel-5.2-rc7), install, reboot and select the kernel
  3. Check your sound card exposed by kernel cat /proc/asounds/cards, mine is mono-spk-in1-mic, it could be different for other boards.
  4. Goto alsa-lib project and obtain HiFi.conf for your device. Mine was at https://github.com/alsa-project/alsa-lib/blob/master/src/conf/ucm/bytcht-es8316-mono-spk-in1-mic/HiFi.conf (commit date: 7 Jan 2019)
    Substitute the variables in HiFi.conf to populate a complete self-contained HiFi.conf file.
  5. Copy the HiFi.conf file to /usr/share/alsa/ucm/bytcht-es8316. In my case the bytcht-es8316.conf file remains unchanged.

Apply the changes and test the jack detection.
Prebuilt kernel and HiFi.conf files can be obtained from my repo here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants