From patchwork Wed Jan 15 06:45:33 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?6IOh6L+e5Yuk?= X-Patchwork-Id: 13939884 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sg2apc01on2056.outbound.protection.outlook.com [40.107.215.56]) (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 40B885223; Wed, 15 Jan 2025 06:45:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.215.56 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736923540; cv=fail; b=kNKcaam+D30gX6z2rzvtxpPanRHYacWFeNfCk8HVFFe07dJM4gwcv5YNoe/CguguYa/5qeST8vshsz3DM1Blup2bc71PRdPp0/Eyvp5TQR8ytvQr2zLXV/EVNJMpDFfCSiNI28uL5t92ycIua201y8iTuh79jL6toPKaO4BZT0s= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736923540; c=relaxed/simple; bh=qFlPMy2DndVgrI1qcE88GO924g+PCx7jkXpjqFTwcaA=; h=From:To:CC:Subject:Date:Message-ID:Content-Type:MIME-Version; b=XR+0a8TBpYAo3G3J1Ee3/dpK6j8dQ7WO/NKtmT0+bG6p9wh2IZPaLAL83gKY7ucZki6jeRpyfU+yHpmo639fBYSu0R7VarktJX3XXYGGKr7UTrjobx4f6YKNJYQ0q/R5lDUlWEcWc36fQPeazIZNV50kwTm8xY4P2tEBhbEFcOE= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com; spf=pass smtp.mailfrom=vivo.com; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b=AggI5xkk; arc=fail smtp.client-ip=40.107.215.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=vivo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b="AggI5xkk" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=S4N9HVK9eDwKnQDgHFx7UMSSvCXZPMT/rFZD3W4Hv0lwr5mLkKUYwAAtHfoKpGot6l1UVEl5rbHN/13hkk4tar4+WT9mCSXRrS+9hLoXNuidlZod9cwFuZm0neL1VnAd0Q3CnPa9Q8VFTNc9A18B43mHtSHAcGa6jUjv6GBFGPOxsbIz1GiYsGfClJAYrphteCavKByfA1VMJlW0E48rgJy7NCi6yh5Wj1wTozNg1Enoqrf3gzI67cT8/HrYBvn/a/be0xMte6Nj6z2gnBPtyzpGGI9WYlaWTdlFxzlf+2Dq/2Et0Vyo1og/+iQWdewJTxUWT+NodSi8pfeCB9UhPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qFlPMy2DndVgrI1qcE88GO924g+PCx7jkXpjqFTwcaA=; b=UVguC1zXkt4Imtt7s0FIZlHwuDWzby1p+GDouHQQPezITAESDpH9aVIovIfQ1m4GPzr0tK2bxDzDWN1IV7DZnopyhuRwvdC1DjJWlnmQOb1I7PspBCGI+osRReLh6nyrrRQIf0wsNAdUIRQ4JA5TnzhjkV2pbmUqnvkKahybpTXuOe0bfjGlcS2JlKG5ZD11frkft3i5Tf4mCpWjxcMNAc9lXrgmXqWkVC/yJEGu5pX0++ypy/AL0/X05AnHFiHgjKr9mPc9/yCyKykFw6Ry3t/5LD2p9D2gVuzkxS1JhwVs4TbfHWP3UgDFZQ/iZ65mpKgUbFDw4EvvPRFyLCNLsg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qFlPMy2DndVgrI1qcE88GO924g+PCx7jkXpjqFTwcaA=; b=AggI5xkkrSVBk+TmTY59Bar2mjMclHSkILbRF2rr+/b3CMGk1MnoqsA9L/ooFr1vltVg7jB9vwOMyX4Cbe+wKG6y+/IL6kv460QAGwQsHdr0KZ5lGvA/lY4Ifh1bcgZpPRkdrpxtKThE7/xcRMw5KSanzRCcLTLEtNCCJnIPZZxNHiJPyG09zHA1081lqRZMXNAVpX1FzlutytY2NX9a6rdijvNfQF0wBv6xqE9ky9SC5kdDTskGJ4wczSWgLUL6wImoRXSsSG6oRAezgKDxrwS+zmEy6Qwo6s8ah8VIAqL+0pbMNsd/S/bvRZGt1X9IemRCHpZnEbJC95l68wcdeQ== Received: from TYUPR06MB6217.apcprd06.prod.outlook.com (2603:1096:400:358::7) by SEYPR06MB6453.apcprd06.prod.outlook.com (2603:1096:101:178::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.12; Wed, 15 Jan 2025 06:45:33 +0000 Received: from TYUPR06MB6217.apcprd06.prod.outlook.com ([fe80::c18d:f7c6:7590:64fe]) by TYUPR06MB6217.apcprd06.prod.outlook.com ([fe80::c18d:f7c6:7590:64fe%7]) with mapi id 15.20.8356.009; Wed, 15 Jan 2025 06:45:33 +0000 From: =?eucgb2312_cn?b?uvrBrMfa?= To: "perex@perex.cz" , "tiwai@suse.com" , "lina@asahilina.net" , "mbarriolinares@gmail.com" , "wangdicheng@kylinos.cn" , "cyan.vtb@gmail.com" , "dan.carpenter@linaro.org" , "bsevens@google.com" CC: "linux-sound@vger.kernel.org" , "linux-kernel@vger.kernel.org" , =?eucgb2312_cn?b?uvrBrMfa?= Subject: [PATCH] ALSA: usb-audio: Add delay quirk for USB Audio Device Thread-Topic: [PATCH] ALSA: usb-audio: Add delay quirk for USB Audio Device Thread-Index: AdtnFv8z0lRZHPtzSmuJqDN3ZgXhGg== Date: Wed, 15 Jan 2025 06:45:33 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TYUPR06MB6217:EE_|SEYPR06MB6453:EE_ x-ms-office365-filtering-correlation-id: 6b6f9f3d-fc29-452d-506a-08dd353035c2 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|1800799024|7416014|376014|38070700018; x-microsoft-antispam-message-info: =?eucgb2312_cn?b?dEl0bm4xczdoNkVmbEJtZis1bGs3?= =?eucgb2312_cn?b?VmRPWFNsSDRpUWVrZlJsbEczZnhQSGpsb2RqWUhFU01RaEUzbHkzVVRqWUtKTnZV?= =?eucgb2312_cn?b?bTVrSkx5Mk1kUEVvblZxRFJjNVM0aXZTU3NPRUt2TENMcHpLVUVucDN4Y1RiWUdB?= =?eucgb2312_cn?b?d0ZFeDUzZHFTS1FabXNnT1FjMXlTRDdZVmFJbWxKbFVlNTVTM0Y3NzY5a2pDYXEy?= =?eucgb2312_cn?b?a2REeWN5MytZWlhSTUJaS0FlOUkvR0xZV3BRQkxhaEExdnhzQ2loc2ZFREVpSzVM?= =?eucgb2312_cn?b?MnNBNGRZdXo4YzhrUVh1SGVkSHAzYTNJcTlEb0lGQ001VzF2dWRYclhZcFlEdXd5?= =?eucgb2312_cn?b?TkMwRHVBN2tSWEtLa0pFNHc4TWlTVEJRM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QjVJRjR0bFcxRTdIM2ZLRk1jSFp5?= =?eucgb2312_cn?b?S1YrMVBLTUo4d0F5WTlvQmJSZzdnalE4SkR4ckpkZS9ZVXQybjdqRTNsUjREemVY?= =?eucgb2312_cn?b?SWdxaXNiT1lzTlRJV0hpVDROZVJZNEVDRDNWc045aWlHOXdzZ0lvM0puRlVFSlhw?= =?eucgb2312_cn?b?K3VvS0hqZzRVWUVwMVVqckFEUGFHTXNQZ0VUZ011L3VsSEVpV0Q4OU0vSmh1K28r?= =?eucgb2312_cn?b?YlNnVlFsYTA0TmR4UzQ0dVZWSFo2RDRseUZOZ3RqSjlhUnZCbStUc1FiamhvdWZW?= =?eucgb2312_cn?b?VWptTzNDUFo0bVFOUHF2VDZFUHRMYXB0SXFPMnVKUk9CUTdjSGoybUFTdlIzMStQ?= =?eucgb2312_cn?b?aXkwNlVFbHZUTWtTTTFrRllwM0RLNWhhTUgzT2ZlN3JqR1VTNEhSbWlxZVRTWVow?= =?eucgb2312_cn?b?T3BrTU5jTHdoRGU0VDFMakhMRjl3OXAvOVF3YllCNXdpVThuRFFRRXpwNXhKeTBL?= =?eucgb2312_cn?b?WjFneXI1NCs0T3pMd0JjY24yR0JPTmIzSHF1T1dJZjRzbEJQZ09qbE94cGJlT1pF?= =?eucgb2312_cn?b?aFhCNUwzNDcwSEVjS3NmM2g5ei9BdTRRNUZBR1pVeEhTYnVHQWJVUWNSRW1KZFFP?= =?eucgb2312_cn?b?L0t5dkdFa2dabkRQRmcrdmRkZnFGRHVnYzN2dGh0RXdCM0R0ZWxzYnZlTVp4UUhl?= =?eucgb2312_cn?b?YzZWem1vQjF5N3lacnVtTnptNTVGS251S3FuUGIvN3lsd09VcythUllNQy9SYkhw?= =?eucgb2312_cn?b?aDh5c1JWTlA3Rjk=?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:zh-cn;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYUPR06MB6217.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(7416014)(376014)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?eucgb2312_cn?b?SkxQZi9JZFd3UXhvaDVDeHRz?= =?eucgb2312_cn?b?d3dMWFViczhjZUt5RWl2QmlLUllPbG5ZUGhETEFlU0dTdGJHREp6R3F1NmVRNFlL?= =?eucgb2312_cn?b?V2wwa2pFZmZiWW5Ta2VHVU92Y0pDSmtLeDRFUmp2d3Q1NURIdWFZY3oySnhzUzlS?= =?eucgb2312_cn?b?NTI5bWIwbFh6ajlXUm5WaVpXRkdOTjcxdWJzYmtLeWU0Smxxb3RSOHdTb2Z4WG1y?= =?eucgb2312_cn?b?VTlrRkpicVNIbUJzZ3dWMzVmQ1dsZUU0ZjFDSDE4eWk2QVFyc2pQc1N4dGV4QUxn?= =?eucgb2312_cn?b?ZkFXS0tiSldML0Y0a1JsdEZMVkc2Wm5CMDRTa05QdHJCRGY3cUxpUVVLblFqMFlt?= =?eucgb2312_cn?b?M0dRQTJiZGxHT1dFYTNoV0wzRVh3Z2IwNHlwTkZKb3V1MUt6b2duaEVNTys2dVRM?= =?eucgb2312_cn?b?ZUxnK3JSamFVdFlVYnZnek5IdmhOZWNoNjdDV3RmOU5vamNRQnR0ZEZKNml2TDc5?= =?eucgb2312_cn?b?U3BGVjRSUEVuSlI0emk0TzFGMnJWTWtFejhwcTd5UnB6aUdXRWljcWFwWGQwVTJU?= =?eucgb2312_cn?b?ZzlJV3ZoQjFQVDBzOElURXBLaFFJbjFHa21OYTNRWE1UUmhpNkt1MXpBc0JpZksr?= =?eucgb2312_cn?b?czgrS3ZEZDdzUUtQMkdMT3RndVl3bTNnVHZHYis4bWlKb1Q3bXFyVDFMTXdBRUR4?= =?eucgb2312_cn?b?aHhYd1hGUU5rQStxbk9xQVBIbWtPN0krUndNbTZSY0VidEJXVmpGelNFaDhFMWk3?= =?eucgb2312_cn?b?VnlXeWZ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UZ3MWxFejRqWTk0TXU1MDFCaHpERzB3K3hwTDFI?= =?eucgb2312_cn?b?MERQWUxvSHlPQ1ZsdTRCN05WbGRzM3JKM3dFcDlndnBJUlhMVHhJOGhlU1A1eEs1?= =?eucgb2312_cn?b?SENIZ0ZjaU04RGVKak5YYzFOTUUzQWxjWVh3TXVpTkxjejZqOFVnWmw1cm5QbkNv?= =?eucgb2312_cn?b?aXZZOTlGWkcvOWU1b3VUREVkbDgrNE9GSW9jZkR2VHZqUjZHUlNDSXcyNkZTdDY4?= =?eucgb2312_cn?b?TVg3RkVVRXA1bUlYY3RGN3p6VFJyTEFycDE3dWRkaTAydVp5V0xxajJMakZybkcy?= =?eucgb2312_cn?b?UHkvTXhmVXMvZmxhWWRSMkg4cXBIeW1HMUh3dXZ4WVNBdFd0Uk05T0NwTkNUMlpx?= =?eucgb2312_cn?b?akhKTnhkb2hvZjRRdVV1UVV6NVpaTkZMenh4QkEzWXNVMDQ5YmJYTG1qc2xGcjZl?= =?eucgb2312_cn?b?MzJGTmxtNFI2S1MrcjZmU0FIRkdYQWN4VzVWbTVNYWJrWVlrbm51RTdPUjFndWN2?= =?eucgb2312_cn?b?a2hLRnNweDVqVHVYbCtaRFJydzVibGlwWT0=?= Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYUPR06MB6217.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6b6f9f3d-fc29-452d-506a-08dd353035c2 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jan 2025 06:45:33.2902 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 5/DI958c399ZpB8iZpW7j+Mf+hWDJq9eF/1WZ1/pdtdeXcu5WLnoclBgaA6UBxTJYfuZK7YUue8Pbhozjb68HQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6453 From: Lianqin Hu Audio control requests that sets sampling frequency sometimes fail on this card. Adding delay between control messages eliminates that problem. Signed-off-by: Lianqin Hu --- sound/usb/quirks.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c index 8ba0aff8be2e..7968d6a2f592 100644 --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -2239,6 +2239,8 @@ static const struct usb_audio_quirk_flags_table quirk_flags_table[] = { QUIRK_FLAG_CTL_MSG_DELAY_1M), DEVICE_FLG(0x0c45, 0x6340, /* Sonix HD USB Camera */ QUIRK_FLAG_GET_SAMPLE_RATE), + DEVICE_FLG(0x0d8c, 0x0014, /* USB Audio Device */ + QUIRK_FLAG_CTL_MSG_DELAY_1M), DEVICE_FLG(0x0ecb, 0x205c, /* JBL Quantum610 Wireless */ QUIRK_FLAG_FIXED_RATE), DEVICE_FLG(0x0ecb, 0x2069, /* JBL Quantum810 Wireless */