Raspbian, Kali, Piano 2.1, 384k/32bit, no sound

Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.
I have a RaspberryPi 2 with Raspbian/Stretch and I want to use the Kali + Piano 2.1 with 384k/32bit sound. I patched the kernel to add 384k support and forced mpd to upsample to 384k. Sadly, the audio plays, but I do not get any sound.

Relevant part of my "mpd.conf" as follows:
Code:
resampler {
        plugin          "soxr"
        quality         "very high"
        threads         "0"
}

decoder {
        plugin          "ffmpeg"
        enabled         "yes"
        analyzeduration "1000000000"
        probesize       "1000000000"
}

audio_output {
        type            "alsa"
        name            "alsa"
        device          "hw:0,0"
        format          "384000:32:2"
        # The following works:
        # format          "192000:32:2"
        dop             "no"
}

Output of "alsacap":
Code:
# ./alsacap
*** Scanning for playback devices ***
Card 0, ID `PianoDACPlus', name `PianoDACPlus'
  Device 0, ID `PianoDACPlus multicodec-0', name `', 1 subdevices (1 available)
    2 channels, sampling rate 8000..384000 Hz
    Sample formats: S16_LE, S24_LE, S32_LE
      Subdevice 0, name `subdevice #0'

Alsa hw params when playing audio using mpd:
Code:
# cat /proc/asound/card*/pcm0p/sub0/hw_params
access: RW_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 384000 (384000/1)
period_size: 16384
buffer_size: 65536

I want to keep using my own custom Raspbian/Stretch because I run Brutefir (currently turned off), Kodi, Moonlight and Retroarch on it as well (not all running at the same time).

Any idea what I am doing wrong?
 
Last edited:
Hi,

Piano 2.1 driver config

ls /boot/overlays/allo*
/boot/overlays/allo-boss-dac-pcm512x-audio.dtbo
/boot/overlays/allo-digione.dtbo
/boot/overlays/allo-piano-dac-pcm512x-audio.dtbo
/boot/overlays/allo-piano-dac-plus-pcm512x-audio.dtbo

/boot/config.txt
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=off
dtoverlay=allo-piano-dac-plus-pcm512x-audio

-Tim
 
Hi,

Could just be a minor config issue. Post output from the cmds below

cat /boot/config.txt
ls -l /boot/overlays/allo*

-Tim

overlays (tried different versions of the overlays):
Code:
-rwxr-xr-x 1 root root 1473 Oct  3 14:55 /boot/overlays/allo-boss-dac-pcm512x-audio.dtbo
-rwxr-xr-x 1 root root 1208 Oct  3 14:55 /boot/overlays/allo-digione.dtbo
-rwxr-xr-x 1 root root 1011 Oct  3 14:55 /boot/overlays/allo-piano-dac-pcm512x-audio.dtbo
-rwxr-xr-x 1 root root 1585 Oct  3 14:55 /boot/overlays/allo-piano-dac-plus-pcm512x-audio.dtbo
config.txt (removing glb_mclk,pwm_mode,dithering settings make no difference):
Code:
gpu_mem=256

boot_delay=1

# KEEP AT 0
force_turbo=0

temp_limit=75

over_voltage=4
max_usb_current=0

arm_freq=1000

core_freq=500
sdram_freq=500

initial_turbo=30

arm_freq_min=400
core_freq_min=200
sdram_freq_min=200

disable_splash=1

disable_overscan=1

hdmi_ignore_cec_init=1

# Removed decode params

dtoverlay=allo-piano-dac-plus-pcm512x-audio,glb_mclk

disable_audio_dither=1
audio_pwm_mode=2

dtparam=i2c_arm=on
dtparam=audio=off
dtparam=i2s=on
Alsa mixer (I use dual-mono, but tried other settings as well):
Code:
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 207
  Mono:
  Front Left: Playback 207 [100%] [0.00dB] [on]
  Front Right: Playback 207 [100%] [0.00dB] [on]
Simple mixer control 'DSP Program',0
  Capabilities: enum
  Items: 'FIR interpolation with de-emphasis' 'Low latency IIR with de-emphasis' 'High attenuation with de-emphasis' 'Fixed process flow' 'Ringing-less low latency FIR'
  Item0: 'FIR interpolation with de-emphasis'
Simple mixer control 'Analogue',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 1
  Mono:
  Front Left: Playback 1 [100%] [0.00dB]
  Front Right: Playback 1 [100%] [0.00dB]
Simple mixer control 'Analogue Playback Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 1
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Auto Mute',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'Auto Mute Mono',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Auto Mute Time Left',0
  Capabilities: enum
  Items: '21ms' '106ms' '213ms' '533ms' '1.07s' '2.13s' '5.33s' '10.66s'
  Item0: '21ms'
Simple mixer control 'Auto Mute Time Right',0
  Capabilities: enum
  Items: '21ms' '106ms' '213ms' '533ms' '1.07s' '2.13s' '5.33s' '10.66s'
  Item0: '21ms'
Simple mixer control 'Clock Missing Period',0
  Capabilities: enum
  Items: '1s' '2s' '3s' '4s' '5s' '6s' '7s' '8s'
  Item0: '1s'
Simple mixer control 'Deemphasis',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Digital',0
  Capabilities: pvolume pvolume-joined pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 207
  Mono:
  Front Left: Playback 207 [100%] [0.00dB] [on]
  Front Right: Playback 207 [100%] [0.00dB] [off]
Simple mixer control 'Dual Mode',0
  Capabilities: enum
  Items: 'None' 'Dual-Mono' 'Dual-Stereo'
  Item0: 'Dual-Mono'
Simple mixer control 'Lowpass',0
  Capabilities: enum
  Items: '60' '70' '80' '90' '100' '110' '120' '130' '140' '150' '160' '170' '180' '190' '200'
  Item0: '60'
Simple mixer control 'Max Overclock DAC',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 40
  Mono: 0 [0%]
Simple mixer control 'Max Overclock DSP',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 40
  Mono: 0 [0%]
Simple mixer control 'Max Overclock PLL',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 20
  Mono: 0 [0%]
Simple mixer control 'Subwoofer',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 207
  Mono:
  Front Left: Playback 207 [100%] [0.00dB] [off]
  Front Right: Playback 207 [100%] [0.00dB] [on]
Simple mixer control 'Subwoofer mode',0
  Capabilities: enum
  Items: 'None' '2.0' '2.1' '2.2'
  Item0: 'None'
Simple mixer control 'Volume Ramp Down Emergency Rate',0
  Capabilities: enum
  Items: '1 sample/update' '2 samples/update' '4 samples/update' 'Immediate'
  Item0: '1 sample/update'
Simple mixer control 'Volume Ramp Down Emergency Step',0
  Capabilities: enum
  Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'
  Item0: '4dB/step'
Simple mixer control 'Volume Ramp Down Rate',0
  Capabilities: enum
  Items: '1 sample/update' '2 samples/update' '4 samples/update' 'Immediate'
  Item0: '1 sample/update'
Simple mixer control 'Volume Ramp Down Step',0
  Capabilities: enum
  Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'
  Item0: '1dB/step'
Simple mixer control 'Volume Ramp Up Rate',0
  Capabilities: enum
  Items: '1 sample/update' '2 samples/update' '4 samples/update' 'Immediate'
  Item0: '1 sample/update'
Simple mixer control 'Volume Ramp Up Step',0
  Capabilities: enum
  Items: '4dB/step' '2dB/step' '1dB/step' '0.5dB/step'
  Item0: '1dB/step'
 
Last edited:
Hi @komerdoor,

Config looks ok, hw_params looks ok in your earlier post.

Very odd that no sound when config looks good. I have same config: Stretch + Kali + Piano 2.1 (Dual-Mono mode, glb_mclk) + MPD + SoX 32/384.

Here is moOde MPD config if that may provide a troubleshooting vector.

Output Stream in the screen shot is hw_params.

Code:
pi@rp3:~ $ cat /etc/mpd.conf
#########################################
# This file is automatically generated by
# the player MPD configuration page.     
#########################################

music_directory "/var/lib/mpd/music"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/database"
log_file "/var/log/mpd/log"
pid_file "/var/run/mpd/pid"
state_file "/var/lib/mpd/state"
sticker_file "/var/lib/mpd/sticker.sql"
user "mpd"
group "audio"
bind_to_address "any"
port "6600"
log_level "default"
restore_paused "yes"
auto_update "no"
follow_outside_symlinks "yes"
follow_inside_symlinks "yes"
zeroconf_enabled "no"
zeroconf_name "Moode MPD"
audio_output_format "384000:32:2"
gapless_mp3_playback "yes"
replaygain "off"
volume_normalization "no"
audio_buffer_size "4096"
buffer_before_play "10%"
max_output_buffer_size "81920"
id3v1_encoding "UTF-8"
filesystem_charset "UTF-8"
max_connections "20"

decoder {
plugin "ffmpeg"
enabled "yes"
}

input {
plugin "curl"
}

resampler {
plugin "soxr"
quality "very high"
threads "1"
}

audio_output {
type "alsa"
name "ALSA default"
device "hw:0,0"
mixer_control "Master"
mixer_device "hw:0"
mixer_index "0"
dsd_usb "no"
}

audio_output {
type "alsa"
name "ALSA crossfeed"
device "crossfeed"
mixer_control "Master"
mixer_device "hw:0"
mixer_index "0"
dsd_usb "no"
}

audio_output {
type "alsa"
name "ALSA parametric eq"
device "eqfa4p"
mixer_control "Master"
mixer_device "hw:0"
mixer_index "0"
dsd_usb "no"
}

audio_output {
type "alsa"
name "ALSA graphic eq"
device "alsaequal"
mixer_control "Master"
mixer_device "hw:0"
mixer_index "0"
dsd_usb "no"
}
pi@rp3:~ $

-Tim
 

Attachments

  • moode-r40b6-komerdoor.png
    moode-r40b6-komerdoor.png
    245.5 KB · Views: 337
Last edited:
Hi @komerdoor,

Config looks ok, hw_params looks ok in your earlier post.

Very odd that no sound when config looks good. I have same config: Stretch + Kali + Piano 2.1 (Dual-Mono mode, glb_mclk) + MPD + SoX 32/384.

Here is moOde MPD config if that may provide a troubleshooting vector.

Output Stream in the screen shot is hw_params.

...

-Tim

Sorry for the late reaction. I was not able to get 32/384 working on stock debian/stretch. I think I am still missing some patches for linux and asound.

I am thinking about buying Moode, but does it have the following?

- Support for debian/stretch currently available.
- A non-realtime patched kernel so I can do multicore SOX resampling (there is actually no need for a RT kernel if not used for live audio as far as I know?).

I will then install kodi, brutefir (or is it already inside Moode?) and retroarch on it as well.

Update: Just read Moode will be fully open-sourced. Thank you! That means I can just install it upon my existing raspbian/stretch installation. I will donate instead.
 
Last edited:
Sorry for the late reaction. I was not able to get 32/384 working on stock debian/stretch. I think I am still missing some patches for linux and asound.

I am thinking about buying Moode, but does it have the following?

- Support for debian/stretch currently available.
- A non-realtime patched kernel so I can do multicore SOX resampling (there is actually no need for a RT kernel if not used for live audio as far as I know?).

I will then install kodi, brutefir (or is it already inside Moode?) and retroarch on it as well.

Update: Just read Moode will be fully open-sourced. Thank you! That means I can just install it upon my existing raspbian/stretch installation. I will donate instead.

Hi,

Yep, FOSS all the way, but I'm not going to be releasing pre-made images (distribution) anymore due to the workload involved in keeping GPL compliance up to scratch. Releases will consist of moOde application Sources + Build Recipe for creating your own image. If you have decent Linux skills, the recipe should be straight forward. Pre-made distribution images may become available if/when other distributions for example DietPi, LibreELEC etc integrate moOde into their distros. I'm on-board to help with integration, of course

The upcoming moOde 4 release was developed on 2017-09-07 Streatch Lite. Its definitely NOT going to work on Jessie, but probably will work on earlier release of Stretch Lite. Don't know whether it will work on Full Stretch. YMMV.

2017-09-07 Stretch Lite ships with .41 mainline Linux kernel which supports 32/384K rate.
http://downloads.raspberrypi.org/ra...17-09-08/2017-09-07-raspbian-stretch-lite.zip

Your gesture to offer a donation as appreciation for the work is greatly ppreciated :)

-Tim
 
No problem.

I am using Raspbian/Stretch lite. I tried the 4.9.41-moode1 kernel + modules and the latest allo firmware, but 32/384k still does not work. The song plays without any sound coming from the speakers. I suspect this could have something to do with the Kali or Raspberry PI. Not sure. I read somewhere about RPi 2 not supporting 32/384k. Could that be the reason?

Can I download an image of Moode somewhere that is known to work with Piano 2.1+Kali and 32/384k?
 
No problem.

I am using Raspbian/Stretch lite. I tried the 4.9.41-moode1 kernel + modules and the latest allo firmware, but 32/384k still does not work. The song plays without any sound coming from the speakers. I suspect this could have something to do with the Kali or Raspberry PI. Not sure. I read somewhere about RPi 2 not supporting 32/384k. Could that be the reason?

Can I download an image of Moode somewhere that is known to work with Piano 2.1+Kali and 32/384k?

Sound like there may a rock somewhere in your config. If you have another audio app running that hogs ALSA output then you won't have any sound from MPD.

The 2B is fine, even the 1B ok with 32/384K.

You will have to wait for moOde 4. I'm planning to get the development version and Build Recipe up ASAP so please be patient :)

-Tim
 
Sound like there may a rock somewhere in your config. If you have another audio app running that hogs ALSA output then you won't have any sound from MPD.

The 2B is fine, even the 1B ok with 32/384K.

You will have to wait for moOde 4. I'm planning to get the development version and Build Recipe up ASAP so please be patient :)

-Tim

Thank you. I will wait for moOde 4 then. Already have my crosstool-ng and raspberry pi toolkit ready.
 
Sound like there may a rock somewhere in your config. If you have another audio app running that hogs ALSA output then you won't have any sound from MPD.

The 2B is fine, even the 1B ok with 32/384K.

You will have to wait for moOde 4. I'm planning to get the development version and Build Recipe up ASAP so please be patient :)

-Tim

Thank you for open-sourcing Moode and the nice web GUI.

I installed Moode 4.0, but still no sound when playing at 32/384K. I now suspect something is wrong with my Kali Reclocker and that I should contact Allo.

What it currently looks like:

Kernel: 4.9.59-v7+

Userland: Debian/Stretch (from lite image)

Kernel log: [ 0.000000] Booting Linux on physical CPU 0xf00 [ 0.000000] Linux version - Pastebin.com

moode.log:
Code:
20171102 202553 worker: - Start
20171102 202554 worker: Successfully daemonized
20171102 202554 worker: - Init
20171102 202554 worker: Session loaded
20171102 202554 worker: Debug logging (off)
20171102 202558 worker: Host (htpc-1087)
20171102 202558 worker: Hdwr (Pi-2B 1GB v1.1)
20171102 202558 worker: Arch (armv7l)
20171102 202558 worker: Kver (4.9.59-v7+)
20171102 202558 worker: Ktyp (Standard)
20171102 202558 worker: Gov  (performance)
20171102 202558 worker: OS   (moodeOS deprecated)
20171102 202558 worker: Rel  (Moode 4.0 2017-MM-DD)
20171102 202558 worker: Upd  (None)
20171102 202558 worker: MPD  (0.20.11)
20171102 202558 worker: USB boot not enabled yet
20171102 202558 worker: File system expanded
20171102 202559 worker: HDMI port on
20171102 202559 worker: File check ok
20171102 202559 worker: - Network
20171102 202600 worker: eth0 exists
20171102 202600 worker: eth0 (192.168.170.150)
20171102 202600 worker: wlan0 does not exist
20171102 202600 worker: - Audio
20171102 202600 worker: ALSA outputs unmuted
20171102 202600 worker: Audio output (I2S audio device)
20171102 202600 worker: Audio device (Allo Piano 2.1 Hi-Fi DAC)
20171102 202601 worker: ALSA mixer name (Master)
20171102 202601 worker: MPD volume control (software)
20171102 202601 worker: Hdwr volume controller exists
20171102 202601 worker: Chip options applied (Burr Brown PCM5142)
20171102 202601 worker: Piano output mode (Dual-Mono)
20171102 202606 worker: Piano 2.1 initialized
20171102 202606 worker: - Services
20171102 202611 worker: MPD started
20171102 202611 worker: MPD scheduler policy (time-share)
20171102 202611 worker: MPD output 1 alsa (on)
20171102 202611 worker: 
20171102 202611 worker: 
20171102 202611 worker: 
20171102 202611 worker: MPD crossfade (off)
20171102 202611 worker: - Last
20171102 202611 worker: USB sources (none attached)
20171102 202611 worker: NAS sources (none configured)
20171102 202612 worker: Volume level (1) restored
20171102 202612 worker: Watchdog started
20171102 202612 worker: Ready
20171102 202835 worker: Job mpdcfg
mpd.conf:
Code:
#########################################
# This file is automatically generated by
# the player MPD configuration page.     
#########################################

music_directory "/var/lib/mpd/music"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/database"
log_file "/var/log/mpd/log"
pid_file "/var/run/mpd/pid"
state_file "/var/lib/mpd/state"
sticker_file "/var/lib/mpd/sticker.sql"
user "mpd"
group "audio"
bind_to_address "any"
port "6600"
log_level "default"
restore_paused "yes"
auto_update "no"
follow_outside_symlinks "yes"
follow_inside_symlinks "yes"
zeroconf_enabled "no"
zeroconf_name "Moode MPD"
mixer_type "software"
audio_output_format "384000:32:2"
gapless_mp3_playback "yes"
replaygain "track"
volume_normalization "no"
audio_buffer_size "4096"
buffer_before_play "10%"
max_output_buffer_size "81920"
id3v1_encoding "UTF-8"
filesystem_charset "UTF-8"
max_connections "20"

decoder {
plugin "ffmpeg"
enabled "yes"
}

input {
plugin "curl"
}

resampler {
plugin "soxr"
quality "very high"
threads "0"
}

audio_output {
type "alsa"
name "ALSA default"
device "hw:0,0"
dsd_usb "no"
}

audio_output {
type "alsa"
name "ALSA crossfeed"
device "crossfeed"
dsd_usb "no"
}

audio_output {
type "alsa"
name "ALSA parametric eq"
device "eqfa4p"
dsd_usb "no"
}

audio_output {
type "alsa"
name "ALSA graphic eq"
device "alsaequal"
dsd_usb "no"
}
config.txt:
Code:
gpu_mem=256

boot_delay=1

# KEEP AT 0
force_turbo=0

temp_limit=75

over_voltage=4
max_usb_current=0

arm_freq=1000

core_freq=500
sdram_freq=500

initial_turbo=30

arm_freq_min=400
core_freq_min=200
sdram_freq_min=200

disable_splash=1

disable_overscan=1

hdmi_ignore_cec_init=1

# decode_DTS=0x00000000
# decode_DDP=0x00000000

dtoverlay=allo-piano-dac-plus-pcm512x-audio,glb_mclk
#dtoverlay=allo-piano-dac-plus-pcm512x-audio

#disable_audio_dither=1
#audio_pwm_mode=2

#hdmi_force_edid_audio=1
#hdmi_group=1
#hdmi_mode=16

dtparam=i2c_arm=on
dtparam=audio=off
dtparam=i2s=on
cat /proc/asound/card*/pcm0p/sub0/hw_params (while playing a song):
Code:
access: RW_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 384000 (384000/1)
period_size: 16384
buffer_size: 65536
alsacap:
Code:
*** Scanning for playback devices ***
Card 0, ID `PianoDACPlus', name `PianoDACPlus'
  Device 0, ID `PianoDACPlus multicodec-0', name `', 1 subdevices (1 available)
    2 channels, sampling rate 8000..384000 Hz
    Sample formats: S16_LE, S24_LE, S32_LE
      Subdevice 0, name `subdevice #0'
 
Hi @komerdoor,

Based on log it looks like a config issue

20171102 202611 worker: MPD output 1 alsa (on)
20171102 202611 worker:
20171102 202611 worker:
20171102 202611 worker:

should be

20171102 081330 worker: MPD output 1 ALSA default (on)
20171102 081330 worker: MPD output 2 ALSA crossfeed (off)
20171102 081330 worker: MPD output 3 ALSA parametric eq (off)
20171102 081330 worker: MPD output 4 ALSA graphic eq (off)

Check /var/log/mpd/log

Also the cmd: mpc outputs

-Tim
 
Last edited:
Hi @komerdoor,

Based on log it looks like a config issue

20171102 202611 worker: MPD output 1 alsa (on)
20171102 202611 worker:
20171102 202611 worker:
20171102 202611 worker:

should be

20171102 081330 worker: MPD output 1 ALSA default (on)
20171102 081330 worker: MPD output 2 ALSA crossfeed (off)
20171102 081330 worker: MPD output 3 ALSA parametric eq (off)
20171102 081330 worker: MPD output 4 ALSA graphic eq (off)

Check /var/log/mpd/log

Also the cmd: mpc outputs

-Tim

Yes I know. I only use a single "alsa" output which is working for all bitrates / bits except 32/384k. It plays, so the ALSA part seems to be working, but no sound.

I will contact Allo about this issue. I read the old Kali FPGA program did not support 32/384k showing the same behaviour as I am having, playing but no sound.
 
Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.