Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp818994lqo; Wed, 8 May 2024 16:40:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVSs8387eGRnRiBMAVTyJt/dizEWxDG48m4SE//ob7To+c0YLQ+Id1ykNu2q/4wU26wWVYMenE9vRpFXnT6G3w+BgUkVV1Rl4vvOxNIyQ== X-Google-Smtp-Source: AGHT+IFh8v28WBf5tSbsWBlp7f0fLZp53L07ZhMkjVtactFV4ti7HZpWJgUWQHgo0f9mC7+Llwhl X-Received: by 2002:a17:906:408a:b0:a59:dba0:1544 with SMTP id a640c23a62f3a-a5a117934famr82136866b.31.1715211653818; Wed, 08 May 2024 16:40:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715211653; cv=pass; d=google.com; s=arc-20160816; b=DRRQMjfnBMSRZ3waI5rRQvJFiEfm3gcPaBHN+Q8RcQjj37zLFQIzb+mK+csL/sSVDG bGcUFowN4KbZBmWG+6iib8/5VF2X6NhawDBoqLGi2hHNGTiTcuPxprvh17qUVSjZ4hew LPTZRBSfJihQnJ3/0Upm7y1+pLycufEW/jGvacyfjC1FrxU5qNsAaun9qDPL0ti6OKPW o/RLifsp4xVkZcLljIdbLVsD3gn0ZkByYOlH2v9QcNOCWzne/Sw1u00FMOoGm3Hy2G69 8BMKJERJRnFocKqK9vZHQIw1q76Ci8wy57+yc+omahMnC6YEvUXUqXwYHt7y2/savTNx QWPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=9HgzBBw6z3F0SqH/OB4mEKC34o1ooj2L1DEYGdkaaEU=; fh=iRZivtppW/TNTAfzyCFB4Ao7jKoLfwnwVSfzppsNZsY=; b=v8UKnbunzclKaqU9hmTmwYLAzzWPxL5IhbN0VN2BG2bngEJjydS4e9qR3656sFuWTo eOzPuHBInDhotjnKy5kBIW5R6yrJ6kvL/wkNjU8NAZ/MEUo6TwQfnfeq6Iau++mm9Sfp zBiP/cXRcLvGrcQbHiTJxPEH2NEMosnRYwbeGx5gq1JS4I2Qten1ScFII+SeKuoHSv/t SJkkkUmxiHbcnNx8hSPZZKW1i8S0Gc8zl3zJoZdnAwPMYi3ry5FFLWlF/40ugrNbhQX5 SEMilwlLv/DV1aSrvY7UZkys74J+20YAeOv/fxZN9CGzI4hyrTephlTUXU9BK64IEd2u 6yJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=fDsVxjMN; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-173935-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173935-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17c2c291si13283066b.954.2024.05.08.16.40.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 16:40:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173935-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=fDsVxjMN; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-173935-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173935-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8C03B1F22389 for ; Wed, 8 May 2024 23:40:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 601E2133425; Wed, 8 May 2024 23:40:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="fDsVxjMN" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18D4D1E89A; Wed, 8 May 2024 23:40:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715211642; cv=none; b=VrauKH+dr+5AXv7AOqQyFIb6iKUPru8sFSdx/HlJO4xwhw5eEes2BTJIEscso7VKOZxN7U+nSqgYyX+BMolg71uspCUG8J/dH4ptVWue/EVAd6rkbOYtT2FfdRb/zSVSAX871eXl2Nq8sgqTCWJ4Jh/stsqX63TBnxxujcm0oUA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715211642; c=relaxed/simple; bh=XHxrjqFEAkxk0OlBRxqEri56L1j3vEZ5UCKWMemhFoY=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=qvuUvGfF6rxiUI0hBcqoiiQDjjq/i4oS8EIPfo4/tri/kAvORUC5osshK7Cjm3V4dCZScMhCrJaIjUyeSoCRhK6XE7ImA5Sc0i6rFusinLySpttVZTBVsLV8DE59ake2I/SuVWYcqMuZYQ1uU/p6sjfuHKiN6dECBlZEUlgYbdA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=fDsVxjMN; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 448NBoxd006086; Wed, 8 May 2024 23:40:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=9HgzBBw6z3F0SqH/OB4mEKC34o1ooj2L1DEYGdkaaEU=; b=fD sVxjMNSuHybRUy6+brZOY1gM/KUZi8j+dfZjeMB62qyunphXs9n9ILxQeBL15v5L r1XLpLcZF6uQFiSF0+vdlPv6cvUuQNcF+oSx+CebdN+Wg3KRC37iYzZR8azTgBf4 SjrUO5gBhDA9unGeALeg/cf/fqJucuY3vSXVJ7Qbsx8PrwZkIBobscb8943LKgwH Y6x+lSGwvlNMMoLQWz5d5q8KMNnYwJXjbAjgc1+34eFSDdD65oKsc9CrlLqH5TO4 sD9TwBoEXXIwHKuUjullzRUdvzLnvWhaRe9+3dhGhhpfXf5eqPfH3dRgxZfrnsS9 /rmUkhgl2GxPcpnKLAnw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3y07u8sjhw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 May 2024 23:40:21 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 448NeKHf008061 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 8 May 2024 23:40:20 GMT Received: from [10.110.126.205] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Wed, 8 May 2024 16:40:19 -0700 Message-ID: <066fe096-a9d3-2498-275d-185f709e9a02@quicinc.com> Date: Wed, 8 May 2024 16:40:19 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v21 22/39] ALSA: usb-audio: Prevent starting of audio stream if in use Content-Language: en-US To: Pierre-Louis Bossart , , , , , , , , , , , , , , , , CC: , , , , , , References: <20240507195116.9464-1-quic_wcheng@quicinc.com> <20240507195116.9464-23-quic_wcheng@quicinc.com> <1e98935e-e35a-49e0-bbbf-ff326d40b581@linux.intel.com> From: Wesley Cheng In-Reply-To: <1e98935e-e35a-49e0-bbbf-ff326d40b581@linux.intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: mvZrtfZJK2u-V9ExiU9H9B2lUv-rtHBK X-Proofpoint-ORIG-GUID: mvZrtfZJK2u-V9ExiU9H9B2lUv-rtHBK X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-08_09,2024-05-08_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=821 adultscore=0 phishscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 priorityscore=1501 malwarescore=0 mlxscore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405080177 Hi Pierre, On 5/7/2024 2:20 PM, Pierre-Louis Bossart wrote: > >> If a PCM device is already in use, the check will return an error to >> userspace notifying that the stream is currently busy. This ensures that >> only one path is using the USB substream. > > What was the point of having a "USB Mixer" then? The USB mixer is intended to enable/route the USB offloading path to the audio DSP, and is for controlling the ASoC specific entities. This change is needed to resolve any contention between the USB SND PCM device (non offload path) and the ASoC USB BE DAI (offload path). Thanks Wesley Cheng