I have one application that plays sound only in short bursts from the HMDI but I have not been able to get sound from the 3.5 mm socket. Details of what I have tried below. Help appreciated.
root@raspberrypi:~# lsmod|grep snd
snd_bcm2835 15388 1
snd_pcm 49240 1 snd_bcm2835
snd_seq 35080 0
snd_timer 13560 2 snd_pcm,snd_seq
snd_seq_device 3684 1 snd_seq
snd 31624 7 snd_bcm2835,snd_pcm,snd_seq,snd_timer,snd_seq_device
snd_page_alloc 2660 1 snd_pcm
root@raspberrypi:~# fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/controlC0: pulse 1302 F.... pulseaudio
root@raspberrypi:~# cat /proc/asound/cards
0 [ALSA ]: BRCM bcm2835 ALSbcm2835 ALSA - bcm2835 ALSA
bcm2835 ALSA
root@raspberrypi:~# cat /etc/asound.conf
pcm.mmap0 {
type mmap_emul;
slave {
pcm "hw:0,0";
}
}
pcm.!default {
type plug;
slave {
pcm mmap0;
}
root@raspberrypi:~# aplay /jet.wav
ALSA lib conf.c:1661:(snd_config_load1) _toplevel_:13:0:Unexpected char
ALSA lib conf.c:3441:(snd_config_hook_load) /etc/asound.conf may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:3302:(snd_config_hooks_call) function snd_config_hook_load returned error: Invalid argument
ALSA lib conf.c:3687:(snd_config_update_r) hooks failed, removing configuration
aplay: main:654: audio open error: Invalid argument
root@raspberrypi:~# cat /etc/asound.conf
pcm.!default {
type hw
card 0
}
ctl.!default {
type hw
card 0
}
root@raspberrypi:~# aplay /jet.wav
Playing WAVE '/jet.wav' : Unsigned 8 bit, Rate 11025 Hz, Mono
aplay: pcm_write:1603: write error: Input/output error
root@raspberrypi:~# cat /etc/modprobe.d/alsa-base.conf
# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7
# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet snd-ioctl32 ; /sbin/modprobe --quiet snd-seq ; }
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modprobe --quiet snd-seq-midi ; : ; }
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && { /sbin/modprobe --quiet snd-emu10k1-synth ; : ; }
# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
# Keep snd-pcsp from beeing loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=-2
root@raspberrypi:~# aplay /jet.wav
Playing WAVE '/jet.wav' : Unsigned 8 bit, Rate 11025 Hz, Mono
aplay: pcm_write:1603: write error: Input/output error