Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: thorald on June 17, 2017, 10:35:46 AM

Title: Hifiberry
Post by: thorald on June 17, 2017, 10: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?
Title: Re: Hifiberry
Post by: Paul_123 on June 18, 2017, 09: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
Title: Re: Hifiberry
Post by: thorald on June 18, 2017, 12:10:16 PM
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..

Title: Re: Hifiberry
Post by: Paul_123 on June 18, 2017, 10: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.
Title: Re: Hifiberry
Post by: thorald on June 19, 2017, 04: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
Title: Re: Hifiberry
Post by: Rich on June 19, 2017, 08: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
above the reply box and paste your text between the  Code Tags  as shown in this example:

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]

It will appear like this in your post:
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

Code Tags  serve as visual markers between what you are trying to say and the information you are posting. They also preserve
spacing so column aligned data displays properly.
Title: Re: Hifiberry
Post by: Paul_123 on June 19, 2017, 09: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.
Title: Re: Hifiberry
Post by: thorald on June 19, 2017, 10: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
Title: Re: Hifiberry
Post by: Paul_123 on June 19, 2017, 11:01:05 AM
There is a driver missing

Bela,

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

Title: Re: Hifiberry
Post by: thorald on June 19, 2017, 11: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?
Title: Re: Hifiberry
Post by: bmarkus on June 19, 2017, 11: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.
Title: Re: Hifiberry
Post by: bmarkus on June 20, 2017, 11:39:56 AM
Please update to 9.0.3
Title: Re: Hifiberry
Post by: thorald on June 21, 2017, 10:04:24 AM
Thank you all very much!

It works now!! 8)