Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: ES8316 Audio Driver

  1. #1
    Join Date
    May 2018
    Beans
    10

    ES8316 Audio Driver

    Hey Guys,
    So i just installed lubuntu 18.04 On my Axon Cloudbook (A strange brand from thailand) which came with windows 10 but my school prefers linux so you know i installed lubuntu since it only has 2GB of RAM and a Z8350 Quad 1.44Ghz ok so lemme get this straight so i followed this tutorial of installing the drivers for audio(ES8316) -> https://www.koyst.com/manu/114.html and it gives me error all the time could you help me i did all the steps.
    so here's lspci

    00:00.0 Host bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register (rev 36)
    00:02.0 VGA compatible controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers (rev 36)
    00:03.0 Multimedia controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Imaging Unit (rev 36)
    00:0b.0 Signal processing controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power Management Controller (rev 36)
    00:14.0 USB controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller (rev 36)
    00:1a.0 Encryption controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine (rev 36)

    and here is the result of cat /proc/asound/cards

    0 [Audio ]: HdmiLpeAudio - Intel HDMI/DP LPE Audio
    Intel HDMI/DP LPE Audio
    1 [bytchtes8316 ]: bytcht-es8316 - bytcht-es8316
    LIVEFAN-LIVEFAN--LIVEFAN
    any help will be aprpreciated

  2. #2
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: ES8316 Audio Driver

    Moved here from Resolution Centre, which "is the place to contact a forum admin concerning problems with your forum account, to appeal moderator action, to request a thread be moved from the jail, or to file a complaint about forum harrassment or abuse."

  3. #3
    Join Date
    May 2018
    Beans
    10

    Re: ES8316 Audio Driver

    i actually google translated it but when i compile it here's the output
    /home/shuncey/es8316/sound/soc/codecs/Makefile
    make: Entering directory '/usr/src/linux-headers-4.15.0-20-generic'
    make[1]: *** No rule to make target '/home/shuncey/es8316/sound/soc/codecs/ac97.o', needed by '/home/shuncey/es8316/sound/soc/codecs/snd-soc-ac97.o'. Stop.
    Makefile:1552: recipe for target '_module_/home/shuncey/es8316/sound/soc/codecs' failed
    make: *** [_module_/home/shuncey/es8316/sound/soc/codecs] Error 2
    make: Leaving directory '/usr/src/linux-headers-4.15.0-20-generic'
    mv: cannot stat '*.ko': No such file or directory
    /home/shuncey/es8316/sound/soc/intel/atom/sst/Makefile
    make: Entering directory '/usr/src/linux-headers-4.15.0-20-generic'
    make[1]: *** No rule to make target '/home/shuncey/es8316/sound/soc/intel/atom/sst/es8316.o', needed by '/home/shuncey/es8316/sound/soc/intel/atom/sst/snd-soc-es8316.o'. Stop.
    Makefile:1552: recipe for target '_module_/home/shuncey/es8316/sound/soc/intel/atom/sst' failed
    make: *** [_module_/home/shuncey/es8316/sound/soc/intel/atom/sst] Error 2
    make: Leaving directory '/usr/src/linux-headers-4.15.0-20-generic'
    mv: cannot stat '*.ko': No such file or directory
    /home/shuncey/es8316/sound/soc/intel/boards/Makefile
    make: Entering directory '/usr/src/linux-headers-4.15.0-20-generic'
    make[1]: *** No rule to make target '/home/shuncey/es8316/sound/soc/intel/boards/haswell.o', needed by '/home/shuncey/es8316/sound/soc/intel/boards/snd-soc-sst-haswell.o'. Stop.
    Makefile:1552: recipe for target '_module_/home/shuncey/es8316/sound/soc/intel/boards' failed
    make: *** [_module_/home/shuncey/es8316/sound/soc/intel/boards] Error 2
    make: Leaving directory '/usr/src/linux-headers-4.15.0-20-generic'
    mv: cannot stat '*.ko': No such file or directory

  4. #4
    Join Date
    May 2018
    Beans
    2

    Re: ES8316 Audio Driver

    I succesfully compiled the drivers: just put the two line in the correct Makefile as states in the second code snippet. Google Translate should be enough to understand it.
    Then launch the last script to compile the modules.
    See my answer here, it may help!

  5. #5
    Join Date
    May 2018
    Beans
    10

    Thumbs up Re: ES8316 Audio Driver

    This is kind of a stupid answer but, even if I Google Translate it i dont understand a thing do i create a makefile in sound/soc/intel/atom/sst and write this there
    # sound/soc/codecs/Makefile
    snd-soc-es8316-objs := es8316.o
    obj-m += snd-soc-es8316.o

    # sound/soc/intel/boards/Makefile
    snd-soc-sst-byt-cht-es8316-objs := bytcht_es8316.o
    obj-m += snd-soc-sst-byt-cht-es8316.o

    # sound/soc/intel/atom/sst/Makefile
    snd-intel-sst-acpi-objs += sst_acpi.o
    obj-m += snd-intel-sst-acpi.o

    and then make a .sh file containing this

    # ubuntu
    C_FLAGS="-C /usr/src/linux-headers-`uname -r`"
    # opensuse
    # C_FLAGS="-C /usr/src/linux-`uname -r`"
    c_dir=`pwd`
    for mf in `find $c_dir -type f -name "Makefile"`
    do
    echo $mf
    cd `dirname $mf`
    make $C_FLAGS M=`pwd` modules
    mv *.ko $c_dir
    cd $c_dir
    done

    ???
    Thanks

  6. #6
    Join Date
    May 2018
    Beans
    2

    Re: ES8316 Audio Driver

    Ok so, here it is the procedure step by step.
    Open a terminal, create a new folder, enter in it.
    Then:


    Code:
    nano download.sh
    Paste the following code:


    Code:
    # 原始出处#p_url='https://raw.githubusercontent.com/yangxiaohua1977/sound/master'
    # 将要合并到kernel中的代码,使用这个仓库中的代码
    p_url="https://raw.githubusercontent.com/dsd/linux/es8316"
    files="
    sound/soc/codecs/es8316.c
    sound/soc/codecs/es8316.h
    sound/soc/codecs/Makefile
    sound/soc/codecs/Kconfig
    sound/soc/intel/Kconfig
    sound/soc/intel/boards/Makefile
    sound/soc/intel/boards/cht_bsw_es8316.c
    sound/soc/intel/boards/bytcht_es8316.c
    sound/soc/intel/sst/atom/sst_acpi.c
    sound/soc/intel/atom/sst/sst_acpi.c
    sound/soc/intel/atom/sst-atom-controls.h
    sound/soc/intel/common/sst-acpi.h
    sound/soc/intel/common/sst-dsp.h
    sound/soc/intel/atom/sst-mfld-platform.h
    sound/soc/intel/atom/sst/sst.h
    sound/soc/intel/atom/sst-mfld-dsp.h
    "
    for f in $files
    do
        echo $f
        mkdir -p `dirname $f`
        wget $p_url/$f 
        mv `basename $f` $f 
    done
    then:


    Code:
    chmod +x download.sh
    ./download.sh
    and wait until the scripts download the needed files.


    Then:
    Code:
    rm sound/soc/codecs/Makefile
    rm sound/soc/intel/boards/Makefile
    rm sound/soc/intel/atom/sst/Makefile
    Then:


    Code:
    nano sound/soc/codecs/Makefile
    and paste:


    Code:
    snd-soc-es8316-objs := es8316.o
    obj-m    += snd-soc-es8316.o
    Then:


    Code:
    nano sound/soc/intel/boards/Makefile
    and paste:


    Code:
    snd-soc-sst-byt-cht-es8316-objs := bytcht_es8316.o
    obj-m += snd-soc-sst-byt-cht-es8316.o
    Then:


    Code:
    nano sound/soc/intel/atom/sst/Makefile
    and paste:


    Code:
    snd-intel-sst-acpi-objs += sst_acpi.o
    obj-m += snd-intel-sst-acpi.o
    Then:


    Code:
    nano compile.sh
    Paste:
    Code:
    # ubuntuC_FLAGS="-C /usr/src/linux-headers-`uname -r`"
    # opensuse
    # C_FLAGS="-C /usr/src/linux-`uname -r`"
    c_dir=`pwd`
    for mf in `find $c_dir -type f -name "Makefile"`
    do
        echo $mf
        cd `dirname $mf`
        make $C_FLAGS M=`pwd` modules
        mv *.ko $c_dir
        cd $c_dir 
    done
    Then:


    Code:
    chmod +x compile.sh
    ./compile.sh

  7. #7
    Join Date
    May 2018
    Beans
    10

    Re: ES8316 Audio Driver

    I'm litteraly crying it works!
    Thank You So Much Man!

    Well i failed after minutes of waiting this came out of nowhere
    Code:
    /home/shuncey/sound/sound/soc/codecs/Makefile
    make: *** No rule to make target 'modules'.  Stop.
    mv: cannot stat '*.ko': No such file or directory
    /home/shuncey/sound/sound/soc/intel/atom/sst/Makefile
    make: *** No rule to make target 'modules'.  Stop.
    mv: cannot stat '*.ko': No such file or directory
    /home/shuncey/sound/sound/soc/intel/boards/Makefile
    make: *** No rule to make target 'modules'.  Stop.
    mv: cannot stat '*.ko': No such file or directory
    Hey still need help. Thanks Sorry new to ubuntu

    Hey Guys Problem is solved. So i made a script that you guys can try if you have the es8316 on linux.
    https://drive.google.com/file/d/1bIJ...ew?usp=sharing
    and just execute it and there audio is working.
    Last edited by howefield; May 16th, 2018 at 12:10 PM. Reason: posts merged and code tags added.

  8. #8
    Join Date
    May 2018
    Beans
    10

    Re: ES8316 Audio Driver

    Hi !

    I am experiencing the same issue with a Yepo 737S, followed the same instructions as shuncey, and received de same error. I'm on this french forum : https://forum.ubuntu-fr.org/viewtopic.php?id=2026142

    I'm sure we'll find the answer, the community is strong !

  9. #9
    Join Date
    May 2018
    Beans
    10

    Re: ES8316 Audio Driver

    try this out https://drive.google.com/file/d/1bIJ...ew?usp=sharing

    Try the script I made it will probably work with headphones even speaker
    Last edited by howefield; May 16th, 2018 at 12:11 PM. Reason: posts merged.

  10. #10
    Join Date
    May 2018
    Beans
    10

    Re: ES8316 Audio Driver

    Wow, great work !

    I ran your script, and it did help : the sound now comes out of the headphones, but still not from the speakers. I'm sure not much is missing to finish the job, but being quite a begginer, I don't know what my next step should be. Alsamixer tells me speaker is shut. There must be an easy way to turn it on ?

    Anyway, thanks.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •