WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Hifiberry  (Read 306 times)

Offline thorald

  • WikiUser
  • *
  • Posts: 16
Hifiberry
« on: June 17, 2017, 06:35:46 AM »
Hello!
Anyone with experience with hifiberry?

Im trying to get a dacplus card working, but cant get it recognized.

I have tried different combinations of suggested configurations that i read on other places, including config settings from the official site, but nothing seems to get it going.

Any ideas?

Offline Paul_123

  • Sr. Member
  • ****
  • Posts: 390
Re: Hifiberry
« Reply #1 on: June 18, 2017, 05:41:11 AM »
You need to install these extensions

alsa.tcz
alsa-utils.tcz

There will be other dependancies loaded, but these are the top level.

Then add the following line to /mnt/mmcblk0p1/config.txt

dtoverlay=hifiberry-dacplus

Reboot your system

Offline thorald

  • WikiUser
  • *
  • Posts: 16
Re: Hifiberry
« Reply #2 on: June 18, 2017, 08:10:16 AM »
Thanks for the suggestion, but unfortunately it does not work.

I have both alsa and alsa-utils installed

added dtoverlay=hifiberry-dacplus config.txt
removed dtparam=audio=on, to disable the onboard sound.

Played around with different settings for
dtparam=i2c=on,spi=on,i2s=on

And other settings i cant remember, but nothing I do is working.

I have tried to install the other alsa stuff to but that does nothing either..


Offline Paul_123

  • Sr. Member
  • ****
  • Posts: 390
Re: Hifiberry
« Reply #3 on: June 18, 2017, 06:19:27 PM »
What software are you trying to use.

what is the output of

aplay -L

Is there anything in dmesg that shows what the problem might be.

Offline thorald

  • WikiUser
  • *
  • Posts: 16
Re: Hifiberry
« Reply #4 on: June 19, 2017, 12:48:11 AM »
I am trying to use vlc. My compiled version works with the internal, so there is no issue there.

Output of aplay -l is:
Code: [Select]
aplay: device_list:268: no soundcards found...
Dmesg gave some strange results:
Code: [Select]
[   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.191762] pcm512x 1-004d: Failed to get supplies: -517
[   36.194345] snd-rpi-hifiberry-dacplus soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[   36.238860] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.238867] pcm512x 1-004d: Failed to get supplies: -517
[   36.239070] snd-rpi-hifiberry-dacplus soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[   36.246779] usbcore: registered new interface driver brcmfmac
[   36.247670] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.247679] pcm512x 1-004d: Failed to get supplies: -517
[   36.247871] snd-rpi-hifiberry-dacplus soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry

lsmod gave me this:
Code: [Select]
Module                  Size  Used by    Not tainted
ipv6                  410176 18 [permanent]
i2c_dev                 7287  0
brcmfmac              211043  0
brcmutil                9223  1 brcmfmac
cfg80211              548840  1 brcmfmac
rfkill                 21321  2 cfg80211
snd_soc_hifiberry_dacplus     4904  0
snd_soc_bcm2835_i2s     6347  0
snd_soc_pcm512x_i2c     2730  0
snd_soc_pcm512x        20272  1 snd_soc_pcm512x_i2c
snd_soc_core          177338  3 snd_soc_hifiberry_dacplus,snd_soc_bcm2835_i2s,snd_soc_pcm512x
snd_pcm_dmaengine       6034  1 snd_soc_core
snd_pcm                97468  4 snd_soc_hifiberry_dacplus,snd_soc_pcm512x,snd_soc_core,snd_pcm_dmaengine
snd_timer              23881  1 snd_pcm
snd_compress            9996  1 snd_soc_core
snd                    70476  4 snd_soc_core,snd_pcm,snd_timer,snd_compress
clk_hifiberry_dacpro     2870  0
squashfs               34499  0
zram                   23021  1
zsmalloc               18832  1 zram
i2c_bcm2835             6293  0
spi_bcm2835             7468  0
bcm2835_gpiomem         3783  0
uio_pdrv_genirq         3788  0
uio                    10425  1 uio_pdrv_genirq

    [EDIT]: Code tags added.  Rich
« Last Edit: June 19, 2017, 04:21:14 AM by Rich »

Offline Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5300
Re: Hifiberry
« Reply #5 on: June 19, 2017, 04:52:30 AM »
Hi thorald
Please use  Code Tags  when posting commands and responses seen in a terminal. To use  Code Tags  click on the  #  icon
and paste what you copied from the terminal between the  Code Tags  shown in bold text here:
Quote
[code ][   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517[/code ]
Please note that  Code Tags  don't actually have a space between the  e  and  ]  characters. This was done here so that they
would be visible rather than executed by the browser.

Offline Paul_123

  • Sr. Member
  • ****
  • Posts: 390
Re: Hifiberry
« Reply #6 on: June 19, 2017, 05:17:58 AM »
What version of piCore are you running?

also, can you add dtparam=audio=on back to your config.txt, so that we can be sure alsa is setup correctly.

Offline thorald

  • WikiUser
  • *
  • Posts: 16
Re: Hifiberry
« Reply #7 on: June 19, 2017, 06:09:13 AM »
I am running picore9.0

ok, dtparam=audio=on

aplay -l
Code: [Select]
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 7/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Offline Paul_123

  • Sr. Member
  • ****
  • Posts: 390
Re: Hifiberry
« Reply #8 on: June 19, 2017, 07:01:05 AM »
There is a driver missing

Bela,

drivers/regulators/fixed.ko is required for i2s in 4.9.y kernels


Offline thorald

  • WikiUser
  • *
  • Posts: 16
Re: Hifiberry
« Reply #9 on: June 19, 2017, 07:21:33 AM »
Ah that explains a lot.
Thought i was going mad for a second haha.

Ok, can i load the driver myself, or is it better to go with an earlier version of picore?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 6888
    • My Community Forum
Re: Hifiberry
« Reply #10 on: June 19, 2017, 07:22:32 AM »
There is a driver missing

Bela,

drivers/regulators/fixed.ko is required for i2s in 4.9.y kernels

Thinks, will fix.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 6888
    • My Community Forum
Re: Hifiberry
« Reply #11 on: June 20, 2017, 07:39:56 AM »
Please update to 9.0.3
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline thorald

  • WikiUser
  • *
  • Posts: 16
Re: Hifiberry
« Reply #12 on: June 21, 2017, 06:04:24 AM »
Thank you all very much!

It works now!! 8)