Forum
Hifiberry - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Hardware (/forum-7.html)
+--- Forum: Video and Audio (/forum-28.html)
+--- Thread: Hifiberry (/thread-2397.html)

Pages: 1 2 3 4 5 6 7 8 9 10


RE: Hifiberry - Nachteule - 6th Mar, 2016 12:17 AM

...
And I did not commented out in /etc/modules.xbian snd_bcm2835 (but makes no difference for Hifiberry if it is uncommented or not)


RE: Hifiberry - Ewoud Bakker - 6th Mar, 2016 05:48 PM

Terminal
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 8/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
card 1: sndrpihifiberry [snd_rpi_hifiberry_digi], device 0: HifiBerry Digi HiFi wm8804-spdif-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0

i configed the asound to get card 1 and when that didn't work put in the name of the card.

Terminal
cat /etc/asound.conf
pcm.!default {
type hw
card sndrpihifiberry
}
ctl.!default {
type hw
card sndrpihifiberry
}


config.txt
Terminal
#initramfs initramfs.gz 0x1000000
gpu_mem_1024=256
gpu_mem_512=144
gpu_mem_256=100
initial_turbo=3
hdmi_ignore_cec_init=1
disable_overscan=1
disable_splash=1

dtoverlay=hifiberry-digi


added inyour GPIO line
Terminal
#initramfs initramfs.gz 0x1000000
gpu_mem_1024=256
gpu_mem_512=144
gpu_mem_256=100
initial_turbo=3
hdmi_ignore_cec_init=1
disable_overscan=1
disable_splash=1

# dtoverlay=hifiberry-digi
# GPIO pins have to be remapped for LIRC for working together with Hifiberry
dtoverlay=lirc-rpi,gpio_out_pin=16,gpio_in_pin=22,debug

in modules.xbian i have commented out the module
Terminal
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.

# snd_bcm2835

same goes for /etc/modules/
Terminal
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# snd_soc_bcm2708
# bcm2708_dmaengine
# snd_soc_hifiberry_digi


Will try the GPIO line to see if it helps

the bmc2835 is still there somehow. still cant select the hifiberry in kodi

Terminal
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 8/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
card 1: sndrpihifiberry [snd_rpi_hifiberry_digi], device 0: HifiBerry Digi HiFi wm8804-spdif-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0



RE: Hifiberry - Ewoud Bakker - 6th Mar, 2016 07:09 PM

ok got it working!

here is what i did:

cleared out etc/modules/

Terminal
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# snd_soc_bcm2708
# bcm2708_dmaengine
# snd_soc_hifiberry_digi

Added dtoverlay=hifiberry to boot/config.txt without the GPIO line

Terminal
#initramfs initramfs.gz 0x1000000
gpu_mem_1024=256
gpu_mem_512=144
gpu_mem_256=100
initial_turbo=3
hdmi_ignore_cec_init=1
disable_overscan=1
disable_splash=1

dtoverlay=hifiberry-digi
dtdebug=1

# GPIO pins have to be remapped for LIRC for working together with Hifiberry
# dtoverlay=lirc-rpi,gpio_out_pin=16,gpio_in_pin=22,debug

As my hifiberry was showing in aplay -l this worked problem was the rpi was still selecting snd_bmc2835 and was unable to select the hifiberry.
Changes in asound.conf didn't help.

therefor i blacklisted snd_bmc2835 in /etc/modprobe.d/xbian.conf

Terminal
alias char-major-89 i2c-dev

blacklist evbug
blacklist snd_bcm2835

This made it dissapear from the aplay and made thing work.v

Terminal

**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_digi], device 0: HifiBerry Digi HiFi wm8804-spdif-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0

Thnx for your help. I have a fully clean working install now Smile


RE: Hifiberry - Nachteule - 7th Mar, 2016 12:53 AM

Great, thanks for reporting back.

Does my resent patch to kodi sources solves your DTS passthrough issue?


RE: Hifiberry - picov - 9th Mar, 2016 07:35 AM

