no sound with alsa

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
Reply to
Emanuel Berg
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.