I have written a helper function to test
everything:
test-sound () {
sudo modprobe snd_bcm2835
local sound=/usr/share/sounds/alsa/Front_Center.wav
if [[ -f $sound ]]; then
for output in 0..2; do
echo "output: $output"
sudo amixer -q -c 0 cset numid=3 $output
sudo aplay -q $sound
done
else
echo "No file: $file" >&2
fi
local bin=/opt/vc/src/hello_pi/hello_audio/hello_audio.bin
echo "C-< or ^\ when done"
sudo $bin # 3.5 mm jack
sudo $bin 1 # HDMI
}
The only thing that works is the 3.5 mm jack
the end. The HDMI at the end doesn't work and
nor does any of the aplay tests in the
for loop.
The omxplayer works for --adev local tho.
Ideas?
--
underground experts united
http://user.it.uu.se/~embe8573
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|