TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: EMANUEL BERG
date: 2017-08-07 09:35:00
subject: 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

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.