All of lore.kernel.org
 help / color / mirror / Atom feed
From: vishnu <vardhanraj4143@gmail.com>
To: Jaroslav Kysela <perex@perex.cz>
Cc: Muni Sekhar <munisekharrms@gmail.com>,
	alsa-devel <alsa-devel@alsa-project.org>,
	kernelnewbies <kernelnewbies@kernelnewbies.org>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-sound@vger.kernel.org
Subject: Re: USB-Audio: Device or resource busy (strace log)
Date: Wed, 11 Aug 2021 18:19:26 +0530	[thread overview]
Message-ID: <CACk2A5ZcrVTv4AVHdmRDh-xWkx=1BHi6SV8yYqX1Z2DzcDR8hA@mail.gmail.com> (raw)
In-Reply-To: <41bebccc-7940-8379-0108-047bd1cc92f9@perex.cz>


[-- Attachment #1.1: Type: text/plain, Size: 1366 bytes --]

can you paste output of
arecord -l (list of capture devices).
Which device you are using and os.
Does this instance is already open by default? like any video playing or
something like that?

Yes you can stop pulse audio and try..

On Wed, Aug 11, 2021 at 6:17 PM Jaroslav Kysela <perex@perex.cz> wrote:

> On 11. 08. 21 14:36, Muni Sekhar wrote:
> > Hi All,
> >
> > $ cat /proc/asound/cards
> >  0 [USB            ]: USB-Audio - Plantronics .Audio 628 USB
> >                       Plantronics Plantronics .Audio 628 USB at
> > usb-0000:00:14.0-2, full speed
> >
> > I am using a Plantronics USB Audio headset.
> >
> > $ arecord --device hw:0,0 --channels 2 --format S16_LE --rate 44100Hz
> x.wav
> > arecord: main:722: audio open error: Device or resource busy
> >
> >
> > 'arecord' command always fails the first time after system boot in my
> > system. But subsequent execution of the 'arecord' command runs fine.
> >
> >
> > I've attached the strace log for the "audio open error: Device or
> > resource busy" failure. Is there any fix available for this issue?
>
> You may check which other task blocks the PCM device:
>
>   lsof /dev/snd/pcmC0D0c
>
> I guess that it will be pulseaudio (device enumeration).
>
>                                         Jaroslav
>
> --
> Jaroslav Kysela <perex@perex.cz>
> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
>

[-- Attachment #1.2: Type: text/html, Size: 2208 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

WARNING: multiple messages have this Message-ID (diff)
From: vishnu <vardhanraj4143@gmail.com>
To: Jaroslav Kysela <perex@perex.cz>
Cc: Muni Sekhar <munisekharrms@gmail.com>,
	alsa-devel <alsa-devel@alsa-project.org>,
	kernelnewbies <kernelnewbies@kernelnewbies.org>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-sound@vger.kernel.org
Subject: Re: USB-Audio: Device or resource busy (strace log)
Date: Wed, 11 Aug 2021 18:19:26 +0530	[thread overview]
Message-ID: <CACk2A5ZcrVTv4AVHdmRDh-xWkx=1BHi6SV8yYqX1Z2DzcDR8hA@mail.gmail.com> (raw)
In-Reply-To: <41bebccc-7940-8379-0108-047bd1cc92f9@perex.cz>

can you paste output of
arecord -l (list of capture devices).
Which device you are using and os.
Does this instance is already open by default? like any video playing or
something like that?

Yes you can stop pulse audio and try..

On Wed, Aug 11, 2021 at 6:17 PM Jaroslav Kysela <perex@perex.cz> wrote:

> On 11. 08. 21 14:36, Muni Sekhar wrote:
> > Hi All,
> >
> > $ cat /proc/asound/cards
> >  0 [USB            ]: USB-Audio - Plantronics .Audio 628 USB
> >                       Plantronics Plantronics .Audio 628 USB at
> > usb-0000:00:14.0-2, full speed
> >
> > I am using a Plantronics USB Audio headset.
> >
> > $ arecord --device hw:0,0 --channels 2 --format S16_LE --rate 44100Hz
> x.wav
> > arecord: main:722: audio open error: Device or resource busy
> >
> >
> > 'arecord' command always fails the first time after system boot in my
> > system. But subsequent execution of the 'arecord' command runs fine.
> >
> >
> > I've attached the strace log for the "audio open error: Device or
> > resource busy" failure. Is there any fix available for this issue?
>
> You may check which other task blocks the PCM device:
>
>   lsof /dev/snd/pcmC0D0c
>
> I guess that it will be pulseaudio (device enumeration).
>
>                                         Jaroslav
>
> --
> Jaroslav Kysela <perex@perex.cz>
> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
>

  reply	other threads:[~2021-08-12 16:31 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-11 12:36 USB-Audio: Device or resource busy (strace log) Muni Sekhar
2021-08-11 12:48 ` Muni Sekhar
2021-08-11 12:36 ` Muni Sekhar
2021-08-11 12:43 ` vishnu
2021-08-11 12:43   ` vishnu
2021-08-11 12:46 ` Jaroslav Kysela
2021-08-11 12:46   ` Jaroslav Kysela
2021-08-11 12:46   ` Jaroslav Kysela
2021-08-11 12:49   ` vishnu [this message]
2021-08-11 12:49     ` vishnu
2021-08-11 13:18     ` Muni Sekhar
2021-08-11 13:30       ` Muni Sekhar
2021-08-11 13:18       ` Muni Sekhar
2021-08-11 13:18       ` Muni Sekhar
2021-08-13 16:29       ` Muni Sekhar
2021-08-13 16:41         ` Muni Sekhar
2021-08-13 16:29         ` Muni Sekhar
2021-08-13 16:29         ` Muni Sekhar
2021-08-13 17:06         ` vishnu
2021-08-13 17:06           ` vishnu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACk2A5ZcrVTv4AVHdmRDh-xWkx=1BHi6SV8yYqX1Z2DzcDR8hA@mail.gmail.com' \
    --to=vardhanraj4143@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=kernelnewbies@kernelnewbies.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=munisekharrms@gmail.com \
    --cc=perex@perex.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.