0

Digi+ with Raspberry Pi 2 and Raspbian

I'd like to use sound via HDMI and via toslink simultaneously. I followed the guide online, but it's not up to date. I've included relevant configs and debug output.

pi@pi ~ $ uname -a
Linux pi 3.18.6-v7i-aufs #1 SMP PREEMPT Tue Feb 10 22:35:34 CET 2015 armv7l GNU/Linux





pi@pi ~ $ lsmod
Module Size Used by
rpcsec_gss_krb5 19709 0
nfsd 239696 2
bnep 9456 2
rfcomm 31416 0
bluetooth 268729 10 bnep,rfcomm
rfkill 14438 2 bluetooth
snd_bcm2835 17604 1
snd_pcm 70613 1 snd_bcm2835
snd_seq 49800 0
snd_seq_device 4906 1 snd_seq
snd_timer 16630 2 snd_pcm,snd_seq
snd 47642 7 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
uio_pdrv_genirq 2865 0
uio 7319 1 uio_pdrv_genirq





pi@pi ~ $ sudo vcdbg log msg
001038.690: HDMI:Setting property pixel encoding to Default
001038.715: HDMI:Setting property pixel clock type to PAL
001038.738: HDMI:Setting property content type flag to No data
001038.761: HDMI:Setting property fuzzy format match to enabled
001044.664: gpioman: gpioman_get_pin_num: pin LEDS_RUNNING not defined
001044.688: gpioman: gpioman_get_pin_num: pin LEDS_NAND_ACTIVITY not defined
001044.710: gpioman: gpioman_get_pin_num: pin LEDS_USB_ACTIVITY not defined
001044.732: gpioman: gpioman_get_pin_num: pin LEDS_FATAL_ERROR not defined
001044.752: gpioman: gpioman_get_pin_num: pin LEDS_APP_OK not defined
001044.772: gpioman: gpioman_get_pin_num: pin LEDS_APP_FAILED not defined
001044.793: gpioman: gpioman_get_pin_num: pin LEDS_HDCP_AUTH not defined
001044.814: gpioman: gpioman_get_pin_num: pin LEDS_HDCP_UNAUTH not defined
001044.833: gpioman: gpioman_get_pin_num: pin LEDS_HDMI_ON not defined
001044.852: gpioman: gpioman_get_pin_num: pin LEDS_DVI_ON not defined
001044.873: gpioman: gpioman_get_pin_num: pin LEDS_HDMI_HPD_UP not defined
001044.895: gpioman: gpioman_get_pin_num: pin LEDS_REMOTE_CONTROL not defined
001044.917: gpioman: gpioman_get_pin_num: pin LEDS_ARM_CONTROLLED not defined
001064.973: hdmi: HDMI:>>>>>>>>>>>>>Rx sensed, reading EDID<<<<<<<<<<<<<
001077.305: hdmi: HDMI:EDID version 1.3, 1 extensions, screen size 115x65 cm
001077.375: hdmi: HDMI:EDID features - videodef 0x80 !standby !suspend !active off; colour encoding:RGB444|YCbCr422; sRGB is not default colourspace; preferred format is native; does not support GTF
001077.438: hdmi: HDMI:EDID found preferred CEA detail timing format: 1920x1080p @ 60 Hz (16)
001077.506: hdmi: HDMI:EDID found DMT detail timing format: 1360x768p @ 60 Hz (39)
001077.550: hdmi: HDMI:EDID found DMT format: code 4, 640x480p @ 60 Hz in established timing I/II
001077.589: hdmi: HDMI:EDID found DMT format: code 5, 640x480p @ 72 Hz in established timing I/II
001077.630: hdmi: HDMI:EDID found DMT format: code 6, 640x480p @ 75 Hz in established timing I/II
001077.671: hdmi: HDMI:EDID found DMT format: code 8, 800x600p @ 56 Hz in established timing I/II
001077.712: hdmi: HDMI:EDID found DMT format: code 9, 800x600p @ 60 Hz in established timing I/II
001077.751: hdmi: HDMI:EDID found DMT format: code 10, 800x600p @ 72 Hz in established timing I/II
001077.793: hdmi: HDMI:EDID found DMT format: code 11, 800x600p @ 75 Hz in established timing I/II
001077.836: hdmi: HDMI:EDID found DMT format: code 16, 1024x768p @ 60 Hz in established timing I/II
001077.878: hdmi: HDMI:EDID found DMT format: code 17, 1024x768p @ 70 Hz in established timing I/II
001077.918: hdmi: HDMI:EDID found DMT format: code 18, 1024x768p @ 75 Hz in established timing I/II
001077.963: hdmi: HDMI:EDID found DMT format: code 36, 1280x1024p @ 75 Hz in established timing I/II
001078.051: hdmi: HDMI:EDID standard timings block x 8: 0x3140 4540 6140 8180 A940 0101 0101 0101
001078.102: hdmi: HDMI:EDID found DMT format: code 4, 640x480p @ 60 Hz (4:3) in standard timing 0
001078.150: hdmi: HDMI:EDID found DMT format: code 9, 800x600p @ 60 Hz (4:3) in standard timing 1
001078.202: hdmi: HDMI:EDID found DMT format: code 16, 1024x768p @ 60 Hz (4:3) in standard timing 2
001078.255: hdmi: HDMI:EDID found DMT format: code 35, 1280x1024p @ 60 Hz (5:4) in standard timing 3
001078.312: hdmi: HDMI:EDID found DMT format: code 51, 1600x1200p @ 60 Hz (4:3) in standard timing 4
001091.376: hdmi: HDMI:EDID parsing v3 CEA extension 0
001091.418: hdmi: HDMI:EDID monitor support - underscan IT formats:yes, basic audio:yes, yuv444:yes, yuv422:yes, #native DTD:1
001091.465: hdmi: HDMI:EDID found CEA detail timing format: 1280x720p @ 60 Hz (4)
001091.511: hdmi: HDMI:EDID found CEA detail timing format: 1920x1080i @ 60 Hz (5)
001091.554: hdmi: HDMI:EDID found CEA detail timing format: 720x480p @ 60 Hz (2)
001091.591: hdmi: HDMI:EDID found CEA format: code 4, 1280x720p @ 60Hz (native)
001091.626: hdmi: HDMI:EDID found CEA format: code 5, 1920x1080i @ 60Hz
001091.662: hdmi: HDMI:EDID found CEA format: code 3, 720x480p @ 60Hz
001091.698: hdmi: HDMI:EDID found CEA format: code 2, 720x480p @ 60Hz
001091.735: hdmi: HDMI:EDID found CEA format: code 32, 1920x1080p @ 24Hz
001091.772: hdmi: HDMI:EDID found CEA format: code 34, 1920x1080p @ 30Hz
001091.807: hdmi: HDMI:EDID found CEA format: code 16, 1920x1080p @ 60Hz
001091.843: hdmi: HDMI:EDID found CEA format: code 6, 1440x480i @ 60Hz
001091.878: hdmi: HDMI:EDID found CEA format: code 15, 1440x480p @ 60Hz
001091.915: hdmi: HDMI:EDID found CEA format: code 14, 1440x480p @ 60Hz
001091.952: hdmi: HDMI:EDID found CEA format: code 10, 2880x480i @ 60Hz
001091.989: hdmi: HDMI:EDID found CEA format: code 36, 2880x480p @ 60Hz
001092.025: hdmi: HDMI:EDID found CEA format: code 35, 2880x480p @ 60Hz
001092.098: hdmi: HDMI:EDID found audio format 2 channels PCM, sample rate: 32|44|48|88|96|176|192 kHz, sample size: 16|20|24 bits
001092.170: hdmi: HDMI:EDID found audio format 8 channels PCM, sample rate: 32|44|48|88|96|176|192 kHz, sample size: 16|20|24 bits
001092.224: hdmi: HDMI:EDID found audio format 8 channels AC3, sample rate: 32|44|48 kHz, bitrate: 640 kbps
001092.274: hdmi: HDMI:EDID found audio format 8 channels DTS, sample rate: 44|48 kHz, bitrate: 1536 kbps
001092.316: hdmi: HDMI:EDID found audio format 6 channels One Bit Audio, sample rate: 44 kHz, codec define: 0
001092.364: hdmi: HDMI:EDID found audio format 8 channels Dobly Digital+, sample rate: 44|48 kHz, codec define: 0
001092.427: hdmi: HDMI:EDID found audio format 8 channels DTS-HD, sample rate: 44|48|88|96|176|192 kHz, codec define: 1
001092.479: hdmi: HDMI:EDID found audio format 8 channels MLP, sample rate: 48|96|192 kHz, codec define: 0
001092.500: hdmi: HDMI:EDID found HDMI VSDB length 12
001092.528: hdmi: HDMI:EDID HDMI VSDB has physical address 2.5.0.0
001092.553: hdmi: HDMI:EDID HDMI VSDB supports AI:yes, dual link DVI:no
001092.587: hdmi: HDMI:EDID HDMI VSDB deep colour support - 48-bit:no 36-bit:yes 30-bit:yes DC_yuv444:yes
001092.608: hdmi: HDMI:EDID HDMI VSDB max TMDS clock 225 MHz
001092.628: hdmi: HDMI:EDID HDMI VSDB video latency is unknown
001092.648: hdmi: HDMI:EDID HDMI VSDB audio latency is unknown
001092.669: hdmi: HDMI:EDID HDMI VSDB does not support content type
001092.731: hdmi: HDMI:EDID filtering formats with pixel clock > 162 MHz or h. blanking > 1023
001093.020: hdmi: HDMI:EDID preferred mode remained as CEA (16) 1920x1080p @ 60 Hz with pixel clock 148 MHz
001093.057: hdmi: HDMI: hotplug attached with HDMI support
001093.131: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
001095.822: hdmi: HDMI: power_on to CEA mode 1080p60
001098.096: hdmi: HDMI: Action callback added to queue to happen at frame 2
001098.118: hdmi: HDMI: Action stop_3d_mode added to queue to happen at frame 2
001098.141: hdmi: HDMI: Action unmute added to queue to happen at frame 3
001098.184: hdmi: HDMI: Action cec_init added to queue to happen at frame 3
001149.152: *** Restart logging

