# ALSA device or resource busy

**URL:** <https://www.ruby-forum.com/t/alsa-device-or-resource-busy/231927>\
**Category:** GNU Radio\
**Created:** [September 7, 2014, 12:41am UTC](https://www.ruby-forum.com/t/alsa-device-or-resource-busy/231927 "2014-09-07T00:41:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [September 7, 2014, 12:41am UTC](https://www.ruby-forum.com/t/alsa-device-or-resource-busy/231927/1 "2014-09-07T00:41:52Z")

</div>

Hi folks,

I got it built and running, and now I have run into this problem:

* * *

## ALSA lib pcm\_dmix.c:1022:(snd\_pcm\_dmix\_open) unable to open slave ALSA lib pcm\_dmix.c:1022:(snd\_pcm\_dmix\_open) unable to open slave OERROR: [default]: Device or resource busy OOOOOOOOOOOOOOOOOOOOOOTraceback (most recent call last): File “/home/rsharpe/wireshark/top\_block.py”, line 148, in tb = top\_block() File “/home/rsharpe/wireshark/top\_block.py”, line 80, in **init** self.audio\_sink\_0 = audio.sink(48000, “”, True) File “/home/rsharpe/target/lib64/python2.7/site-packages/gnuradio/audio/audio\_swig.py”, line 122, in make return \_audio\_swig.sink\_make(\*args, \*\*kwargs) RuntimeError: audio\_alsa\_sink OOOOO

Does anyone know how to get around this?

–  
Regards,  
Richard Sharpe  
(何以解憂？唯有杜康。–曹操)

---

<div class="post-metadata">

**Author:** ![Richard\_Sharpe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@Richard\_Sharpe](https://www.ruby-forum.com/u/Richard_Sharpe)\
**Post date:** [September 7, 2014, 12:48am UTC](https://www.ruby-forum.com/t/alsa-device-or-resource-busy/231927/2 "2014-09-07T00:48:38Z")

</div>

On 09/06/2014 06:40 PM, Richard Sharpe wrote:

> ```
> tb = top_block()
> 
> ```

ALSA generally doesn’t share devices. Something else on your system (  
your browser, perhaps) has your sound device open.

–  
Marcus L.  
Principal Investigator  
Shirleys Bay Radio Astronomy Consortium

> **[Live Draw HK Tercepat | Result HK | HK Pools | Live HK | HK Prize Hari Ini](https://www.sbrac.org/)**
>
> Temukan live draw hk tercepat melalui halaman hk pools yang resmi dan dapatkan result hk prize melalui live hk secara langsung di situs kami.

---

<div class="post-metadata">

**Author:** ![Richard\_Sharpe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@Richard\_Sharpe](https://www.ruby-forum.com/u/Richard_Sharpe)\
**Post date:** [September 7, 2014, 12:59am UTC](https://www.ruby-forum.com/t/alsa-device-or-resource-busy/231927/3 "2014-09-07T00:59:43Z")

</div>

On Sat, Sep 6, 2014 at 6:47 PM, Marcus D. Leech [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > ## OOOOOOOOOOOOOOOOOOOOOOTraceback (most recent call last):
> 
> Principal Investigator  
> Shirleys Bay Radio Astronomy Consortium  
> [http://www.sbrac.org](http://www.sbrac.org)

If you can, try installing pulseaudio. Then use the device name “pulse”  
for  
the audio device. Pulse sits on top of ALSA (generally) and helps with  
distribution of the audio resources.

Tom

---

<div class="post-metadata">

**Author:** ![Richard\_Sharpe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@Richard\_Sharpe](https://www.ruby-forum.com/u/Richard_Sharpe)\
**Post date:** [September 7, 2014, 1:15am UTC](https://www.ruby-forum.com/t/alsa-device-or-resource-busy/231927/4 "2014-09-07T01:15:07Z")

</div>

On 09/06/2014 07:10 PM, Richard Sharpe wrote:

> On  
> The problem seems to have been that I was not in the audio group.
> 
> Now I get continuous overruns. Looks like I am running too much on  
> that laptop and will have to move to another machine.

Or your flow-graph isn’t properly constructed to send samples to the  
audio subsystem at the right rate.

–  
Marcus L.  
Principal Investigator  
Shirleys Bay Radio Astronomy Consortium

> **[Live Draw HK Tercepat | Result HK | HK Pools | Live HK | HK Prize Hari Ini](https://www.sbrac.org/)**
>
> Temukan live draw hk tercepat melalui halaman hk pools yang resmi dan dapatkan result hk prize melalui live hk secara langsung di situs kami.

---

<div class="post-metadata">

**Author:** ![Richard\_Sharpe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@Richard\_Sharpe](https://www.ruby-forum.com/u/Richard_Sharpe)\
**Post date:** [September 7, 2014, 1:11am UTC](https://www.ruby-forum.com/t/alsa-device-or-resource-busy/231927/5 "2014-09-07T01:11:26Z")

</div>

On Sat, Sep 6, 2014 at 3:47 PM, Marcus D. Leech [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > ## OOOOOOOOOOOOOOOOOOOOOOTraceback (most recent call last):
> > 
> > Does anyone know how to get around this?
> 
> ALSA generally doesn’t share devices. Something else on your system ( your  
> browser, perhaps) has your sound device open.

The problem seems to have been that I was not in the audio group.

Now I get continuous overruns. Looks like I am running too much on  
that laptop and will have to move to another machine.

–  
Regards,  
Richard Sharpe  
(何以解憂？唯有杜康。–曹操)

---

<div class="post-metadata">

**Author:** ![Richard\_Sharpe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@Richard\_Sharpe](https://www.ruby-forum.com/u/Richard_Sharpe)\
**Post date:** [September 7, 2014, 1:35am UTC](https://www.ruby-forum.com/t/alsa-device-or-resource-busy/231927/6 "2014-09-07T01:35:27Z")

</div>

On 09/06/2014 07:24 PM, Richard Sharpe wrote:

> Well, I have the sample rate set to 48k.

Just because you’ve asked the audio sink to set a rate of 48k, doesn’t  
mean the rest of the flow-graph agrees with that decision. It also  
doesn’t  
necessarily mean that the audio hardware supports a 48k rate  
(although, most do).

If you’re getting audio _overrun_ (as opposed to under-run), it  
generally means that you’re sending samples to the hardware faster than  
they  
can actually be processed by the hardware.

–  
Marcus L.  
Principal Investigator  
Shirleys Bay Radio Astronomy Consortium

> **[Live Draw HK Tercepat | Result HK | HK Pools | Live HK | HK Prize Hari Ini](https://www.sbrac.org/)**
>
> Temukan live draw hk tercepat melalui halaman hk pools yang resmi dan dapatkan result hk prize melalui live hk secara langsung di situs kami.

---

<div class="post-metadata">

**Author:** ![Richard\_Sharpe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@Richard\_Sharpe](https://www.ruby-forum.com/u/Richard_Sharpe)\
**Post date:** [September 7, 2014, 1:40am UTC](https://www.ruby-forum.com/t/alsa-device-or-resource-busy/231927/7 "2014-09-07T01:40:23Z")

</div>

On Sat, Sep 6, 2014 at 4:34 PM, Marcus D. Leech [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > > > that laptop and will have to move to another machine.  
> > > > most do).
> 
> If you’re getting audio _overrun_ (as opposed to under-run), it generally  
> means that you’re sending samples to the hardware faster than they  
> can actually be processed by the hardware.

I looked through the flow graph, which I had copied from Mike Ossman’s  
first lesson on using the HackRF One, and indeed I had a problem. I  
had the wrong value for the decimation field of the Rational  
Resampler.

I had also changed the sample rate because I thought that the sample  
rate was too high.

Once I fixed those, I got audio out.

Thanks for your help.

–  
Regards,  
Richard Sharpe  
(何以解憂？唯有杜康。–曹操)

---

<div class="post-metadata">

**Author:** ![Richard\_Sharpe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@Richard\_Sharpe](https://www.ruby-forum.com/u/Richard_Sharpe)\
**Post date:** [September 7, 2014, 1:25am UTC](https://www.ruby-forum.com/t/alsa-device-or-resource-busy/231927/8 "2014-09-07T01:25:36Z")

</div>

On Sat, Sep 6, 2014 at 4:13 PM, Marcus D. Leech [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> On 09/06/2014 07:10 PM, Richard Sharpe wrote:
> 
> > On  
> > The problem seems to have been that I was not in the audio group.
> > 
> > Now I get continuous overruns. Looks like I am running too much on  
> > that laptop and will have to move to another machine.
> 
> Or your flow-graph isn’t properly constructed to send samples to the audio  
> subsystem at the right rate.

Well, I have the sample rate set to 48k.

–  
Regards,  
Richard Sharpe  
(何以解憂？唯有杜康。–曹操)
