Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HiFi Berry DAC+ Support #141

Closed
hermesgithub opened this issue Sep 1, 2014 · 9 comments
Closed

HiFi Berry DAC+ Support #141

hermesgithub opened this issue Sep 1, 2014 · 9 comments

Comments

@hermesgithub
Copy link

There is no support currently for the HiFi Berry DAC+ that fits onto the Raspberry Pi B+ board.

@hermesgithub
Copy link
Author

Just to elaborate 'sudo modprobe snd_soc_hifiberry_dacplus' does not work, and i think this is the required driver module.

@kingosticks
Copy link
Member

Have you tried updating the kernel as per the hifiberry guide? The more you can do to help the better, particularly when it's supporting hardware that the developer may not have access to. Once you get the driver module inserted you will probably need to add a new section similar to what was proposed for the digi at #100 (comment). I'd guess it'd be something as simple as:

elif [[ ${dev[1]} == "snd-rpi-hifiberry-dacplus" ]]; then
I2S_CARD=$num
log_progress_msg "found i2s device: card$I2S_CARD" "$NAME"
fi

If "snd-rpi-hifiberry-dacplus" is the wrong string you can easily find out what it should be by doing cat /sys/class/sound/card*/device/modalias.

@hermesgithub
Copy link
Author

Hey,

Thanks for the advice. Yes I tried the update. I also tried what you suggested.

If I:
cat /sys/class/sound/card*/device/modalias
Then I get:
platform:bcm2835_AUD0
platform:snd-hifiberry-dac

So I am not sure what the issue is.

@kingosticks
Copy link
Member

Was the driver module included the update?
On 6 Sep 2014 00:58, "hermesgithub" notifications@github.com wrote:

Hey,

Thanks for the advice. Yes I tried the update. I also tried what you
suggested.

If I:
cat /sys/class/sound/card*/device/modalias
Then I get:
platform:bcm2835_AUD0
platform:snd-hifiberry-dac

So I am not sure what the issue is.


Reply to this email directly or view it on GitHub
#141 (comment)
.

@hermesgithub
Copy link
Author

erm...I think so. If I look at /etc/modules i get the following list:

snd_bcm2835
snd_soc_bcm2708_i2s
bcm2708_dmaengine
snd_soc_pcm5102a
snd_soc_hifiberry_dac
ipv6
bcm2708_wdog
snd_soc_hifiberry_digi
#8192cu
snd_soc_bcm2708
bcm2708_dmaengine
snd_soc_hifiberry_dacplus

@hermesgithub
Copy link
Author

To add a comment. I accidentally left the analogue cable and that still works, even when musicbox is set to i2s.

@hermesgithub
Copy link
Author

Ok got it working!

I think that the i2s setting on the musicbox interface was not working, so I had to check that /etc/modules was fine. Mine looks like this:

#snd_bcm2835
snd_soc_bcm2708_i2s
bcm2708_dmaengine
snd_soc_pcm5102a
#snd_soc_hifiberry_dac
ipv6
bcm2708_wdog
snd_soc_hifiberry_digi
#8192cu
snd_soc_bcm2708
bcm2708_dmaengine
snd_soc_hifiberry_dacplus

and then I had to check that the i2s module was not blacklisted. So, I changed sudo nano raspi-/etc/modprobe.d/blacklist.conf to:

blacklist spi-bcm2708
#blacklist i2c-bcm2708

(i.e. commenting out that i2s line)

Some final tips are, with the kernel you need to upgrade the certificates with:
apt-get install ca-certificates --fix-missing
as well as:
sudo apt-get install binutils

before:
sudo apt-get install rpi-update
then
sudo rpi-update

Thanks for all your help kingosticks.

@woutervanwijk
Copy link
Member

You could try this new really-alpha image too: http://pimusicbox.com/musicbox0.5.1alpha.zip

@vidfamn
Copy link

vidfamn commented Sep 28, 2014

I've got Raspberry Pi B+ with Digi+, this works fine using standard Raspbian installation but I can't get it to work using musicbox.

Using the alpha image above (0.5.1alpha) my modules seems to be loaded and my device is listed on 'aplay -l' but it seems like the toslink doesn't boot up, I don't get the "red light" from the output. Trying to play a song outputs: bcm2708 i2s SYNC ERROR

I did rpi-update the same way as @hermesgithub

Anyone got this working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants