Alsa broken on v17 rpi2

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
nitrogen_widget

Alsa broken on v17 rpi2

Post by nitrogen_widget »

Hi,
Since I updated to v17 my apps are giving me alsa errors and it doesn't look like i have a sound card anymore.
Also, boot up shows audio isn't initializing.
I've re-run the sound config & made sure Alsa was installed via the software installer.
Same with apt-get.

Any ideas?

Thanks.
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Alsa broken on v17 rpi2

Post by Fourdee »

Hi Nitrogen,

Are you using the inbuilt RPi soundcard?

Also, please run the following:

Code: Select all

apt-get install -y alsa-utils
Then paste results of:

Code: Select all

aplay -l
cat /etc/asound.conf
cat /DietPi/config.txt | grep 'dtoverlay' 
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
nitrogen_widget

Re: Alsa broken on v17 rpi2

Post by nitrogen_widget »

yes.
Onboard sound.

Alsa tool allready installed.

root@DietPi:~# aplay -l
aplay: device_list:268: no soundcards found...

cat /etc/asound.conf
cat: /etc/asound.conf: No such file or directory

root@DietPi:~# cat /DietPi/config.txt | grep 'dtoverlay'
dtoverlay=rpi-bcm2835
root@DietPi:~#
root@DietPi:~# Fourdee
bash: Fourdee: command not found
root@DietPi:~# Site Admin
bash: Site: command not found
root@DietPi:~#
root@DietPi:~# Posts: 684
bash: Posts:: command not found
root@DietPi:~# Joined: Tue Feb 06, 2007 12:36 pm
bash: Joined:: command not found
nitrogen_widget

Re: Alsa broken on v17 rpi2

Post by nitrogen_widget »

got it.
searched for the "no soundcard..." message aplay gave me and found if I added:
dtparam=audio=on to /boot/config.txt and rebooted everything worked.

Thanks for getting me that far.
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Alsa broken on v17 rpi2

Post by Fourdee »

nitrogen_widget wrote:got it.
searched for the "no soundcard..." message aplay gave me and found if I added:
dtparam=audio=on to /boot/config.txt and rebooted everything worked.

Thanks for getting me that far.
I've not seen "dtparam=audio=on" option before, must be a new one. There's so many undocumented options that can be used in config.txt, wish the RPi guys would list them "all".

Thanks for letting us know :)

If you have some spare time, could you run the following and paste result for me please:

Code: Select all

uname -a
I just want to see if a recent kernel update has caused this on the RPi. Will also see if i can replicate this on my RPi 2.

Thanks Nitrogen.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: Alsa broken on v17 rpi2

Post by k-plan »

Hi,
Fourdee wrote:If you have some spare time, could you run the following and paste result for me please:

Code: Select all

uname -a
Would interested me too.
Fourdee wrote:I've not seen "dtparam=audio=on" option before, must be a new one.
As far as I know, it is new on: =>> 4.4 kernel
dom » Sat Jan 30, 2016 1:07 pm wrote:
DirkS wrote:Isn't

Code: Select all

dtparam=audio
in config.txt the 'modern' way of getting the module loaded?
Yes, absolutely. Using /etc/modules is deprecated and no longer supported on 4.4 kernel.
dtparam=audio will be a default setting in config.txt in future raspbian images.
Fourdee wrote:Will also see if i can replicate this on my RPi 2.
You can do a Kernel and Firmware update and test it:

Code: Select all

BRANCH=next rpi-update
or
rpi-update
rpi-update
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Alsa broken on v17 rpi2

Post by Fourdee »

k-plan wrote:Hi,
Fourdee wrote:If you have some spare time, could you run the following and paste result for me please:

Code: Select all

uname -a
Would interested me too.
Fourdee wrote:I've not seen "dtparam=audio=on" option before, must be a new one.
As far as I know, it is new on: =>> 4.4 kernel
dom » Sat Jan 30, 2016 1:07 pm wrote:
DirkS wrote:Isn't

Code: Select all

dtparam=audio
in config.txt the 'modern' way of getting the module loaded?
Yes, absolutely. Using /etc/modules is deprecated and no longer supported on 4.4 kernel.
dtparam=audio will be a default setting in config.txt in future raspbian images.
Fourdee wrote:Will also see if i can replicate this on my RPi 2.
You can do a Kernel and Firmware update and test it:

Code: Select all

BRANCH=next rpi-update
or
160501-0001.gif
K-Plan, legend as always, great find :)

I'll integrate this new option into DietPi, as well as keeping /etc/modules code in there: https://github.com/Fourdee/DietPi/issues/327
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
nitrogen_widget

Re: Alsa broken on v17 rpi2

Post by nitrogen_widget »

Code: Select all

root@DietPi:~# uname -a
Linux DietPi 4.4.9-v7+ #884 SMP Fri May 6 17:28:59 BST 2016 armv7l GNU/Linux
root@DietPi:~# 
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Alsa broken on v17 rpi2

Post by Fourdee »

nitrogen_widget wrote:

Code: Select all

root@DietPi:~# uname -a
Linux DietPi 4.4.9-v7+ #884 SMP Fri May 6 17:28:59 BST 2016 armv7l GNU/Linux
root@DietPi:~# 
There she is 4.4 :D Thanks for confirming Nitrogen.

As of v118, DietPi will also update the dtparam=audio setting accordingly, when changing soundcards.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: Alsa broken on v17 rpi2

Post by k-plan »

Hi Nitrogen,

Thanks for your acknowledgement and assistance.

cu
k-plan
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
Post Reply