User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

"No ALSA stream available?!" after rpi-update??

Fri Jul 18, 2014 10:49 pm

After recent update I am seeing ALSA error messages during the boot up sequence and in dmesg.

Code: Select all

[   22.724417] bcm2835_audio_set_ctls:550  No ALSA stream available?! 0:  (null) (ff)
[   22.748733] bcm2835_audio_set_ctls:550  No ALSA stream available?! 1:  (null) (ff)
[   22.768442] bcm2835_audio_set_ctls:550  No ALSA stream available?! 2:  (null) (ff)
[   22.789621] bcm2835_audio_set_ctls:550  No ALSA stream available?! 3:  (null) (ff)
[   22.807254] bcm2835_audio_set_ctls:550  No ALSA stream available?! 4:  (null) (ff)
[   22.826533] bcm2835_audio_set_ctls:550  No ALSA stream available?! 5:  (null) (ff)
[   22.836074] bcm2835_audio_set_ctls:550  No ALSA stream available?! 6:  (null) (ff)
[   22.852688] bcm2835_audio_set_ctls:550  No ALSA stream available?! 7:  (null) (ff)
[   31.194176] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   32.782862] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[   37.691780] bcm2835_audio_set_ctls:559  Controls set for stream 0
[   37.691814] bcm2835_audio_set_ctls:550  No ALSA stream available?! 1:  (null) (ff)
[   37.691830] bcm2835_audio_set_ctls:550  No ALSA stream available?! 2:  (null) (ff)
[   37.691842] bcm2835_audio_set_ctls:550  No ALSA stream available?! 3:  (null) (ff)
[   37.691857] bcm2835_audio_set_ctls:550  No ALSA stream available?! 4:  (null) (ff)
[   37.691870] bcm2835_audio_set_ctls:550  No ALSA stream available?! 5:  (null) (ff)
[   37.691883] bcm2835_audio_set_ctls:550  No ALSA stream available?! 6:  (null) (ff)
[   37.691895] bcm2835_audio_set_ctls:550  No ALSA stream available?! 7:  (null) (ff)
Does anyone know what these cryptic messages mean??

I've just tested the on board audio and it's working as normal.

Richard S.

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2291
Joined: Thu Jul 11, 2013 2:37 pm

Re: "No ALSA stream available?!" after rpi-update??

Fri Jul 18, 2014 10:54 pm

I have seen the same issue after running the latest firmware.

It doesn't appear to have any adverse effect.
Rockets are loud.
https://astro-pi.org

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: "No ALSA stream available?!" after rpi-update??

Fri Jul 18, 2014 11:05 pm

It doesn't appear to have any adverse effect.
Maybe not but it appears to be filling my dmesg log when I'm playing music.

Is there any way to suppress this error message??

Richard S.

johnbxpl
Posts: 6
Joined: Sat Jul 19, 2014 12:07 pm

Re: "No ALSA stream available?!" after rpi-update??

Sat Jul 19, 2014 6:36 pm

I too am having this problem after doing a firmware update (Model B+).

Here's an extract from syslog:

Code: Select all

Jul 19 18:28:25 raspberrypi kernel: [   25.521975] bcm2835_audio_set_ctls:559  C
ontrols set for stream 0
Jul 19 18:28:25 raspberrypi kernel: [   25.521997] bcm2835_audio_set_ctls:550  N
o ALSA stream available?! 1:  (null) (ff)
Jul 19 18:28:25 raspberrypi kernel: [   25.522012] bcm2835_audio_set_ctls:550  N
o ALSA stream available?! 2:  (null) (ff)
Jul 19 18:28:25 raspberrypi kernel: [   25.522027] bcm2835_audio_set_ctls:550  N
o ALSA stream available?! 3:  (null) (ff)
Jul 19 18:28:25 raspberrypi kernel: [   25.522040] bcm2835_audio_set_ctls:550  N
o ALSA stream available?! 4:  (null) (ff)
Jul 19 18:28:25 raspberrypi kernel: [   25.522052] bcm2835_audio_set_ctls:550  N
o ALSA stream available?! 5:  (null) (ff)
Jul 19 18:28:25 raspberrypi kernel: [   25.522065] bcm2835_audio_set_ctls:550  N
o ALSA stream available?! 6:  (null) (ff)
Jul 19 18:28:25 raspberrypi kernel: [   25.522077] bcm2835_audio_set_ctls:550  N
o ALSA stream available?! 7:  (null) (ff)
I am not sure if this is related, but I can't seem to play more than one stream at once now.
In the past, while media was playing in mplayer, I could use espeak to play TTS over the top of it, and the audio would be mixed together.
Now, if I try and play multiple streams, the 2nd stream just hangs, or kills what was originally playing then hangs, with more of the above errors written to syslog.

