LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 09-09-2016, 12:30 PM   #1
lambo69
Member
 
Registered: Sep 2012
Distribution: Slackware, Manjaro, Slackarm, Raspbian, Debian
Posts: 68

Rep: Reputation: Disabled
Raspberry Pi3, Alsa, Slackarm.14.2


Hi,
i'm in trouble getting sound to work on a RaspberryPi 3 running slackarm 14.2.

Quote:
> lsmod |grep snd
snd_bcm2835 20319 0
snd_pcm 75532 1 snd_bcm2835
snd_timer 19156 1 snd_pcm
snd 52074 3 snd_bcm2835,snd_timer,snd_pcm
...module is loaded via rc.local, it didn't load by default.

...starting alsa manually:
Quote:
> /etc/rc.d/rc.alsa restart
Setting default ALSA mixer settings.
amixer: Mixer attach default error: No such file or directory
Storing default ALSA mixer settings: /usr/sbin/alsactl store
/usr/sbin/alsactl: save_state:1595: No soundcards found...
so let's have closer look:
Quote:
~> cat /proc/asound/cards
--- no soundcards ---
Hu?

alsamixer tells the same, no device...
and
Quote:
aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
Which brings me to the question: where is pulse started? rc.pulseaudio is not executable and the belonging section in rc.M is excluded. Udev? I didn' find anything looking like a rule to start pulseaudio. But:
Quote:
> ps ax|grep pulse
2186 pts/0 S+ 0:00 grep pulse
doesn't show anything of pulse. So why is pulseaudio be shown?

So my goal is simply to run alsa (not pulse) and use 3,5 jack. But first of all: getting alsa to run.

Are there any ideas?

thanks in advance

Last edited by lambo69; 09-09-2016 at 12:32 PM.
 
Old 09-11-2016, 03:07 AM   #2
lambo69
Member
 
Registered: Sep 2012
Distribution: Slackware, Manjaro, Slackarm, Raspbian, Debian
Posts: 68

Original Poster
Rep: Reputation: Disabled
Thumbs up

First of all: i wasn't aware of slackware14.2 being shipped with pulseaudio as default.

To get the soundcard (slackarm only):
Set at /boot/config.txt
Quote:
dtparam=audio=on
and, solely to set 3.5mm jack as default:
Quote:
hdmi_drive=1
Next, the module of the soundcard has to be loaded:
append to /etc/rc.d/rc.local
Quote:
modprobe snd_bcm2835
...but there are other places to load it.

That was the raspberry part. To get back alsa to slackware, do the following:

Prevent audio from being routed by default to pulse, this happens at /etc/asound.conf:
Code:
mv /etc/asound.conf /etc/asound.conf.bak
Prevent pulseaudio from being started again, when killed, edit /etc/pulse/client.conf to the following:
Quote:
autospawn = no
allow-autospawn-for-root = no
daemon-binary = /usr/bin/true
revoke executionflag on /etc/rc.d/rc.pulseaudio
Code:
chmod 444 /etc/rc.d/rc.pulseaudio
make /etc/rc.d/rc.alsa executable:
Code:
chmod 544 /etc/rc.d/rc.alsa
For the slackware part of getting rid of pulseaudio, there are some more threads about it here on LQ.
 
1 members found this post helpful.
  


Reply

Tags
alsa, rasberrypi, slack



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Raspberry Pi3 anyone loose eth0 with the last update? enine Slackware - ARM 10 08-03-2016 01:28 AM
GPIO output Raspberry pi3 andi968 Programming 2 04-13-2016 01:38 PM
[SOLVED] Installing SlackARM 14.1 on Raspberry Pi (model B, NOT Micron) andrixnet Slackware - ARM 6 09-23-2014 07:56 PM
[SOLVED] Installing SlackARM 14.1 on my Raspberry Pi (model B) Ramurd Slackware - ARM 8 02-17-2014 01:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 03:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration