GithubHelp home page GithubHelp logo

gnickm / sof-essx8336-debian-fix Goto Github PK

View Code? Open in Web Editor NEW
30.0 2.0 6.0 141.62 MB

Fixes to get ESSX8336 audio working for Intel Geminilake systems in Debian

License: Apache License 2.0

Shell 100.00%

sof-essx8336-debian-fix's Introduction

sof-essx8336-debian-fix

Fixes to get ESSX8336 audio working for Intel Gemini Lake systems in Debian

Problem

I found myself needing to support a new hardware platform for our GrandCare devices. Everything was working fine, except that I simply could not get the audio to work. The more I dug into the issue, the more people I found with the exact same problems. They seem to stem from a very new sound device from Everest Semiconductor called the ESSX8336 for the Intel Gemini Lake chipset. This device apparently has flawless Windows drivers, but Linux not so much. After a few days of google and getting in the weeds with the SOF folks, I was able to boil the issue down to a few main points:

  • The kernel has a compatible module that provides support for the ESSX8336, but it is disabled in pretty much all of the major distro kernel configs (including Debian, which was the one I cared about).
  • The correct SOF topologies for the device don't seem to be part of sof-bin.
  • The ALSA mixer controls for the device are convoluted and hard to understand, making it difficult to get sound to work properly even after you get the driver working.

Fix

Most of the fixes came courtesy of yangxiaohua2009 (who seems to have some insight into the underlying hardware) in the repo custom-kernel. I have tweaked them a bit to make them a little more Debian friendly, namely by using the sid kernel source to build the updated kernel. Here are the details of what worked:

  • Built and packaged the latest sid kernel (5.17.6) with the CONFIG_SND_SOC_INTEL_SOF_ES8336_MACH=m config parameter enabled.
  • Installed the latest sof-bin binaries and topologies.
  • Installed the replacement topologies to enable ESSX8336.
  • Added a script to set basic ALSA values to get input and output working at resonable levels.
  • Added a script to fix pulseaudio to properly detect the device and use it.

Installation

WARNING - You are about to install a new kernel from the unstable branch of Debian. This may render your system unusable if something doesn't like your hardware. Make sure you do proper backups and know how to boot from an older kernel before you proceed.

These instructions were tested on Debian 10 (buster). This might work for other versions (bullseye) or Debian derivs (mint, ubuntu, etc), but YMMV.

  1. Install some packages you'll need for installation:

    sudo apt-get install git rsync
    
  2. Clone this repository:

    git clone https://github.com/gnickm/sof-essx8336-debian-fix
    
  3. Install the new kernel:

    cd sof-essx8336-debian-fix
    sudo dpkg -i dist/linux*
    
  4. Install correct sof firmware and topologies

    sudo ./setup-sof.sh
    
  5. Reboot into the new kernel:

    sudo shutdown -r now
    
  6. Set some legit ASLA levels using the provided script. Depending on your OS setup, you may need to run this after every reboot:

    cd sof-essx8336-debian-fix
    ./setup-alsa.sh
    
  7. If you're using pulseaudio, make it use the ESSX8336 as the default device:

    sudo ./setup-pulseaudio.sh
    

sof-essx8336-debian-fix's People

Contributors

gnickm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sof-essx8336-debian-fix's Issues

Suspend

Not related to SOF, but does suspend work on your tablet?

Is not working on Chuwi Hi10 Go N5100

Upgrade to 5.18

Is it possible to upgrade the .deb kernels to 5.18.3 or higher?

Thanks

HELP:"sof-audio-pci-intel-icl 0000:00:1f.3: firmware: failed to load intel/sof-tplg/sof-jsl-es8336.tplg (-2)"

I am using ubuntu22.04.
My laptop use intel N5100 and essx8336.
Now I install the kernel 5.17.6 and the essx6336 driver from this page.

But my sound card still can't work.

The content in /proc/asound/cards is "--- no soundcards ---".

Message in /var/log/kern.log is "sof-audio-pci-intel-icl 0000:00:1f.3: firmware: failed to load intel/sof-tplg/sof-jsl-es8336.tplg (-2)".

I feel the kernel log message is important.

But I know nothing about sof.

Please Help me!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.