C2 and HiFi Shiled 2 on Ubuntu 18.04

Moderators: mdrjr, odroid

C2 and HiFi Shiled 2 on Ubuntu 18.04

Unread postby MacNothing » Wed Nov 07, 2018 2:03 am

Hello, I am completely new to the ODROID world. I just recently purchased the Odroid C2 together with HiFi Shield 2.
It came together with 8GB eMMC Linux card with preinstalled Ubuntu 18.04 on it.

And here's the thing, it seems I can't make the HiFi Shield 2 work properly there. I followed the instructions on the wiki in the exact way, but I always end up with non functional audio device. From the begining it seems to work just fine (the test in sound settings etc.) But when I play some video, can be from local storage through SMplayer or Kodi, or even a YouTube video in web browser, the video playback gets disrupted and finally stops playing at all. And the audio is lost completely in the process. Only restart helps, but not for long. In Kodi I can't get it work almost not at all.

I can see errors in dmesg output:

Code: Select all
odroid@odroid:~$ dmesg | grep error
[    0.634555] kvm [1]: error initializing Hyp mode: -19
[    3.060766] hdmitx: ddc rd8b error 0x54 0x01
[    3.064994] hdmitx: ddc rd8b error 0x54 0x01
[    4.044907] mmc driver version: 1.07, 2015-01-21: fix a bug in tuning which caused eMMC data CRC error
[    4.224372] gpio-key: probe of c8100000.gpio_keypad failed with error -22
[    7.397870] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro
[   19.159461] i2c i2c-2: [aml_i2c_xfer] error ret = -5 (-EIO)
[   19.167374] i2c i2c-2: [aml_i2c_xfer] error ret = -5 (-EIO)
[   19.176086] i2c i2c-2: [aml_i2c_xfer] error ret = -5 (-EIO)
[   19.187496] i2c i2c-2: [aml_i2c_xfer] error ret = -5 (-EIO)
[   19.198630] i2c i2c-2: [aml_i2c_xfer] error ret = -5 (-EIO)
[   19.209182] i2c i2c-2: [aml_i2c_xfer] error ret = -5 (-EIO)
[   19.220157] sx865x: probe of 2-0049 failed with error -5


I have even tried to downgrade to Ubuntu 16.04 (on a different microSD card) and the result is pretty much the same.

So I am currently back on much faster original eMMC card with Ubuntu 18.04:
Code: Select all
Linux odroid 3.16.60-27 #1 SMP PREEMPT Tue Oct 23 10:37:33 -03 2018 aarch64 aarch64 aarch64 GNU/Linux


I am aiming to have Odroid C2 connected through HDMI to my LG TV and using Kodi, the HiFi Shield will be connected through optical TosLink to my soundbar in final. So far I am testing it with just RCA output and an old monitor with the original basic Ubuntu Mate installation.

Any chance, that anybody was solving similar issue? I have been looking through the forum for several days with no luck. Many thanks.

FYI, listing from aplay -l command:
Code: Select all
odroid@odroid:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ODROIDHDMI [ODROID-HDMI], device 0: I2S dit-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: ODROIDDAC2 [ODROID-DAC2], device 0: I2S pcm512x-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
MacNothing
 
Posts: 3
Joined: Wed Nov 07, 2018 1:40 am
languages_spoken: english, german, czech
ODROIDs: Odroid-C2, Odroid-GO, HiFi Shield 2

Re: C2 and HiFi Shiled 2 on Ubuntu 18.04

Unread postby rooted » Wed Nov 07, 2018 2:44 pm

Seems like it may be a power issue. Are you using micro USB to power the device?
User avatar
rooted
 
Posts: 5680
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: C2 and HiFi Shiled 2 on Ubuntu 18.04

Unread postby MacNothing » Wed Nov 07, 2018 4:42 pm

Hi, I am using the barrel input, BUT I have the cable with barrel on one side and USB-A on the other, NOT the complete original 2A power source with wall plug.
Many thanks for the tip, I am gonna try a different power supplies and see if there are any differences ;)
MacNothing
 
Posts: 3
Joined: Wed Nov 07, 2018 1:40 am
languages_spoken: english, german, czech
ODROIDs: Odroid-C2, Odroid-GO, HiFi Shield 2

Re: C2 and HiFi Shiled 2 on Ubuntu 18.04

Unread postby MacNothing » Thu Nov 08, 2018 6:49 am

So, I have been playing with several power sources and no change so far. I have tried it through barrel input and through micro USB. I end up with barrel input and with stabilized 5V/2A power brick, which I believe is more powerful, than needed. The dmesg output still shows the same error for the I2S device as before.

During my testing I also noticed something else - with aplay -l listing there are slight changes within the subdevices, but I have no idea what it means at the first place, so the change and its meaning is a complete mystery for me.

I start with:
Code: Select all
odroid@odroid:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ODROIDHDMI [ODROID-HDMI], device 0: I2S dit-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: ODROIDDAC2 [ODROID-DAC2], device 0: I2S pcm512x-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

after some crashes with video/audio playback I get this:
Code: Select all
odroid@odroid:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ODROIDHDMI [ODROID-HDMI], device 0: I2S dit-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: ODROIDDAC2 [ODROID-DAC2], device 0: I2S pcm512x-hifi-0 []
  Subdevices: 0/1
  Subdevice #0: subdevice #0

and finally after trying to switch to some working output I end up with following:
Code: Select all
odroid@odroid:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ODROIDHDMI [ODROID-HDMI], device 0: I2S dit-hifi-0 []
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: ODROIDDAC2 [ODROID-DAC2], device 0: I2S pcm512x-hifi-0 []
  Subdevices: 0/1
  Subdevice #0: subdevice #0


Also I have noticed, that I have some software issues with installed codecs - I can't get to play mp4, mkv etc. files. Only basic avi/XviD encoded files are playable. I tried to install ubuntu-restricted-extras, but so far without any change.
I originally thought that Kodi comes fully equipped for playback such files... Any hint at least in this field? I can't find any viable solutions. Thanks ;)
MacNothing
 
Posts: 3
Joined: Wed Nov 07, 2018 1:40 am
languages_spoken: english, german, czech
ODROIDs: Odroid-C2, Odroid-GO, HiFi Shield 2


Return to I2S Devices (HiFi Shield DAC and Stereo Boom Bonnet Kit)

Who is online

Users browsing this forum: No registered users and 4 guests