Hifishield2 freezes odroid c2

Moderators: mdrjr, odroid

Hifishield2 freezes odroid c2

Unread postby rawdlite » Fri Sep 14, 2018 6:03 pm

I recently purchased my second odroid c2. First runs with hifishield plus as a music server.
This time I got the hifishield2 in order to change the volume remotely.

Unfortunately I run into troubles setting it up.
The PSU was part of a KIT. Unfortunately it is equipped with a micro USB connector.
Installation was straight forward according to the wiki.
I also tried the dietpi image and did a guided setup to be on the safe side.

Code: Select all
aplay -l
shows the correct output

No matter what I tried the system freezes when I run speaker-test
Here is the log output I could get.

495.018955] divider=16,frac=33920000,SDMval=4523
[ 495.019014] [aml-i2s-dai]i2s dma ffffff8001401000,phy addr 2140798976,mode 0,ch 2
[ 495.019021] ----aml_hw_iec958_init,runtime->rate=48000,sample_rate=4--
[ 495.019025] aml_set_spdif_clk rate
[ 495.019040] divider=20,frac=33920000,SDMval=5654
[ 495.019093] set normal 512 fs /4 fs
[ 495.019099] iec958 mode PCM16
[ 495.019109] IEC958 16bit
[ 495.019113] 958 with i2s
[ 495.021372] aiu i2s playback enable
[ 495.021384] Bad mode in Synchronous Abort handler detected, code 0x86000005
[ 495.021407] Internal error: Oops - bad mode: 0 [#1] PREEMPT SMP
[ 495.021418] Modules linked in: spidev spi_gpio spi_bitbang w1_gpio wire meson_gpiomem gxbb_wdt snd_soc_odroid_dac2 snd_soc_pcm512x_i2c snd_soc_pcm512x sx865x aml_i2c ir_lirc_codec lirc_dev ir_mce_kbd_decoder ir_sanyo_decoder ir_sony_decoder ir_jvc_decoder ir_nec_decoder ir_rc5_decoder ir_rc6_decoder meson_ir ip_tables ipv6 autofs4
[ 495.021505] CPU: 3 PID: 1570 Comm: speaker-test Not tainted 3.16.57+ #1
[ 495.021517] task: ffffffc073bcbe80 ti: ffffffc07d5d0000 task.ti: ffffffc07d5d0000
[ 495.021528] pc : (null)
[ 495.021546] lr : hdmitx_audio_mute_op.part.0+0x34/0x40
[ 495.021555] sp : ffffffc07d5d3b90 pstate : 800001c5
[ 495.021563] x29: ffffffc07d5d3b90 x28: ffffffc07864d800
[ 495.021573] x27: 0000000000000000 x26: 0000000000000000
[ 495.021584] x25: ffffffc0017357c8 x24: 00000055770dc210
[ 495.021595] x23: ffffffc07386c800 x22: ffffffc07386ca00
[ 495.021605] x21: 0000000000000060 x20: ffffffc078bdd800
[ 495.021615] x19: 0000000000000000 x18: 000000000000000a
[ 495.021626] x17: 0000007f90d4aea0 x16: ffffffc0011f2560
[ 495.021636] x15: 0000000000000001 x14: 0000000000000000
[ 495.021646] x13: ffffffc081d9aad7 x12: ffffffc001d9aadf
[ 495.021657] x11: 0000000000000000 x10: ffffffc07d5d3980
[ 495.021667] x9 : ffffffc07d5d3980 x8 : 000000000000537c
[ 495.021677] x7 : 0000000000000000 x6 : 00000000000002b4
[ 495.021687] x5 : 0000000000000000 x4 : 0000000000000000
[ 495.021697] x3 : 0000000000000000 x2 : 0000000000000001
[ 495.021707] x1 : 0000000014001000 x0 : ffffffc001f8cf08

[ 495.021723] Process speaker-test (pid: 1570, stack limit = 0xffffffc07d5d0058)
[ 495.021734] Call trace:
[ 495.021740] (null)
[ 495.021749] hdmitx_audio_mute_op+0x54/0x60
[ 495.021761] aml_dai_i2s_trigger+0x170/0x190
[ 495.021770] soc_pcm_trigger+0xa0/0xf8
[ 495.021781] snd_pcm_do_start+0x4c/0x58
[ 495.021790] snd_pcm_action_single+0x4c/0xa8
[ 495.021798] snd_pcm_action+0x98/0xb0
[ 495.021807] snd_pcm_start+0x30/0x40
[ 495.021816] snd_pcm_lib_write1+0x2f4/0x380
[ 495.021826] snd_pcm_lib_write+0x6c/0xa0
[ 495.021834] snd_pcm_playback_ioctl1+0x310/0x328
[ 495.021844] snd_pcm_playback_ioctl+0x48/0x78
[ 495.021855] do_vfs_ioctl+0x334/0x578
[ 495.021863] SyS_ioctl+0x94/0xa8
[ 495.021873] Code: bad PC value
[ 495.021882] ---[ end trace eeb66dba8f0028e1 ]---
[ 495.021893] note: speaker-test[1570] exited with preempt_count 2
[ 516.042977] INFO: rcu_preempt detected stalls on CPUs/tasks: { 3} (detected by 2, t=2102 jiffies, g=469, c=468, q=461)
[ 516.043017] Task dump for CPU 3:
[ 516.043027] speaker-test R running task 0 1570 1392 0x00000006
[ 516.043042] Call trace:
[ 516.043059] __switch_to+0x74/0x90
[ 516.043071] snd_pcm_action+0x98/0xb0
[ 516.043080] snd_pcm_start+0x30/0x40
[ 516.043090] snd_pcm_lib_write1+0x2f4/0x380
[ 516.043100] snd_pcm_lib_write+0x6c/0xa0
[ 516.043110] snd_pcm_playback_ioctl1+0x310/0x328
[ 516.043119] snd_pcm_playback_ioctl+0x48/0x78
[ 516.043130] do_vfs_ioctl+0x334/0x578
[ 516.043138] SyS_ioctl+0x94/0xa8
[ 579.092977] INFO: rcu_preempt detected stalls on CPUs/tasks: { 3} (detected by 2, t=8407 jiffies, g=469, c=468, q=2333)
[ 579.093021] Task dump for CPU 3:
[ 579.093031] speaker-test R running task 0 1570 1392 0x00000006
[ 579.093046] Call trace:
[ 579.093063] __switch_to+0x74/0x90
[ 579.093074] snd_pcm_action+0x98/0xb0
[ 579.093083] snd_pcm_start+0x30/0x40
[ 579.093094] snd_pcm_lib_write1+0x2f4/0x380
[ 579.093104] snd_pcm_lib_write+0x6c/0xa0
[ 579.093113] snd_pcm_playback_ioctl1+0x310/0x328
[ 579.093123] snd_pcm_playback_ioctl+0x48/0x78
[ 579.093134] do_vfs_ioctl+0x334/0x578
[ 579.093142] SyS_ioctl+0x94/0xa8
rawdlite
 
Posts: 4
Joined: Fri Sep 14, 2018 4:39 pm
languages_spoken: english, german
ODROIDs: odroid c2

Re: Hifishield2 freezes odroid c2

Unread postby odroid » Fri Sep 14, 2018 6:28 pm

You had to check "lsmod" output first. Refer this setup guide.
https://wiki.odroid.com/accessory/sound ... fi-shield2
User avatar
odroid
Site Admin
 
Posts: 28610
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Hifishield2 freezes odroid c2

Unread postby rawdlite » Mon Sep 17, 2018 1:53 am

Thank you, this is the guide i followed
Output of lsmod
Code: Select all
lsmod
Module                  Size  Used by
spidev                  6643  0
spi_gpio                6551  0
spi_bitbang             4055  1 spi_gpio
w1_gpio                 3801  0
wire                   28745  1 w1_gpio
meson_gpiomem           4072  0
gxbb_wdt                3411  0
snd_soc_odroid_dac2     3449  0
snd_soc_pcm512x_i2c     2705  1
snd_soc_pcm512x         9983  1 snd_soc_pcm512x_i2c
sx865x                  5235  0
aml_i2c                16826  0
ir_lirc_codec           4910  3
lirc_dev               10647  1 ir_lirc_codec
ir_mce_kbd_decoder      3381  0
ir_sanyo_decoder        1660  0
ir_sony_decoder         1698  0
ir_jvc_decoder          1696  0
ir_rc6_decoder          2005  0
ir_rc5_decoder          1597  0
ir_nec_decoder          1824  0
meson_ir                3372  0
ip_tables              17301  0
ipv6                  386085  16
autofs4                27654  3


aplay -l
Code: Select all
**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: ODROIDHDMI [ODROID-HDMI], Gerät 0: I2S dit-hifi-0 []
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 1: ODROIDDAC2 [ODROID-DAC2], Gerät 0: I2S pcm512x-hifi-0 []
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0


Also i see:
Code: Select all
platform odroid_dac2: Driver odroid_dac2 requests probe deferral
[    2.771485] odroid_dac2 odroid_dac2: ASoC: CODEC pcm512x.1-004c not registered
[    2.771534] odroid_dac2 odroid_dac2: snd_soc_register_card failed (-517)
[    2.771569] platform odroid_dac2: Driver odroid_dac2 requests probe deferral
[    2.808732] 1-004c supply AVDD not found, using dummy regulator
[    2.808788] 1-004c supply DVDD not found, using dummy regulator
[    2.808821] 1-004c supply CPVDD not found, using dummy regulator
[    2.809528] pcm512x 1-004c: No SCLK, using BCLK: -2
[    2.811836] odroid_dac2 odroid_dac2: pcm512x-hifi <-> I2S mapping ok
[    2.832916] i2c i2c-1: new_device: Instantiated device pcm5242 at 0x4c
rawdlite
 
Posts: 4
Joined: Fri Sep 14, 2018 4:39 pm
languages_spoken: english, german
ODROIDs: odroid c2

Re: Hifishield2 freezes odroid c2

Unread postby rawdlite » Mon Sep 17, 2018 2:28 am

I think i found the problem.

Code: Select all
echo pcm5242 0x4c > /sys/class/i2c-adapter/i2c-1/new_device

must be run before
Code: Select all
modprobe snd-soc-odroid-dac2


HTH
rawdlite
 
Posts: 4
Joined: Fri Sep 14, 2018 4:39 pm
languages_spoken: english, german
ODROIDs: odroid c2

Re: Hifishield2 freezes odroid c2

Unread postby odroid » Mon Sep 17, 2018 9:03 am

Is it working fine?
User avatar
odroid
Site Admin
 
Posts: 28610
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Hifishield2 freezes odroid c2

Unread postby rawdlite » Wed Sep 19, 2018 2:44 pm

Yes, it is working now.
Thank you.

1. Using Power Plug.
2. Command sequence as documented.
rawdlite
 
Posts: 4
Joined: Fri Sep 14, 2018 4:39 pm
languages_spoken: english, german
ODROIDs: odroid c2


Return to Hardware and peripherals

Who is online

Users browsing this forum: No registered users and 2 guests