no sound with alsa

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

I have written a helper function to test

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
        echo "No file: $file" >&2

    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.


underground experts united

Site Timeline