[SOLVED] Volumio 2.03 ODROID C2/HiFi Shield 2 volume problem

Hi All,

My Volumio version is 2.03 for ODROID C2 and my DAC is HiFi Shield 2.
The DAC is new version.
When I changed the DAC setting to “ODROIDDAC2” and reboot, there is no sound both from RAC and optical output.

I think some files need to be changed.

  1. In the /opt/odroiddac.sh
......
amixer -c 1 sset Digital 102
......

The Digital value “102” is too small.
This value must be changed to “201”
Please refer the following URL :
http://odroid.com/dokuwiki/doku.php?id=en:c2_hifi_shield

  1. In the /lib/systemd/system/odroiddac.service
......
WantedBy=multi-user.target

This line has timing issue that amixer command from /opt/odroiddac.sh is not working.
I think “WantedBy” value must be changed to “sound.target”
Please refer the following URL :
http://forum.odroid.com/viewtopic.php?f=118&t=24415

  1. /etc/asound.conf
    add following lines.
pcm.!default {
    type hw
    card 1
    device 0
}
ctl.!default {
    type hw
    card 1
    device 0
}

Please refer the following URL :
http://forum.odroid.com/viewtopic.php?f=118&t=24415

Hi, thanks for the info.
Though I have not experienced the issues you are mentioning during any of my tests, the timing issue could be relevant, so I will change that.
Also raising volume level to 201, last used value will be persisted anyway.
If you want output on the optical port, you will need to select hdmi, you cannot have RCA and optical at the same time (check the HK forum).

I will make sure, the service change will go into the next release.

Edit: These changes have turned out difficult, I’ll revert and investigate

-Gé-

Hi, gkkpch.

In my case, Both RCA and Optical are working same time with “ODROIDDAC2” output device setting.
I will ask to HK and let you know the result.

Thank you very much!

Hi, gkkpch.

I got reply from HK.
They said the output from Analogue and Optical at the same time is normal if I2S/SPDIF pin-function is enabled.
if you want to enable pin-function for Optical output then you must select HDMI output at least once after boot.
So they write to their WIKI to select HDMI output for Optical output.
After enabled pin-function for Optical, Analogue and Optical output at the same time is normal when you select ODROIDDAC2.

Thank you.

I have requested HK to change the PCM512x driver in order to limit the volume somewhere between 0 and 3dB.
For amixer this upper limit should be 255 (100%).
Currently giving amixer a value of 201 is nice, but as Volumio uses amixer, it will allow a setting up to 255, which is way too high.
Other DACs, like the Piano 2.1 have already solved this issue.

Once this is done, I will update the kernel and prepare a new image.

-Gé-

With 2.129 image the Hifi Shield 2 works correct to me. (testet with a C2).
The only thing is: after switch from HDMI to HifiShield 2 no 'restart’message comes but it is required!