LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Headless raspberry pi3 and audio output (https://www.linuxquestions.org/questions/linux-newbie-8/headless-raspberry-pi3-and-audio-output-4175585220/)

spacelander 07-21-2016 09:13 AM

Headless raspberry pi3 and audio output
 
I have a raspberry pi 3 and I use it to learn more about Linux. In the mean time I would like to connect a set of speakers and play some online radio station. However, I can't get the audio to work. I loaded the snd-bcm2835 kernel module (might not be the right one?), installed alsa-utils and pulseaudio.
MPV for example complains:
Code:

(+) Audio --aid=1 --alang=eng (*) (opus)
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default
[ao/alsa] Playback open error: No such file or directory
[ao] Failed to initialize audio driver 'alsa'
Could not open/initialize audio device -> no sound.
Audio: no audio

Dmesg complains:

Code:

[34601.971567] snd_bcm2835: Unknown symbol snd_ctl_add (err 0)
[34601.971595] snd_bcm2835: Unknown symbol snd_pcm_new (err 0)
[34601.971627] snd_bcm2835: Unknown symbol snd_card_register (err 0)
[34601.971653] snd_bcm2835: Unknown symbol snd_card_free (err 0)
[34601.971678] snd_bcm2835: Unknown symbol snd_pcm_lib_preallocate_pages_for_all (err 0)
[34601.971721] snd_bcm2835: Unknown symbol snd_ctl_new1 (err 0)
[34601.971738] snd_bcm2835: Unknown symbol snd_card_new (err 0)
[34601.971761] snd_bcm2835: Unknown symbol snd_pcm_lib_malloc_pages (err 0)
[34601.971785] snd_bcm2835: Unknown symbol snd_pcm_lib_ioctl (err 0)
[34601.971802] snd_bcm2835: Unknown symbol snd_pcm_lib_free_pages (err 0)
[34601.971841] snd_bcm2835: Unknown symbol snd_pcm_set_ops (err 0)
[34601.971880] snd_bcm2835: Unknown symbol snd_device_new (err 0)
[34601.971958] snd_bcm2835: Unknown symbol snd_pcm_period_elapsed (err 0)
[34601.971976] snd_bcm2835: Unknown symbol snd_pcm_hw_constraint_step (err 0)
[34601.972013] snd_bcm2835: Unknown symbol snd_pcm_format_width (err 0)


pan64 07-22-2016 02:26 AM

would be nice to know (at least) what os is installed

spacelander 08-19-2016 04:16 AM

sound was disabled in the kernel's config file (which I didn't know existed, as x86-land, it doesn't)


All times are GMT -5. The time now is 07:09 PM.