alsasrc ...is busy

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

alsasrc ...is busy

Carl Karsten-2
alsasrc device=hw:0,0 ... Device 'hw:0,0' is busy -
how do I un-busy it?

I'm sure that involves discovering what has it locked.

here is the pipeline:

      v4l2src device=/dev/hdmi2usb/by-num/all0/video name=videosrc !
                queue max-size-time=4000000000 !
        image/jpeg,width=1280,height=720 !
                jpegdec !
                
                videoconvert !
                videoscale !
                videorate !
            video/x-raw,format=I420,width=1280,height=720,framerate=30/1,pixel-aspect-ratio=1/1!
     mux.
    
                alsasrc device=hw:0,0 provide-clock=false slave-method=re-timestamp name=audiosrc !
                queue max-size-time=4000000000 ! audiorate !
                audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=48000!
     mux.
            matroskamux name=mux !
    tcpclientsink host=192.168.1.118 port=10001
    
obtained NetClientClock from host: 192.168.1.118:9998
waiting for NetClientClock to sync...
synced with NetClientClock.
starting pipeline...
playing...
Received Error-Signal
Error-Details: #4: gstalsasrc.c(743): gst_alsasrc_open (): /GstPipeline:pipeline0/GstAlsaSrc:audiosrc:
Device 'hw:0,0' is busy
--
Carl K

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: alsasrc ...is busy

Pavel Hofman
Dne 10. 04. 19 v 7:54 Carl Karsten napsal(a):
> alsasrc device=hw:0,0 ... Device 'hw:0,0' is busy -
> how do I un-busy it?
>
> I'm sure that involves discovering what has it locked.
>

This command lists processes using your sound devices:

sudo lsof /dev/snd/*

Most typically pulseaudio, IME.

Best regards,

Pavel.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: alsasrc ...is busy

Carl Karsten-2


On Wed, Apr 10, 2019 at 1:07 AM Pavel Hofman <[hidden email]> wrote:
Dne 10. 04. 19 v 7:54 Carl Karsten napsal(a):
> alsasrc device=hw:0,0 ... Device 'hw:0,0' is busy -
> how do I un-busy it?
>
> I'm sure that involves discovering what has it locked.
>

This command lists processes using your sound devices:

sudo lsof /dev/snd/*

Most typically pulseaudio, IME.


yep - thanks. 

juser@odroid3:/usr/local/bin$ sudo lsof /dev/snd/*
COMMAND   PID  USER   FD   TYPE DEVICE SIZE/OFF  NODE NAME
pulseaudi 666 juser   21u   CHR 116,32      0t0 10590 /dev/snd/controlC1
pulseaudi 666 juser   27u   CHR 116,32      0t0 10590 /dev/snd/controlC1
pulseaudi 666 juser   33u   CHR  116,0      0t0  1217 /dev/snd/controlC0
pulseaudi 666 juser   40u   CHR  116,0      0t0  1217 /dev/snd/controlC0


 
Best regards,

Pavel.


--
Carl K

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: alsasrc ...is busy

Pavel Hofman

Dne 10. 04. 19 v 15:18 Carl Karsten napsal(a):

>
>
> On Wed, Apr 10, 2019 at 1:07 AM Pavel Hofman <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Dne 10. 04. 19 v 7:54 Carl Karsten napsal(a):
>      > alsasrc device=hw:0,0 ... Device 'hw:0,0' is busy -
>      > how do I un-busy it?
>      >
>      > I'm sure that involves discovering what has it locked.
>      >
>
>     This command lists processes using your sound devices:
>
>     sudo lsof /dev/snd/*
>
>     Most typically pulseaudio, IME.
>
>
> yep - thanks.
>
> juser@odroid3:/usr/local/bin$ sudo lsof /dev/snd/*
> COMMAND   PID  USER   FD   TYPE DEVICE SIZE/OFF  NODE NAME
> pulseaudi 666 juser   21u   CHR 116,32      0t0 10590 /dev/snd/controlC1
> pulseaudi 666 juser   27u   CHR 116,32      0t0 10590 /dev/snd/controlC1
> pulseaudi 666 juser   33u   CHR  116,0      0t0  1217 /dev/snd/controlC0
> pulseaudi 666 juser   40u   CHR  116,0      0t0  1217 /dev/snd/controlC0

Very typical view :-)

You can set any soundcard to Off/disabled in PA control panel (e.g.
pavucontrol). PA will not touch it anymore. Very handy when working on a
regular workstation where PA has its merit - typically running the
onboard soundcard via PA, while an external quality soundcard via alsa
directly.

Regards,

Pavel.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel