SPARKY FORUM

Allo Piano Dac 1.1 & Raspberry Pi 3 Model B, no sound

Allo Piano Dac 1.1 & Raspberry Pi 3 Model B, no sound
« on: January 23, 2017, 02:25:34 AM »
Hi Allo team,
on weekend I received my Allo Piano Dac 1.1 along with the Kali board. First thanks for the really quick delivery!

But I couldn't make the Dac work. I've mounted it to my Pi board without the Kali board first, using the Allo power adapter.

As Pi images I've tried Libreelec 7.95.1 Beta and Volumio 2.041. Everything is connected and so far setup fine, that I can select the Pianao DAC within the Libreelec interface as well as in the Volumio interface. But no sound is coming through, neither through the RCA connectors nor through the headphone jack.

Before describing my setup further, one question: What is the on board Pi Compatibility switch for? Nowhere found a description of its purpose and when to switch to which position.

Here is my setup for Libreelec
in /flash/config.txt appened:
Code: [Select]
dtoverlay=allo-piano-dac-pcm512x-audio
dtdebug=1

The output of vcdbg log msg is:
Code: [Select]
dtdebug: Opened overlay file 'overlays/allo-piano-dac-pcm512x-audio.dtbo'
Loaded overlay 'allo-piano-dac-pcm512x-audio'
dtdebug: Found fragment 0 (offset 36)
dtdebug: merge_fragment(/soc/i2s@7e203000,/fragment@0/__overlay__)
dtdebug:   +prop(status)
dtdebug: merge_fragment() end
dtdebug: Found fragment 1 (offset 112)
dtdebug: merge_fragment(/soc/i2c@7e804000,/fragment@1/__overlay__)
dtdebug:   +prop(#address-cells)
dtdebug:   +prop(#size-cells)
dtdebug:   +prop(status)
dtdebug: merge_fragment(/soc/i2c@7e804000/pcm5142@4c,/fragment@1/__overlay__/pcm5142@4c)
dtdebug:   +prop(#sound-dai-cells)
dtdebug:   +prop(compatible)
dtdebug:   +prop(reg)
dtdebug:   +prop(status)
dtdebug: merge_fragment() end
dtdebug: merge_fragment() end
dtdebug: Found fragment 2 (offset 316)
dtdebug: merge_fragment(/soc/sound,/fragment@2/__overlay__)
dtdebug:   +prop(compatible)
dtdebug:   +prop(i2s-controller)
dtdebug:   +prop(status)
dtdebug: merge_fragment() end

The output of dmesg is:
Code: [Select]
snd-allo-piano-dac soc:sound: ASoC: CPU DAI (null) not registered
snd-allo-piano-dac soc:sound: snd_soc_register_card() failed: -517
snd-allo-piano-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered
snd-allo-piano-dac soc:sound: snd_soc_register_card() failed: -517
snd-allo-piano-dac soc:sound: pcm512x-hifi <-> 3f203000.i2s mapping ok

The output of lsmod is:
Code: [Select]
Module                  Size  Used by
hci_uart               15605  1
btbcm                   5315  1 hci_uart
bluetooth             291488  3 hci_uart,btbcm
brcmfmac              181893  0
snd_soc_pcm512x_i2c     2051  1
snd_soc_pcm512x        16692  1 snd_soc_pcm512x_i2c
snd_soc_bcm2835_i2s     5123  2
snd_soc_allo_piano_dac     2432  0
brcmutil                4893  1 brcmfmac
snd_soc_core          104527  3 snd_soc_pcm512x,snd_soc_allo_piano_dac,snd_soc_bcm2835_i2s
cfg80211              246082  1 brcmfmac
snd_pcm_dmaengine       2943  1 snd_soc_core
snd_pcm                68095  4 snd_soc_pcm512x,snd_pcm_dmaengine,snd_soc_allo_piano_dac,snd_soc_core
snd_timer              17690  1 snd_pcm
snd                    41825  3 snd_timer,snd_soc_core,snd_pcm
bcm2835_gpiomem         2716  0
i2c_bcm2835             5101  0

The output of amixer -c 0 info is:
Code: [Select]
Card hw:0 'PianoDAC'/'PianoDAC'
  Mixer name    : ''
  Components    : ''
  Controls      : 20
  Simple ctrls  : 19

The output of aplay -l is:
Code: [Select]
**** List of PLAYBACK Hardware Devices ****
card 0: PianoDAC [PianoDAC], device 0: Piano DAC HiFi pcm512x-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

The output of aplay -L is:
Code: [Select]
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=PianoDAC
    PianoDAC,
    Default Audio Device
sysdefault:CARD=PianoDAC
    PianoDAC,
    Default Audio Device

Checking with amixer I saw the the volume for Digital was set to 100%. All other mixer options do not seem to be relevant, right?
Is there anything else that I need to enable? Reading about the device tree stuff it looks like explicitly enabling i2s isn't needed.

Any help is very welcome!
« Last Edit: January 23, 2017, 03:33:08 AM by thomas »

Re: Allo Piano Dac 1.1 & Raspberry Pi 3 Model B, no sound
« Reply #1 on: January 23, 2017, 03:14:01 AM »
Dear Team,

    Have you enabled I2S DAC option as shown in the below link.If not enabled please enable and check the status.

http://61.12.17.162:9098/sparky/volumio.JPG

With Regards
Sparky Admin


Re: Allo Piano Dac 1.1 & Raspberry Pi 3 Model B, no sound
« Reply #2 on: January 23, 2017, 03:34:28 AM »
Yes I've enabled that option in Volumio.
Please note that the log outputs from above are all using Libreelec.

Is there any way to ensure that there aren't hardware issues? Either from the Pi itself or the DAC?

Re: Allo Piano Dac 1.1 & Raspberry Pi 3 Model B, no sound
« Reply #3 on: January 23, 2017, 05:10:12 AM »
Dear Team,

   After enabling I2S dac you need to select DAC model as Allo piano then you need to save.

With Regards
Sparky Admin

Re: Allo Piano Dac 1.1 & Raspberry Pi 3 Model B, no sound
« Reply #4 on: January 23, 2017, 05:23:54 AM »
I did select the Allo Piano DAC after having enabled I2S. But still not getting any sound out of it.

Anything that I can measure or check further either on the Piano DAC or the Raspberry? And whats the purpose of the onboard compatibility switch?
« Last Edit: January 23, 2017, 01:38:04 PM by thomas »

Re: Allo Piano Dac 1.1 & Raspberry Pi 3 Model B, no sound
« Reply #5 on: January 23, 2017, 09:21:29 PM »
Dear Team,

    Can you confirm which DAC you are using is it piano 2.0 or 2.1 .Can you please attach one image of your setup.

With Regards
Sparky Admin

Re: Allo Piano Dac 1.1 & Raspberry Pi 3 Model B, no sound
« Reply #6 on: January 24, 2017, 01:53:18 AM »
In the Allo shop I ordered this bundle along with the power adapter as add-on: https://allo.com/sparky-eu/bundle-kali-piano.html

I cannot provide any image currently, but the setup is straight forward:
  • Having a Raspberry Pi 3 Model B
  • Having the DAC and power adapter from this order: https://allo.com/sparky-eu/bundle-kali-piano.html
  • Screwed the spacers to the RPI
  • Mounted the Piano DAC onto the RPI socket (all pins fit in well, no mounting issue)
  • Plugged in a USB adapter for wireless keyboard and mouse
  • Attached the to USB adapter to the power adapter connector
  • Connected the Piano DAC RCA connectors to my amplifier using a pure RCA to RCA male cable
  • Connected the power cable to the RPI
In that setup I am not using the Kali board at all.

As it may help, I also fetched the dmesg output from the Volumio startup (some lines removed due to length):

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.9-v7+ (dc4@dc4-XPS13-9333)
[    0.000000] Machine model: Raspberry Pi 3 Model B Rev 1.2
[    0.000000] Kernel command line: 8250.nr_uarts=1 dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2709.boardrev=0xa02082 bcm2709.serial=0x9269d4a7 smsc95xx.macaddr=B8:27:EB:69:D4:A7 bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 vc_mem.mem_base=0x3ea00000 vc_mem.mem_size=0x3f000000  force_turbo=1 dwc_otg.lpm_enable=0  dwc_otg.fiq_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0x3 console=ttyS0,115200 kgdboc=ttyS0,115200 console=tty1 imgpart=/dev/mmcblk0p2 imgfile=/volumio_current.sqsh elevator=noop rootwait smsc95xx.turbo_mode=N
[    0.043292] Serial: AMBA PL011 UART driver
[    0.043372] uart-pl011 3f201000.uart: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[    0.097323] raspberrypi-firmware soc:firmware: Attached to firmware from 2016-05-06 13:54
[    0.563926] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.564494] console [ttyS0] disabled
[    0.564564] 3f215040.uart: ttyS0 at MMIO 0x3f215040 (irq = 59, base_baud = 50000000) is a 16550
[    1.316724] console [ttyS0] enabled
[    1.320559] KGDB: Registered I/O driver kgdboc
[    2.129384] bcm2835-rng 3f104000.rng: hwrng registered
[    2.675755] dwc_otg: Microframe scheduler enabled
[    2.675786] WARN::hcd_init_fiq:413: FIQ on core 1 at 0x804459c4
[    2.683907] WARN::hcd_init_fiq:414: FIQ ASM at 0x80445d34 length 36
[    2.692379] WARN::hcd_init_fiq:439: MPHI regs_base at 0xbf2fe000
[    2.725159] Init: Port Power? op_state=1
[    2.731269] Init: Power Port (0)
[    2.990144] Indeed it is in host mode hprt0 = 00021501
[    2.993190] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.995261] mmc0: new high speed SDHC card at address d1f1
[    3.025258] vc-sm: Videocore shared memory driver
[    3.025263] [vc_sm_connected_init]: start
[    3.025420] vc_vchi_sm_init: failed to open VCHI service (-1)
[    3.025420] [vc_sm_connected_init]: failed to initialize shared memory service
[    3.025422] [vc_sm_connected_init]: end - returning -1
[    3.044912] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[    3.353834] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    3.362531] Indeed it is in host mode hprt0 = 00001101
[    3.563946] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    3.572803] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.582546] hub 1-1:1.0: USB hub found
[    3.588444] hub 1-1:1.0: 5 ports detected
[    3.873810] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.993959] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    4.003062] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.015066] smsc95xx v1.0.4
[    4.075949] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:69:d4:a7
[    4.183820] usb 1-1.3: new full-speed USB device number 4 using dwc_otg
[    4.314223] usb 1-1.3: New USB device found, idVendor=05af, idProduct=0906
[    4.323429] usb 1-1.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[    4.333057] usb 1-1.3: Product: 2.4G Dongle
[    4.347235] input: 2.4G Dongle as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:05AF:0906.0001/input/input0
[    4.414308] hid-generic 0003:05AF:0906.0001: input,hidraw0: USB HID v1.11 Keyboard [2.4G Dongle] on usb-3f980000.usb-1.3/input0
[    4.433719] input: 2.4G Dongle as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:05AF:0906.0002/input/input1
[    4.447894] hid-generic 0003:05AF:0906.0002: input,hidraw1: USB HID v1.11 Mouse [2.4G Dongle] on usb-3f980000.usb-1.3/input1
[    4.468931] input: 2.4G Dongle as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.2/0003:05AF:0906.0003/input/input2
[    4.533935] hid-generic 0003:05AF:0906.0003: input,hidraw2: USB HID v1.11 Device [2.4G Dongle] on usb-3f980000.usb-1.3/input2
[    5.283486] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[    5.412400] systemd[1]: Set hostname to <volumio>.
[    5.691494] systemd[1]: Cannot add dependency job for unit console-kit-daemon.service, ignoring: Unit console-kit-daemon.service failed to load: No such file or directory.
[    5.710079] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[    6.411538] snd_bcm2835: unknown parameter 'index' ignored
[    6.444395] i2c /dev entries driver
[    6.455762] bcm2708_i2c 3f804000.i2c: BSC1 Controller at 0x3f804000 (irq 83) (baudrate 100000)
[    6.556537] systemd-udevd[198]: starting version 215
[    6.723234] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    6.768488] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    6.889960] snd-allo-piano-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered
[    6.900213] snd-allo-piano-dac soc:sound: snd_soc_register_card() failed: -517
[    7.080944] snd-allo-piano-dac soc:sound: pcm512x-hifi <-> 3f203000.i2s mapping ok
[    7.298496] brcmfmac: brcmf_sdio_drivestrengthinit: No SDIO Drive strength init done for chip 43430 rev 1 pmurev 24
[    7.315939] usbcore: registered new interface driver brcmfmac
[    7.450041] random: nonblocking pool is initialized
[    7.494876] cfg80211: World regulatory domain updated:
[    7.502288] cfg80211:  DFS Master region: unset
[    7.506771] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    7.520992] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    7.520997] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    7.521001] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[    7.521009] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    7.521013] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[    7.521017] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[    7.521020] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    7.521023] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[    7.542782] cfg80211: Regulatory domain changed to country: DE
[    7.542789] cfg80211:  DFS Master region: ETSI
[    7.542789] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    7.542794] cfg80211:   (2400000 KHz - 2483500 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    7.542799] cfg80211:   (5150000 KHz - 5250000 KHz @ 80000 KHz, 200000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    7.542803] cfg80211:   (5250000 KHz - 5350000 KHz @ 80000 KHz, 200000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[    7.542806] cfg80211:   (5470000 KHz - 5725000 KHz @ 160000 KHz), (N/A, 2698 mBm), (0 s)
[    7.542810] cfg80211:   (57000000 KHz - 66000000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[    7.677709] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: May 27 2016 00:13:38 version 7.45.41.26 (r640327) FWID 01-df77e4a7
[    8.614984] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[    8.633093] brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
[    8.642209] brcmfmac: brcmf_add_if: ignore IF event
[   24.150987] pcm512x 1-004c: No SCLK, using BCLK: -2
« Last Edit: January 24, 2017, 02:01:44 AM by thomas »

Re: Allo Piano Dac 1.1 & Raspberry Pi 3 Model B, no sound
« Reply #7 on: January 24, 2017, 02:01:47 AM »
Dear Team,

    In Kodi settings, select the audio device as Piano DAC and check the status.

Path: System settings=>audio=>audio output DAC

If not working, try to play some audio file using aplay     aplay -c 0 <anysong>.wav

With Regards
Sparky Admin

Re: Allo Piano Dac 1.1 & Raspberry Pi 3 Model B, no sound
« Reply #8 on: January 24, 2017, 04:57:10 AM »
That Kodi settings is what I made already, without hearing any sound.
Will try with aplay when I am at home. Though I am having little hope that this works.

Some questions:
  • If aplay doesn't work, what should be the next to try? (Just to save some time ahead)
  • What is the onboard RPI Compatibility switch for and when to use it? (No info in manual or elsewhere)
  • Are these lines in dmesg output in any way important:
    [    6.889960] snd-allo-piano-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered
    [    6.900213] snd-allo-piano-dac soc:sound: snd_soc_register_card() failed: -517
« Last Edit: January 24, 2017, 05:11:34 AM by thomas »

Re: Allo Piano Dac 1.1 & Raspberry Pi 3 Model B, no sound
« Reply #9 on: January 24, 2017, 02:38:26 PM »
Downloaded a wav file from here: http://www.music.helsinki.fi/tmt/opetus/uusmedia/esim/index-e.html
With aplay -L ensured that PianoDAC is the default player.
Invoked aplay --device=default a2002011001-e02.wav but nothing to hear.
Also unplugged the wireless USB mouse/keyboard adapter for that test.

Suggestions? Any answers for the previous questions?

Re: Allo Piano Dac 1.1 & Raspberry Pi 3 Model B, no sound
« Reply #10 on: January 24, 2017, 11:30:25 PM »
Dear Team,

      Can you confirm are you able to hear the sound from 3.2 headset jacket which is mounted on Raspberry Pi.If sound is not coming from headset jacket itself you need to check pi board or the image.

We have simulated same in our lab wit volumio image VERSION: 2.041 and it is working fine without any issue.

With Regards
Sparky Admin

Re: Allo Piano Dac 1.1 & Raspberry Pi 3 Model B, no sound
« Reply #11 on: January 25, 2017, 01:12:30 AM »
I can hear sound from the headphone jack of the Pi independent from whether the Piano DAC is mounted or not. Using Kodi I am able to select HDMI as output and hearing sound as well.

If this is a Pi issue, what can I do to diagnose this?

And if this is a Piano issue, what can I do to diagnose this?

Re: Allo Piano Dac 1.1 & Raspberry Pi 3 Model B, no sound
« Reply #12 on: January 25, 2017, 02:24:25 AM »
Dear Team,

    You are able hear the voice from pi head phone jack?

If you are able to hear then connect piano DAC directly to Raspberry pi without connecting KALI board and check.

With Regards
Sparky Admin



Re: Allo Piano Dac 1.1 & Raspberry Pi 3 Model B, no sound
« Reply #13 on: January 25, 2017, 03:01:57 AM »
As described above that is exactly what I did. ALL my testing above is WITHOUT the Kali board.
I can hear sound from the headphone jack of the Pi independent from whether the Piano DAC is mounted or not.

Re: Allo Piano Dac 1.1 & Raspberry Pi 3 Model B, no sound
« Reply #14 on: January 25, 2017, 03:57:28 AM »
Dear Team,

  Piano DAC is mounted.Can you confirm  are you getting sound from headset jack which present in the DAC.If sound is not coming please check which DSP program option you selected and check with each DSP program option which is showed in the drop down

Please find the link for your reference

http://61.12.17.162:9098/sparky/dsp program.JPG

With Regards
Sparky Admin