After work with a multitouch screen for the BeagleBone Black, now I just want to play audio/sounds through the HDMI connection as the multitouch screen has a speaker.
First of all, I just copied an audio sample, and try to reproduce it by 'vlc', but next message is shown:
"Audio output failed. The audio device "default" could not be used. No such file or directory."
Then, I have installed next tools:
'alsa-base', 'alsa-utils', 'alsa-tools', 'alsamixergui'
But, when I tried to launch 'alsamixergui', the next message is shown:
"alsamixer: function snd_ctl_open failed for default: No such file or directory"
And at "/etc/modprobe.d/alsa-base.conf", the content is:
# 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 ; : ; }
# 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
# 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
Moreover, I have try with next commands:
'alsamixer -c 1 (2, 3... 7)'
Having next output:
"invalid card index: 1"
Is there any way to reproduce any sound (*.midi, *.wav, *.mp3...) through hdmi easily?
Adding new information about the issue:
'lsmod':
snd 56846 6 snd_soc_core, snd_timer, snd_pcm, snd_seq, snd_seq_device, snd_comp
'modinfo snd':
filename: /lib/modules/4.1.16-bone18/kernel/sound/core/snd.kp
alias: char-major-116-*
license: GPL
description: Advanced Linux Sound Architecture driver for soundcards.
author: Jaroslav Kysela <pe...@perex.cz>
license: GPL
description: Jack detection support for ALSA
author: Mark Brown <bro...@opensource.wolfsonmicro.com>
depends: soundcore
intree: Y
vermagic: 4.1.16-bone18 mod_unload modversions ARMv7 thumb2 p2v8
parm: slots:Module names assigned to the slots. (array of charp)
parm: major:Major # for sound driver. (int)
parm: cards_limit:Count of auto-loadable soundcards. (int)
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
cd /opt/scripts/tools/git pullsudo ./update_kernel.sh --ti-channel --lts-4_1
ERROR: The certificate of 'rcn-ee.com' is not trusted.
The certificate has not yet been activated.
cd /opt/scripts/tools/git pullsudo ./update_kernel.sh --ti-channel --lts-4_1
cp: failed to extend '/boot/uboot/initrd.img': No space left on device
/dev/mmcblk0p1 96M 96M 100% /boot/uboot
ls /dev/snd
ls /proc/asound
cat /proc/asound/cardscat /proc(asound/devicesaplay -lcat /proc/asound/card0/pcm0p/sub0/hw_params
Black card0 cards devices oss pcm seq timers version0 [Black ]: TI_BeagleBone_B - TI BeagleBone BlackTI BeagleBone Black2: [ 0] : control3: [ 0- 0]: digital audio playback4: [ 0- 0]: digital audio capture33: : timer**** List of PLAYBACK Hardware Devices ****card 0: Black [TI BeagleBone Black], device 0: HDMI hdmi-hifi-0 []Subdevices: 0/1Subdevice #0: subdevice #0access: MMAP_INTERLEAVEDformat: S32_LEsubformat: STDchannels: 2rate: 32000 (32000/1)period_size: 1024buffer_size: 16384
- Current kernel: 4.1.18-ti-r56- aplay -L:nullDiscard all samples (playback) or generate zero samples (capture)default:CARD=BlackTI BeagleBone Black,Default Audio Devicesysdefault:CARD=BlackTI BeagleBone Black,Default Audio Device- speaker-test -D CARD=Black -t song.wav -c 2 -s 1
speaker-test 1.0.25Playback device is CARD=BlackStream parameters are 48000Hz, S16_LE, 2 channelsALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM CARD=BlackPlayback open error: -2,No such file or directory7
On Tue, Mar 22, 2016 at 11:31 AM, <yol...@gmail.com> wrote:
HDMI audio is in patch hell on mainline, if you want to use "4.1.x"
with hdmi audio you need to use the ti branch:
As far as I can tell, based on https://github.com/archlinuxarm/PKGBUILDs/blob/master/core/linux-am33x/PKGBUILD, the Arch Linux kernel I'm using should have all the necessary patches to make this work with 4.5.2. Unfortunately it's not. aplay -l still shows no drivers.
@RobertCNelson do you see anything wrong with that patch set that might be a problem? I'd really prefer to use Arch since the package versions are new enough to support some of the features I'm trying to implement.