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.

  • Try


    Code
    1. modprobe snd-soc-pcm5102
    2. modprobe snd-soc-odroid-dac


    Then check the output of aplay

    Code
    1. aplay -l
  • Modules are not compiled or provided :

    Code
    1. LibreELEC-c2:~ # modprobe snd-soc-pcm5102
    2. modprobe: FATAL: Module snd-soc-pcm5102 not found in directory /lib/modules/3.14.29
    3. LibreELEC-c2:~ # modprobe snd-soc-odroid-dac
    4. modprobe: FATAL: Module snd-soc-odroid-dac not found in directory /lib/modules/3.14.29
    5. 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
    1. [email protected]:/# find . -name snd-soc-pcm5102*.*
    2. ./lib/modules/3.14.79/kernel/sound/soc/codecs/snd-soc-pcm5102.ko
    3. ./static/lib/modules/3.14.79/kernel/sound/soc/codecs/snd-soc-pcm5102.ko
    4. [email protected]:/# find . -name snd-soc-odroid-dac*.*
    5. ./lib/modules/3.14.79/kernel/sound/soc/aml/m8/snd-soc-odroid-dac.ko
    6. ./lib/modules/3.14.79/kernel/sound/soc/aml/m8/snd-soc-odroid-dac2.ko
    7. ./static/lib/modules/3.14.79/kernel/sound/soc/aml/m8/snd-soc-odroid-dac.ko
    8. ./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 ().

  • the modules aren't present because we don't have them in our linux-amlogic kernel. I'll see if I can port the driver and make a test build.

  • Thanks a lot ;)


    The Odroid-C2 + HiFi shield will be the perfect substitute for my current HTPC (my AVR doesn't have HDMI input so I need to use optical).

  • Thank you very much for this build.


    Modules are OK now :


    And aplay find the card :

    Code
    1. LibreELEC-c2:~ # aplay -l
    2. **** List of PLAYBACK Hardware Devices ****
    3. card 0: AMLM8AUDIO [AML-M8AUDIO], device 0: I2S.31 dit-hifi-0
    4.   Subdevices: 0/1
    5.   Subdevice #0: subdevice #0
    6. card 1: ODROIDDAC [ODROID-DAC], device 0: I2S.31 pcm5102-0
    7.   Subdevices: 1/1
    8.   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 ().

  • 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
    1. LibreELEC-c2:/usr/lib/modules-load.d # touch snd-soc-pcm5102.conf
    2. 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
    1. # ls -l /storage/.config/modules-load.d/
    2. total 4
    3. -rw-r--r--    1 root     root          1703 Sep 29 06:29 README
    4. -rw-r--r--    1 root     root            19 Nov 16 18:48 snd-soc-odroid-dac.conf
    5. -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 ().

  • can you try using SPDIF with that alsa device? just to make sure that that doesn't work.

  • Will try this next time, just unplug all the stuff because each time I want to test Odroid C2, I need to unplug my HTPC.


    Envoyé de mon Nexus 5X en utilisant Tapatalk

  • 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
    1. pcm.!default  {
    2.  type hw card 1
    3. }
    4. ctl.!default {
    5.  type hw card 1
    6. }



    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 ().

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



    Aplay outputs this :

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


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