(6th Mar, 2016 12:17 AM)Nachteule Wrote:  ...
And I did not commented out in /etc/modules.xbian snd_bcm2835 (but makes no difference for Hifiberry if it is uncommented or not)

Just a note:
the latest stable update also break my HiFiBerry DIGI as passthrough device.

To solve I've followed this thread and:

1) I've enabled staging (uncommented the second line) into:
/etc/apt/sources.list.d/xbian.list

2) made an apt-get update and apt-get upgrade

3) added the dtoverlay=hifiberry-digi into /boot/config.txt

4) blacklisted snd_bcm2835 into /etc/modprobe.d/xbian.conf

But, at least on my PI2 with latest staging full updated, I ALSO NEED TO COMMENT
#snd_bcm2835 into /etc/modules.xbian
to make HiFiBerry Digi works otherwise the bcm2835 is still present as card0.

So, respect to my original post (18th Oct, 2015), with latest staging release, it seems that there is ALSO the needs to blacklist snd_bcm2835 to make HiFiBerry Digi works with XBian.


RE: Hifiberry - Nachteule - 9th Mar, 2016 08:02 AM

@picov
So you confirmed that passthrough is working again with package xbian-package-xbmc from staging repo.

Fine, then I can move this version to stable Shy


RE: Hifiberry - picov - 10th Mar, 2016 03:18 AM

(9th Mar, 2016 08:02 AM)Nachteule Wrote:  @picov
So you confirmed that passthrough is working again with package xbian-package-xbmc from staging repo.
Fine, then I can move this version to stable Shy

I can't test DTS passthrough because my AV receiver don't decode it, but I can confirm that passthrough works with Dolby/AC3 and DTS to AC3 transcoding Smile


RE: Hifiberry - Ewoud Bakker - 13th Mar, 2016 05:49 PM

(7th Mar, 2016 12:53 AM)Nachteule Wrote:  Great, thanks for reporting back.

Does my resent patch to kodi sources solves your DTS passthrough issue?

yes it did, sound is on 5.1 atm. altough it seems to crash kodi at the end of playback and sometimes video starts without sound and you need to restart the video.


RE: Hifiberry - Ewoud Bakker - 18th Mar, 2016 07:44 AM

Encountered a new problem. Allot of my videos get bugged. When starting the video is running good. But after a while the sound get locked in a static white noise. And I have to stop the video and restart.
I read on hifiberry that this is caused by 24 bit sound? Does anyone know an solution?

Also kodi crashes allot.


RE: Hifiberry - Skywatch - 18th Mar, 2016 07:49 AM

I can't help out with that, but I do have a digi+ on order and can see if it is the same here when it arrives....

Are you using a pi 1,2 or 3?


RE: Hifiberry - Skywatch - 19th Mar, 2016 04:51 AM

OK, So I received a Pifi digi+ in the post today.

Connected to the decoder via toslink optical and followed the above advice.

On a pi 2 it's brilliant! - I have my 5.1 sound back and it's working well so far. No problems yet and no glitches.

I will test it more over the weekend and let you know if I find anything.


RE: Hifiberry - Ewoud Bakker - 19th Mar, 2016 08:01 PM

nachteule has suggested another sd card. So i'm backupping and trying that.

I run on a rpi2.
On kodi 15 it was working great. Now on 16 it has some problems. But thats the challenge when using this kind of gear.
Will report back when i switch sd cards.


RE: Hifiberry - Skywatch - 20th Mar, 2016 11:34 PM

Good luck!


RE: Hifiberry - Ewoud Bakker - 22nd Mar, 2016 02:59 AM

ok did a backup img and copied it to my former sd cart. The problems still presist.
Some nuance though. all videos from the kodi library dont have the white noise problem. only when i select a video from the HD that is connected to the pi it freaks out.

furthermore the kodi restarts are still happening. mostly at the end or start of a video playback.

I'm almost done with this, next step will be installing everything fresh on my pi3.
Got nothing to do during easter anyway.


RE: Hifiberry - Nachteule - 22nd Mar, 2016 03:33 AM

Hmmm, is your external HD powered by USB or does it has a separate power supply?