Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4420251pxt; Wed, 11 Aug 2021 05:48:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEqjwwNSVMTefHQwi+mrEbl0klcZc47mWgQi1vi9xbjvVaYF3hCDUL+W78ZFjosqGGj1+x X-Received: by 2002:a05:6402:31ed:: with SMTP id dy13mr11116474edb.179.1628686121176; Wed, 11 Aug 2021 05:48:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628686121; cv=none; d=google.com; s=arc-20160816; b=w+Ye9AqGWGDUgW6z56zhH/L1JJXT05WrfbxgmU0JPJbdpJyXOtDHhF7xGKBimAN9U/ yQf/l7GP/zG5iGRpLCZsiKTEzZgGhwJZzExW1sE0LFYPNDS2KP46HyTEYUYiTqdAXwvZ gGB6fBnV9ydTE5dSJWWzS8qWUtZXMwD8bTQWSw0/xH6WUbPm9n32wNvYqLxL+JlsMfxQ HlczQLoAXIubsn8932VUu3BjeeXepGiaD7yMlwgu1EtAlUIYDWx994w02Sb6JOT7rb1B URM/fYhr9fZBjDz5Aowg9uTU6CtPW/vupk2qioaK4e+cvvr51QI1asZH84D48bencVus G5WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature:dkim-filter; bh=QXZXgljJCtdu7MBw+Qb9Nfz9/Rx2MXlzqn/ktvGvLiQ=; b=X1L+cY3kjTMFp1SzSZaVh3xRL/7jc8F0EJr8aRVNb1jS0Nj2sxQkGW+CNgWJ7XUdgE hounE2oNj36YYtL/wKgksBfRv+zjP1Q18/rJUcTSSI+3qSkUilX5ygsesEGyUStkNRN9 hfOqMNJbTkp0yVRhUVSkrYimT9I3O2hi4g8jDP4w6Qw74P2NEMVEn6C/8XeGu63asWn4 9TX2ys/CK7iwWUuWE910zchMEIzBMnD0Cd3NPF9WEYz7j5bzKxRZIvyprVf7d26Y4qxO 5FcS53TiwF98smmFwUZyb2SWP9eIz/EAj+wW/Gnk72X9L7WTI66Jic4I5r4hpL+bz/G0 pjEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@perex.cz header.s=default header.b=wjTLgYX6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=perex.cz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n15si23732966ejd.124.2021.08.11.05.48.17; Wed, 11 Aug 2021 05:48:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@perex.cz header.s=default header.b=wjTLgYX6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=perex.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229979AbhHKMqz (ORCPT + 99 others); Wed, 11 Aug 2021 08:46:55 -0400 Received: from mail1.perex.cz ([77.48.224.245]:59286 "EHLO mail1.perex.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229794AbhHKMqy (ORCPT ); Wed, 11 Aug 2021 08:46:54 -0400 Received: from mail1.perex.cz (localhost [127.0.0.1]) by smtp1.perex.cz (Perex's E-mail Delivery System) with ESMTP id 0C0D7A003F; Wed, 11 Aug 2021 14:46:27 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.perex.cz 0C0D7A003F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=perex.cz; s=default; t=1628685987; bh=QXZXgljJCtdu7MBw+Qb9Nfz9/Rx2MXlzqn/ktvGvLiQ=; h=Subject:To:References:From:Date:In-Reply-To:From; b=wjTLgYX6bmNoLoLnZf78Uz9yjiBaMYm7mn4usY8QEGYxtqfHZNaWk5xXcyX5XRgo0 dQTTdVOrsLxxg60JGtUjYKMUphIZfLCafF7id8r++9NC00OclJAFndtgkPj8AhsW61 Jz2D8EvntPO9Q/2upjFAufkBxFb31YCUi+mf3CDA= Received: from p1gen2.localdomain (unknown [192.168.100.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: perex) by mail1.perex.cz (Perex's E-mail Delivery System) with ESMTPSA; Wed, 11 Aug 2021 14:46:20 +0200 (CEST) Subject: Re: USB-Audio: Device or resource busy (strace log) To: Muni Sekhar , alsa-devel , linux-usb@vger.kernel.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, kernelnewbies References: From: Jaroslav Kysela Message-ID: <41bebccc-7940-8379-0108-047bd1cc92f9@perex.cz> Date: Wed, 11 Aug 2021 14:46:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Linux Sound Maintainer; ALSA Project; Red Hat, Inc.