001151.717: Read command line from file 'cmdline.txt'
smsc95xx.turbo_mode=N elevator=deadline quiet bootmenutimeout=20 datadev=mmcblk0p2 sound=hdmi

001153.262: Loading 'kernel_rpi2_aufs.img' from SD card
001397.132: Loading 'berryboot.img' from SD card
003801.338: Kernel trailer DTOK property says yes
003801.559: Loading 'bcm2709-rpi-2-b.dtb' from SD card
003804.276: dtparam: arm_freq=900000000
003857.902: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not defined
006303.640: vchiq_core: vchiq_init_state: slot_zero = 0xf5c00000, is_master = 1
006320.507: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
006323.042: cma: cma_hwm is zero - disabling cma service
006324.542: gpioman: gpioman_get_pin_num: pin LEDS_RUNNING not defined
006324.569: gpioman: gpioman_get_pin_num: pin LEDS_NAND_ACTIVITY not defined
006324.592: gpioman: gpioman_get_pin_num: pin LEDS_USB_ACTIVITY not defined
006324.614: gpioman: gpioman_get_pin_num: pin LEDS_FATAL_ERROR not defined
006324.633: gpioman: gpioman_get_pin_num: pin LEDS_APP_OK not defined
006324.655: gpioman: gpioman_get_pin_num: pin LEDS_APP_FAILED not defined
006324.677: gpioman: gpioman_get_pin_num: pin LEDS_HDCP_AUTH not defined
006324.698: gpioman: gpioman_get_pin_num: pin LEDS_HDCP_UNAUTH not defined
006324.717: gpioman: gpioman_get_pin_num: pin LEDS_HDMI_ON not defined
006324.737: gpioman: gpioman_get_pin_num: pin LEDS_DVI_ON not defined
006324.757: gpioman: gpioman_get_pin_num: pin LEDS_HDMI_HPD_UP not defined
006324.780: gpioman: gpioman_get_pin_num: pin LEDS_REMOTE_CONTROL not defined
006324.803: gpioman: gpioman_get_pin_num: pin LEDS_ARM_CONTROLLED not defined
006325.147: TV service:host side not connected, dropping notification 0x00000002, 0x00000001, 0x00000010
049188.115: hdmi: HDMI:Setting property pixel clock type to PAL
049188.241: hdmi: HDMI: power_on to CEA mode 1080p60
049188.324: hdmi: HDMI: Action detach added to queue to happen at frame 2814
049188.347: hdmi: HDMI: Action change_mode added to queue to happen at frame 2814
049188.368: hdmi: HDMI: Action attach added to queue to happen at frame 2814
049188.393: hdmi: HDMI: Action start_mode added to queue to happen at frame 2814
049188.417: hdmi: HDMI: Action callback added to queue to happen at frame 2816
049188.442: hdmi: HDMI: Action stop_3d_mode added to queue to happen at frame 2816
049188.467: hdmi: HDMI: Action unmute added to queue to happen at frame 2817
049188.511: hdmi: HDMI: Action cec_init added to queue to happen at frame 2817





# /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






pi@pi ~ $ cat /etc/modprobe.d/*
# Uncomment these entries in order to blacklist unwanted modem drivers
# blacklist snd-atiixp-modem
# blacklist snd-intel8x0m
# blacklist snd-via82xx-modem
# Comment this entry in order to load snd-pcsp driver
blacklist snd-pcsp
# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7
# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet snd-ioctl32 ; /sbin/modprobe --quiet snd-seq ; : ; }
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modprobe --quiet snd-seq-midi ; : ; }
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && { /sbin/modprobe --quiet snd-emu10k1-synth ; : ; }
# Keep snd-pcsp from beeing loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=-2
# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
# This file blacklists most old-style PCI framebuffer drivers.

blacklist arkfb
blacklist aty128fb
blacklist atyfb
blacklist radeonfb
blacklist cirrusfb
blacklist cyber2000fb
blacklist gx1fb
blacklist gxfb
blacklist kyrofb
blacklist matroxfb_base
blacklist mb862xxfb
blacklist neofb
blacklist nvidiafb
blacklist pm2fb
blacklist pm3fb
blacklist s3fb
blacklist savagefb
blacklist sisfb
blacklist tdfxfb
blacklist tridentfb
blacklist viafb
blacklist vt8623fb
# Don't load ipv6 by default
alias net-pf-10 off
#alias ipv6 off





pi@pi ~ $ cat /boot/config.txt
dtoverlay=hifiberry-digi
dtdebug=1



pi@pi ~ $ aplay -l
**** 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

3 comments

Please sign in to leave a comment.