bobertuk;652116 Wrote: > 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
Bob....can I correctly assume that if I've got the sound effects turned off (per Soundcheck's mods), that it is not necessary to include the code for both retrieving and setting the jive_alsa sound effects? Or would omitting that code screw something up? -- rgro Rick System information ------------------------ Main: PS Audio Quintet > Vortexbox > Touch (wired) via spdif coax > Rega DAC > LFD LE IV amp > VA Mozart Grands > REL Acoustics R305. Home Theatre: SBR (Wired) > Pioneer VSX 919 > Energy Take 5 Classic 5.1. SBS 7.6.0 r32859 running on a Vortexbox Appliance, V 1.9. Touch w/Hardware V.5. Touch: FW 7.6 r9458. Duet: FW 77 r9458. ------------------------------------------------------------------------ rgro's Profile: http://forums.slimdevices.com/member.php?userid=34348 View this thread: http://forums.slimdevices.com/showthread.php?t=89359 _______________________________________________ audiophiles mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/audiophiles
