Hi there.

The other day I ran once more into a strange behavior of the Piano21.
That DAC is a little tricky!
Especially the Dual-Mono related controls get mixed up once on a while.
Getting back to normal is not that easy.
Unfortunately pCP doesn't cover a proper DAC initialization if things
get 
messed up.


That's why I wrote myself a Piano21 init script: 


Code:
--------------------
    
  #!/bin/sh
  #
  #  script to initialize alsamixer settings for
  #  Allo Piano 2.1 in Dual-Mono config
  #
  #  written by soundcheck for
  #  pCP >4.1
  #  Rev 1 - Mar-01-2019
  #
  ###################################################################
  
  [ $(whoami) != root ] && { echo "*** Please, run as root!"; exit 1; };
  
  pgrep squeezlite >/dev/null && pkill squeezelite
  
  rm  -f  /var/lib/alsa/asound.state
  
  CARDNR="$(cat /proc/asound/cards | grep "\[PianoDACPlus"  | awk -F " " 
'{print $1}')"
  
  alsactl init $CARDNR >/dev/null 2>&1
  amixer -q -c $CARDNR set 'Dual Mode' 'Dual-Mono'
  amixer -q -c $CARDNR set 'Subwoofer mode' 'None'
  amixer -q -c $CARDNR set 'DSP Program' 'Ringing-less low latency FIR'
  amixer -q -c $CARDNR sset 'Digital' unmute
  amixer -q -c $CARDNR sset 'Digital' frontright,mute
  amixer -q -c $CARDNR set 'Digital' '100%'
  amixer -q -c $CARDNR sset 'Subwoofer' unmute
  amixer -q -c $CARDNR sset 'Subwoofer' frontleft,mute
  amixer -q -c $CARDNR set 'Subwoofer' '100%'
  amixer -q -c $CARDNR set 'Master' '100%'
  amixer -q -c $CARDNR set 'Analogue Playback Boost' '0%'
  amixer -q -c $CARDNR set 'Analogue' '100%'
  amixer -q -c $CARDNR set 'Deemphasis' 'off'
  amixer -q -c $CARDNR set 'Volume Ramp Down Rate' '1 sample/update'
  amixer -q -c $CARDNR set 'Volume Ramp Up Rate' '1 sample/update'
  amixer -q -c $CARDNR set 'Volume Ramp Down Step' '1dB/step'
  amixer -q -c $CARDNR set 'Volume Ramp Up Step' '1dB/step'
  
  alsactl store $CARDNR 
  chmod 666 /var/lib/alsa/asound.state
  
  filetool.sh -b >/dev/null
  
  echo "*** Please, reboot the system now!"
  
  
  exit 0
  
--------------------


ssh as tc, "su root", copy/paste above into the shell, and then run
"reboot".

Let me know if it works.

Enjoy.



:::'  my audioblog  - latest series: RaspBerry PI - \"The Audio Engine\"
' (http://soundcheck-audio.blogspot.com):::
------------------------------------------------------------------------
soundcheck's Profile: http://forums.slimdevices.com/member.php?userid=34383
View this thread: http://forums.slimdevices.com/showthread.php?t=109338

_______________________________________________
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to