I made the changes 'stick' by using a combination of lintweakers changes to rcS and suggestions made by JohnSwenson.
1. Add the following to the basic rcS script immediately before the call to run squeezeplay (i.e. near the end of file): # Call file 'SB_priority' to set all audio priorities # by ensuring squeezeplay is fully initialised first /etc/init.d/SB_priority & 2. Create a new file - 'SB_priority' - in the same directory as rcS and use the following script: #!/bin/sh sleep 100 # Set audio thread priorities # =========================== # Get IRQ for RTC tmp=`cat /proc/interrupts |grep "mxc_rtc"|cut -f2 -d" "|cut -f1 -d":"` # Get proc # for RTC rtc=`ps -e|grep IRQ-$tmp|cut -f3 -d" "` # Get IRQ of SPDIF I/F tmp=`cat /proc/interrupts |grep "spdif"|cut -f2 -d" "|cut -f1 -d":"` # Get proc # for SPDIF spdif=`ps -e|grep IRQ-$tmp|cut -f3 -d" "` # Get proces number for audio threads aud1=`ps -e|grep "sirq-timer/0"|cut -f5 -d" "` aud2=`ps -e|grep "sirq-hrtimer/0"|cut -f4 -d" "` # Get process number for jive_alsa 'music' jalsa1=`ps -eo pid,args|grep "jive_alsa -d default"|head -1|cut -f3 -d" "` # Get process number for jive_alsa 'sound effects' jalsa2=`ps -eo pid,args|grep "jive_alsa -d plughw"|head -1|cut -f3 -d" "` # Set new priorities chrt -f -p 91 $aud1 > /dev/null chrt -f -p 93 $aud2 > /dev/null chrt -f -p 44 $spdif > /dev/null chrt -f -p 87 $rtc > /dev/null # check the new priorities with: # ps -eLo pid,cls,rtprio,pri,nice,cmd | grep -i "irq" # check all priorities with: # ps -eLo pid,cls,rtprio,pri,nice,cmd # Set jive_alsa priority jalsa1=`ps -eo pid,args|grep "jive_alsa -d default"|head -1|cut -f3 -d" "` chrt -f -p 55 $jalsa1 > /dev/null # sound effects only xx jasla2=`ps -eo pid,args|grep "jive_alsa -d plughw"|head -1|cut -f3 -d" "` 3. Make sure SB_priority is executable: chmod 777 SB_priority Doing it this way is probably more robust and does work. Obviously use your own preferred values in each 'chrt -f -p xx $xxx' setting. Bob -- bobertuk 1 x Touch - SC 7.6.0 - SSOTS v4.91 1 x Radio 1 x Boom Lavry DA-10 DAC QNAP TS-509 3.3.6 build 1110T Starfish Pre-amp : Based on NAIM Heavily modified NAIM NAP 250 Power-amp Behringer DEQ2496 Linn Isobarik DMS ------------------------------------------------------------------------ bobertuk's Profile: http://forums.slimdevices.com/member.php?userid=30376 View this thread: http://forums.slimdevices.com/showthread.php?t=89359 _______________________________________________ audiophiles mailing list audiophiles@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/audiophiles