Odroid C2 + HiFi Shield+

  • Hi.

    Does latest alpha release supportHiFi Shield+ ?

    Because I just try latest modified image for retroplayer :

    retroplayer

    and I can only choose for HDMI output, no optical output :

    So do I have to mod the release (load module, enter command line, ...) to use optical output ?

    Thanks.

  • Modules are not compiled or provided :

    Code
    LibreELEC-c2:~ # modprobe snd-soc-pcm5102
    modprobe: FATAL: Module snd-soc-pcm5102 not found in directory /lib/modules/3.14.29
    LibreELEC-c2:~ # modprobe snd-soc-odroid-dac
    modprobe: FATAL: Module snd-soc-odroid-dac not found in directory /lib/modules/3.14.29
    LibreELEC-c2:~ #

    Do I need to install Volumio OS so I can copy modules into LE ?

    ODROID Forum • View topic - C1+/C2 HiFi shield (pcm5102) driver

    EDIT :

    On Volumio, kernel is 3.4.79 and modules are :

    Code
    root@volumio:/# find . -name snd-soc-pcm5102*.*
    ./lib/modules/3.14.79/kernel/sound/soc/codecs/snd-soc-pcm5102.ko
    ./static/lib/modules/3.14.79/kernel/sound/soc/codecs/snd-soc-pcm5102.ko
    root@volumio:/# find . -name snd-soc-odroid-dac*.*
    ./lib/modules/3.14.79/kernel/sound/soc/aml/m8/snd-soc-odroid-dac.ko
    ./lib/modules/3.14.79/kernel/sound/soc/aml/m8/snd-soc-odroid-dac2.ko
    ./static/lib/modules/3.14.79/kernel/sound/soc/aml/m8/snd-soc-odroid-dac.ko
    ./static/lib/modules/3.14.79/kernel/sound/soc/aml/m8/snd-soc-odroid-dac2.ko

    I have try also with regular LibreELEC release :

    LibreELEC-Odroid_C2.aarch64-7.90.007.img

    But modules are not provided.

    Edited once, last by mikebzh44 (October 31, 2016 at 7:28 AM).

  • please update to this build and then do again what I asked for

    LibreELEC-Odroid_C2.aarch64-8.0-devel-20161031231959-r24348-g560ee96.tar

    you might also have to put the following into /storage/.config/asound.conf, but try without it first

    Code
    pcm.!default  {
     type hw card 1
    }
    ctl.!default {
     type hw card 1
    }

    also, are you sure it is the hifi-shield+ or the hifi-shield2?

  • Thank you very much for this build.

    Modules are OK now :

    And aplay find the card :

    Code
    LibreELEC-c2:~ # aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: AMLM8AUDIO [AML-M8AUDIO], device 0: I2S.31 dit-hifi-0
      Subdevices: 0/1
      Subdevice #0: subdevice #0
    card 1: ODROIDDAC [ODROID-DAC], device 0: I2S.31 pcm5102-0
      Subdevices: 1/1
      Subdevice #0: subdevice #0

    I have kill and restart Kodi but no optical output available on Kodi :

    So I have create /storage/.conf/asoud.conf and restart Odroid C2. But I have to reload modules (where/how can I specifie to LE to load this modules at boot time ?).

    But Kodi audio output is not displaying Optical output :(

    Edited once, last by mikebzh44 (November 4, 2016 at 4:43 PM).

  • It's a HiFi-Shield+

    I try to load modules at boot time following tuto given in my previous message but :

    /etc/modules does not exist

    there is only /etc/modules-load.d/README

    Try to add snd-soc-pcm5102.conf in /usr/lib/modules-load.d but it's a read-only filesystem :

    Code
    LibreELEC-c2:/usr/lib/modules-load.d # touch snd-soc-pcm5102.conf
    touch: snd-soc-pcm5102.conf: Read-only file system

    So how can I load modules at boot time ?

    Thanks.

  • Try :

    But can find any SPDIF output in audio settings :(

    Do I need to edit some files in /storage/.conf ?

    Try to modify /storage/.config/modprobe.d/disable-spdif-for-hd-audio.conf but modules are not loaded at boot time.
    [hr]


    /storage/.config/modules-load.d/

    So :

    Where is my mistake ?

    Thanks for your help.
    [hr]
    OK, rename files with .conf in /storage/.config/modules-load :

    Code
    # ls -l /storage/.config/modules-load.d/
    total 4
    -rw-r--r--    1 root     root          1703 Sep 29 06:29 README
    -rw-r--r--    1 root     root            19 Nov 16 18:48 snd-soc-odroid-dac.conf
    -rw-r--r--    1 root     root            16 Nov 16 18:48 snd-soc-pcm5102.conf

    and now modules are loaded at boot time :

    But still not SPDIF output in Kodi :

    Edited once, last by mikebzh44 (November 16, 2016 at 6:58 PM).

  • Hi, I'm in the same case : Odroid C2 + HiFi Shield+

    I'm trying to get the sound to the DAC, because my amplifier is connected to RCA.

    Here's are the step I made, after upgrading to the version http://lrusak.libreelec.tv/LibreELEC-Odr...60ee96.tar

    I also made a file /storage/.config/asound.conf with

    Code
    pcm.!default  {
     type hw card 1
    }
    ctl.!default {
     type hw card 1
    }


    Still, I cannot find the DAC audio output in Kodi settings and the sound still comes out of the TV speakers (through HDMI)...
    If it appears righit with aplay -l, why doesn't it show on the UI ?

    Am I missing something ?

    Thanks for everything :)

    Edited once, last by EisenHeim (November 17, 2016 at 8:32 PM).

  • Because it's not supported in our kernel yet?


    Aplay outputs this :

    Code
    LibreELEC:~ # aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: AMLM8AUDIO [AML-M8AUDIO], device 0: I2S.31 dit-hifi-0
      Subdevices: 0/1
      Subdevice #0: subdevice #0
    card 1: ODROIDDAC [ODROID-DAC], device 0: I2S.31 pcm5102-0
      Subdevices: 1/1
      Subdevice #0: subdevice #0

    Doesn't that mean that the DAC audio output should be available in Kodi ?