I am using the Debian distribution.
Is sound working?
I have tried via the HDMI, 3mm sound port and a USB adapter.
Any pointers to resolving this issue?
Re: No sound via HDMI or 3mm
A little more info.
I am trying to play Mp3 files.
I have 3 sound options, HDMI, 2mm port, and an USB adpator. None currently work.
I have tried aplay, mplayer and LXmusic.
I have tried 'sudo modprobe snd_bcm2835' then retested.
I have change config.txt and added hdmi_drive=2
I am trying to play Mp3 files.
I have 3 sound options, HDMI, 2mm port, and an USB adpator. None currently work.
I have tried aplay, mplayer and LXmusic.
I have tried 'sudo modprobe snd_bcm2835' then retested.
I have change config.txt and added hdmi_drive=2
-
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6335
- Joined: Wed Aug 17, 2011 7:41 pm
- Location: Cambridge
Re: No sound via HDMI or 3mm
Try:
cd /opt/vc/src/hello_pi/hello_audio
make
./hello_audio.bin
to test analogue output. And
./hello_audio.bin 1
to test HDMI.
cd /opt/vc/src/hello_pi/hello_audio
make
./hello_audio.bin
to test analogue output. And
./hello_audio.bin 1
to test HDMI.
Re: No sound via HDMI or 3mm
This test works fine... very loud. Thank you.
Now, how do the same in LXMusic?
Now, how do the same in LXMusic?
-
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6335
- Joined: Wed Aug 17, 2011 7:41 pm
- Location: Cambridge
Re: No sound via HDMI or 3mm
For me this works:
sudo modprobe snd_bcm2835
sudo aplay <name of wav file>
By default output will be automatic (hdmi if hdmi supports audio, otherwise analogue).
You can force it with:
sudo amixer cset numid=3 <n>
where n is 0=auto, 1=headphones, 2=hdmi.
However alsa driver is alpha quality, and has issues.
sudo modprobe snd_bcm2835
sudo aplay <name of wav file>
By default output will be automatic (hdmi if hdmi supports audio, otherwise analogue).
You can force it with:
sudo amixer cset numid=3 <n>
where n is 0=auto, 1=headphones, 2=hdmi.
However alsa driver is alpha quality, and has issues.
Re: No sound via HDMI or 3mm
and..
mplayer -ao sdl mymusicfile.mp3 works... a tad of stutter when moving mouse, but, still no sound in LXMusic.
mplayer -ao sdl mymusicfile.mp3 works... a tad of stutter when moving mouse, but, still no sound in LXMusic.
Re: No sound via HDMI or 3mm
OK. I am starting to understand.
sudo modprobe snd_bcm2835 ... before startx,
then, all works. I missed that bit... new to this OS.
Still learning. I always will.
Thank you.
sudo modprobe snd_bcm2835 ... before startx,
then, all works. I missed that bit... new to this OS.
Still learning. I always will.
Thank you.
Re: No sound via HDMI or 3mm
Thanks for the tips guys - I've got sound up and running over LXMusic now. I'm looking to see if I can get sound working through Midori now - I want to listen to Indie Shuffle (www.indieshuffle.com). Any pointers?