Anyone got any clues?

I'm on latest Raspbian image (2014-06-20).

Thanks,

John

johnbxpl
Posts: 6
Joined: Sat Jul 19, 2014 12:07 pm

Re: "No ALSA stream available?!" after rpi-update??

Sun Jul 20, 2014 6:48 pm

Hi,

Just a bit of an update: I went back to an earlier firmware version by issuing the following command:

Code: Select all

sudo rpi-update d9eb02
Error messages have gone away and I can play multiple streams again.

So it looks like it's a bug introduced in recent firmware.

Regards,

John

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5460
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: "No ALSA stream available?!" after rpi-update??

Sun Jul 20, 2014 6:53 pm

The "No ALSA stream available?!" message I'd seen. It is harmless (due to a volume control request before alsa is opened) and just needs to be suppressed.

I wasn't aware of multiple streams not playing issue. There was a recent fix for an alsa panic that included adding a new lock. I'll look into it.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5460
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: "No ALSA stream available?!" after rpi-update??

Thu Jul 24, 2014 12:10 pm

The "No ALSA stream available?!" are removed in latest rpi-update.

I've tested multiple streams and that still works fine. E.g.

Code: Select all

aplay audio/norah.wav &
aplay audio/norah.wav &
aplay audio/norah.wav &
aplay audio/norah.wav &
aplay audio/norah.wav &
aplay audio/norah.wav &
aplay audio/norah.wav &
I think the espeak issue is something else. See https://github.com/raspberrypi/linux/issues/304

johnbxpl
Posts: 6
Joined: Sat Jul 19, 2014 12:07 pm

Re: "No ALSA stream available?!" after rpi-update??

Sat Aug 09, 2014 3:49 pm

Hi,

Thanks for the reply. I've updated to latest firmware using rpi-update, and while your aplay test works fine for me, the problems start when trying to play multiple streams of varying bitrates.

aplay will just hang when trying to play the 2nd stream, and I get the following in syslog:

Code: Select all

Aug  9 15:31:19 rpi1 kernel: [   68.782113] snd_bcm2835_playback_open_generic:124 Interrupted whilst waiting for lock
Reverting to my previous known good firmware sorts everything out again.

Thanks in advance for any assistance.

Regards,

John

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5460
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: "No ALSA stream available?!" after rpi-update??

Sat Aug 09, 2014 5:08 pm

johnbxpl wrote: Thanks for the reply. I've updated to latest firmware using rpi-update, and while your aplay test works fine for me, the problems start when trying to play multiple streams of varying bitrates.
Can you post details (samplerate/bit depth/channels) or ideally point me at example wav files that provoke the problem.
Report exactly what commands you ran to see the problem.

johnbxpl
Posts: 6
Joined: Sat Jul 19, 2014 12:07 pm

Re: "No ALSA stream available?!" after rpi-update??

Sat Aug 09, 2014 5:36 pm

Well I thought I could, but I think I may be barking up the wrong tree as it's just played two streams of differing bitrates fine.

It looks like espeak may be the cause - I'm aware of the stuttering problem which has been around for ages, but now espeak seems to be able to crash the entire audio subsystem.

Here's how to reproduce:
Play an audio stream (in my case this was an MP3 file using mplayer)
While the stream is playing, type:

Code: Select all

espeak "Hello world" --stdout | aplay
This works fine, and the words "Hello world" are heard mixed in with the audio stream.

However, try espeak without piping the output to aplay:

Code: Select all

espeak "hello world"
espeak appears to hang, and after that the audio subsystem becomes unresponsive, and eventually if you keep playing audio the pi will lock up.

I'm not sure whether this is an espeak issue or something to do with the Alsa driver, but I'll keep digging.

Regards,

John

johnbxpl
Posts: 6
Joined: Sat Jul 19, 2014 12:07 pm

Re: "No ALSA stream available?!" after rpi-update??

Fri Aug 15, 2014 7:14 am

Hi,

I've switched from espeak to flite, and the Alsa issues seem to have gone away. It's a shame as flite is less responsive and a lot heavier on CPU, but it doesn't seem to result in any audio instability.

I have no idea why espeak doesn't play well on the Pi - it would be great if someone could figure that out one day.

Regards,

John

Return to “General discussion”