Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

PC Based Computer music servers, crossovers, and equalization

Raspbian, Kali, Piano 2.1, 384k/32bit, no sound
Raspbian, Kali, Piano 2.1, 384k/32bit, no sound
Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 14th October 2017, 02:31 PM   #1
komerdoor is offline komerdoor  Netherlands
diyAudio Member
 
Join Date: Sep 2017
Location: Amsterdam
Default Raspbian, Kali, Piano 2.1, 384k/32bit, no sound

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 by komerdoor; 14th October 2017 at 02:36 PM.
  Reply With Quote
Old 14th October 2017, 03:09 PM   #2
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
Very unlikely, but did you check for mute/ zero volume in alsamixer/amixer?
  Reply With Quote
Old 14th October 2017, 03:54 PM   #3
komerdoor is offline komerdoor  Netherlands
diyAudio Member
 
Join Date: Sep 2017
Location: Amsterdam
Quote:
Originally Posted by phofman View Post
Very unlikely, but did you check for mute/ zero volume in alsamixer/amixer?
Nothing is muted and volume is at 100%. When I switch to 192k, without changing anything else, I get sound. When I switch to 384k, without changing anything, I do not get sound. It clearly has something to do with the use of 384k.
  Reply With Quote
Old 14th October 2017, 03:58 PM   #4
CharlieLaub is offline CharlieLaub  United States
diyAudio Member
 
Join Date: Mar 2007
Location: California
Raspbian, Kali, Piano 2.1, 384k/32bit, no sound
Is the resampler that you are using in MPD capable of resampling to 384k? Directing it to do that is one thing, but what the code does with that directive is another.
__________________
Visit my Audio Web Page <<--CLICK TO LEARN MORE-->> Get my LADSPA plugins
  Reply With Quote
Old 14th October 2017, 07:45 PM   #5
komerdoor is offline komerdoor  Netherlands
diyAudio Member
 
Join Date: Sep 2017
Location: Amsterdam
Quote:
Originally Posted by CharlieLaub View Post
Is the resampler that you are using in MPD capable of resampling to 384k? Directing it to do that is one thing, but what the code does with that directive is another.
I tried different resamplers already.
  Reply With Quote
Old 14th October 2017, 08:42 PM   #6
TimCurtis is offline TimCurtis  United States
diyAudio Member
 
TimCurtis's Avatar
 
Join Date: Jan 2012
Location: Metro-Detroit
Hi,

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

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

-Tim
__________________
Enjoy the Music!
http://moodeaudio.org, http://twitter.com/MoodeAudio
  Reply With Quote
Old 14th October 2017, 08:59 PM   #7
TimCurtis is offline TimCurtis  United States
diyAudio Member
 
TimCurtis's Avatar
 
Join Date: Jan 2012
Location: Metro-Detroit
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
__________________
Enjoy the Music!
http://moodeaudio.org, http://twitter.com/MoodeAudio
  Reply With Quote
Old 15th October 2017, 12:39 AM   #8
komerdoor is offline komerdoor  Netherlands
diyAudio Member
 
Join Date: Sep 2017
Location: Amsterdam
Quote:
Originally Posted by TimCurtis View Post
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 by komerdoor; 15th October 2017 at 12:47 AM.
  Reply With Quote
Old 15th October 2017, 01:13 AM   #9
TimCurtis is offline TimCurtis  United States
diyAudio Member
 
TimCurtis's Avatar
 
Join Date: Jan 2012
Location: Metro-Detroit
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
Attached Images
File Type: png moode-r40b6-komerdoor.png (245.5 KB, 165 views)
__________________
Enjoy the Music!
http://moodeaudio.org, http://twitter.com/MoodeAudio

Last edited by TimCurtis; 15th October 2017 at 01:18 AM. Reason: eta
  Reply With Quote
Old 29th October 2017, 04:45 PM   #10
komerdoor is offline komerdoor  Netherlands
diyAudio Member
 
Join Date: Sep 2017
Location: Amsterdam
Quote:
Originally Posted by TimCurtis View Post
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 by komerdoor; 29th October 2017 at 04:58 PM.
  Reply With Quote

Reply


Raspbian, Kali, Piano 2.1, 384k/32bit, no soundHide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Async XMOS 384K/32bit with PCM5102 DAC on ebay luxury54 Digital Line Level 132 22nd July 2017 05:17 PM
DIY 32BIT-384K USBDAC CM6631A+AKM4490 ljm_ljm Vendor's Bazaar 0 22nd May 2017 01:58 PM
XMOS ES9023 Asynchronous DAC Decoder USB to Optical Coaxial 384K 32Bit Weiliang Bgt Digital Source 15 22nd February 2016 06:15 PM
Leaf Audio XMOS 384k 32bit DAC: PCM5102, TDA1308, PE-65x12 AudioLapDance Digital Source 14 2nd November 2014 07:30 PM
Best speaker to reproduce piano sound? sprinter Instruments and Amps 146 3rd May 2011 01:06 AM


New To Site? Need Help?

All times are GMT. The time now is 12:27 PM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 15.00%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Copyright ©1999-2018 diyAudio
Wiki