From patchwork Wed Sep 25 03:16:29 2024 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: 13811573 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2047.outbound.protection.outlook.com [40.107.215.47]) (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 A370C1B85EC; Wed, 25 Sep 2024 03:16:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.215.47 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727234196; cv=fail; b=p2Wl6AAYloheRh6SmQ0EyhA6ND1CJi0PKVaKd1UqpgzjCZIchItsLZnJIXJjo9myyO+jJVyFAjjVSi3y1sfuF696i8wJW4EmGc010vdCxPim6L8B64NCfNe0ROOGJEeR8OLD4QTlHsjBbUtYYKXeM5Bm2gLCUjAqSjjBWWkFW7E= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727234196; c=relaxed/simple; bh=1G7DatTAi+/a4pROanNqE7Yxbu6UySyP76dYSyy/aos=; h=From:To:CC:Subject:Date:Message-ID:Content-Type:MIME-Version; b=sMyTpoo5GX2MFFJ6pSNuQPpoHBB6UBPp99WWFlcj2fQ53r+J3jyhExNAU9e7cjk65Y+q5cvHhSr7jxWQqDggQ1UGe2t6Mzav93hTk2o/8PpMc7nQS9r8C92H7ZiOaKo3o6aVxMWi/ZIJhrCdlxE2Sn3xUG0AHB7t9ZK5ccSt5cM= 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=MGQRfQwW; arc=fail smtp.client-ip=40.107.215.47 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="MGQRfQwW" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xHWRaUWHpNrQ+Zm8h/GV4Q3DZRPOWKNVBwx/ct2Ien9zOY9LawrHwK6DkWedomQdAiEqZXELwQejXjWf+i2fSE2m3D8ZZfy0suxMQuDRBwewxZBExTXRL8JUR1NaNe+L7k+3ZrrIP0Nd3EoJcRWS3DQAqpJhPivZlODK579cZQDvdMjeZQ9hgMzO8cTaM9Iu3+AxrFjk5AqeBSK4+UkbNe4FEcCQaydFOZ0eNEO8dCenMMyrzQFUbUYjFlBjtXcI1nk6TNmVf9odARTNDFTqkQKP+xz2Jh3GEYqniwlTw6Ie4MmG2HQ6at5S7Nzjh52qxpKxI5PgsbV2enjL+EUyVw== 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=1G7DatTAi+/a4pROanNqE7Yxbu6UySyP76dYSyy/aos=; b=MzOaKd2JOGyzT0V9or522z3CDOF3VM+C2tdH7TL0JkNRYad4oq9vWzj0tneQ7i5VV0ocWoSsqMmxK0xr35P/orlzHxMjb6BGOyRZ0qow6zfERSx68QzHKUCZOGLQXqbori1HUbskxZpqVMQ7Hjb0J0m5fEwfw1nnCPfkZav3S+fbvipC5TMk9YKrWq6hFhwdvloTa4Xv3gP+4Bayp/Bn0NBAnCIlEiL1VSatV+a/uNuHr2tV8i46+AOuWPRVfiM78p+6UsBkZU+FY6CWxTzqZ6Y6j3cVBpzcTVEKqFr1wA9LpO8HXavPkr9u2wfzPGllRK26U0cE2DPplYOA4fK5cw== 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=1G7DatTAi+/a4pROanNqE7Yxbu6UySyP76dYSyy/aos=; b=MGQRfQwWOMwtiGnOkhwfE15lDNRaWRWeFi//vS/9qFAYjAJlvdw349qrN+XktgQbLgjIxIAdazBaR2Gu4MOfJgIlLoArpR+J6rqEB7LR4akk3qq0kn3s42Ee0Lks6oMB/biP91UpMhZ/rF1skvKzBG+6T7G0jjQVK5FSMDhPU44i5GNYMWP9KLBk23YrMSgDguOV/zgMD9gGyOCuXYTICZRLk12smDkvmSof4Tqvq7q1eI2s7WOJy5tNyJYJB8EToP1OlXor4Uiai77IVGPbR0EXwZExpty4LlJZ3l4ujEyDbIuYyPmil3eyUhKuF7oBSoxV8RZvr0wI7JVceUo1KQ== Received: from TYUPR06MB6217.apcprd06.prod.outlook.com (2603:1096:400:358::7) by KL1PR06MB6260.apcprd06.prod.outlook.com (2603:1096:820:d7::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.27; Wed, 25 Sep 2024 03:16:29 +0000 Received: from TYUPR06MB6217.apcprd06.prod.outlook.com ([fe80::c18d:f7c6:7590:64fe]) by TYUPR06MB6217.apcprd06.prod.outlook.com ([fe80::c18d:f7c6:7590:64fe%5]) with mapi id 15.20.7982.022; Wed, 25 Sep 2024 03:16:29 +0000 From: =?eucgb2312_cn?b?uvrBrMfa?= To: "perex@perex.cz" , "tiwai@suse.com" , "mbarriolinares@gmail.com" , "wangdicheng@kylinos.cn" , "mmccarthy@mcintoshlabs.com" , "xristos.thes@gmail.com" , "cyan.vtb@gmail.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 VIVO USB-C HEADSET Thread-Topic: [PATCH] ALSA: usb-audio: Add delay quirk for VIVO USB-C HEADSET Thread-Index: AdsO+FBn473lP8g0TTuwq9xMocctZw== Date: Wed, 25 Sep 2024 03:16:29 +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_|KL1PR06MB6260:EE_ x-ms-office365-filtering-correlation-id: 208fcc85-4c5e-4116-9c2f-08dcdd107297 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|376014|1800799024|366016|38070700018; x-microsoft-antispam-message-info: =?eucgb2312_cn?b?V2RsNVk1dlRPcXRSNDVEU0FZQmZo?= =?eucgb2312_cn?b?anBqYjZDMk9pN0Ivb0JqTzR4b3FkN2JCWUp4UHcxMnU3UytjdUlybFZvNkEzV2U0?= =?eucgb2312_cn?b?dEoyVVpVLzJQWlg2U2xBWWc1Wld1aE83cm5lOVdaYkNiUXpJRnN6WVVzRmFtczZW?= =?eucgb2312_cn?b?ZWF6UWxQcmpITk51OHFiMmlNN1ZBYjZMdU05dWcraTlKdGsyNmJpdE9EVElReHF5?= =?eucgb2312_cn?b?Y0J5NzdrUVVmMDdPVjVsNmhNVTE2REpxQTgzc255elE3bWZLYnhCQkZtZkZJUGM1?= =?eucgb2312_cn?b?S3d3OXk4WExVSGxPQlF0WnVRZFNCa0U1L3NXYk1jcklucCtHQnVrdHc4RDJ3dVZR?= =?eucgb2312_cn?b?YXBVcngrYXpZQk5aK2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Wm9tMUlyRk94YjdNbDVDR0dETGVw?= =?eucgb2312_cn?b?aTFKeVZIaHZuK0J2bEMvbzVrNEd6Mlo5RDZVVDJTUXNYR1ZkRm5qbDVkM2VmT2JO?= =?eucgb2312_cn?b?dUFGbTZGZk1WTWN6WUNNbEtUdk9mMStMNkZGTTBVemtRcWErMlFUOFZrRUxRQWpn?= =?eucgb2312_cn?b?cDNYRzEySHZ1dGwwdzJFZVUya2kvSUJ3ajlQdlMvS2lNVkVRN0o1SWxsb01EeU5K?= =?eucgb2312_cn?b?V0kxNjBhWm5lSkNSY2oxbFo3TjlKazV1YVJSTzlaZktydzFRaTJTcElsbWxOUURB?= =?eucgb2312_cn?b?RUVDKyt1VE0wRGdBSlRBcnAwZVlRSTlQTmFUSmlDQ0hWd2ZldmxRU0lETjgrOVVX?= =?eucgb2312_cn?b?clFRSklSaHdLVGhNSlN6L1FkdWpRT0NJS2lkYWlNRFZXdUdrMjhSVkJFMnd6eU5a?= =?eucgb2312_cn?b?enZ1TzdlZkdZQndaY1EyZGp4Njl6TEhEQlhBTmdRc2xYVGpsbThTU011ZFBBa2F1?= =?eucgb2312_cn?b?bXFoNmh5ejRxUmRNZFU4VWlLVElxVGc2ZndsOEhUb1FrZUtvaTQvaHJKNlU5OFBa?= =?eucgb2312_cn?b?WkRsa0JmYTBMalhOdUJhSkFtTWgzc3lMRjAxVjNJSzlERk43OERKYm91MTJTSk5B?= =?eucgb2312_cn?b?VERnbEMrc09iREo2QkV4M2JFNGIrWUNPSEJKYW1QclAzd3JPcjU4UGtna0tvU0g2?= =?eucgb2312_cn?b?bWNkZytzQWFoYy82UUx4Y0E9PQ==?= 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)(376014)(1800799024)(366016)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?eucgb2312_cn?b?RTM3emx1RW5taElDTTE2UFpp?= =?eucgb2312_cn?b?c3UzQktOZEpFZWIzbHRQK2NITTNoSTQ5djFoVnNBREhRZ0VzbzJpeVc1U2crdEs3?= =?eucgb2312_cn?b?akQ3OURYR2VXNUtaaWJsdWpVajcyeWpsb1g3LzRWc0lMUXg5bWIwK1lISVN1QU00?= =?eucgb2312_cn?b?Vm8rWjUzaDFlMWFCWHdNRUltWFJWSlNWTTN6NHNjN3FBcDZUem5JOTM1UHo4eWgw?= =?eucgb2312_cn?b?Z1QrWThIQ1BqaXpkdkVRYU82U1RNeFVlYkRuK2FxeFFJNGMzak1rVnFrd0w1YXhF?= =?eucgb2312_cn?b?QmdyOUFLU21XTllodmxSYzFnMjNqRU5pNmFtQUF3VldNMi8ycng5aW9CcWx3RTlu?= =?eucgb2312_cn?b?enNJd2M5SllzN09SeEcxTWR3SlpiTGNLckgyN0JJQnRtNXFkRG5KY0F6ejFCVm5u?= =?eucgb2312_cn?b?Z284T0dPVjZsbllsbG5kYnVwTzRsaXI3YTZFN0pYd1dOaDJnNHd3bmQ2VlBoNkRF?= =?eucgb2312_cn?b?Z25uVUhKb09OZnlnQUMwWGFJOEpjQUdhK09jQ2RNcTNCbGQyY1RFYTZKdWJxVThO?= =?eucgb2312_cn?b?T1pJV1NLbURUNzRFa1J0S0FuaEd3dmVhY0dBanZhcHcxYUVXaS8xVGxZd3REQTR3?= =?eucgb2312_cn?b?VEE0cDRUODhMYzZ2UmhjMlM4VEJFejRlbWw1R3N6eGtsTlhpREV2Y1ZpckxlSnVm?= =?eucgb2312_cn?b?b2RkcElpc1V3ZkE2THkyUHIzdVBUeWQvK25KcGF6YmhNNWtUclRmbGhvTkp5aUlr?= =?eucgb2312_cn?b?WE5LbzdrcHdtdEtNVUhZTDVJcmlFYWw2K1puZnVhZ1hCWWsydkV4MWdGcGdXS1cr?= =?eucgb2312_cn?b?TjJRUXBEU0pscTFIMUt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FGNjFUZWFaZ1dVcm1OS3YyY0xVMTYvWmxP?= =?eucgb2312_cn?b?MzVNYmJyelk2SzIxU1JOd0NMR1l1a3dKT1FteFVrRTBDQlNIUjdrSVZwdHI5Z2ZF?= =?eucgb2312_cn?b?MmMvR2tVZGZDVk40M2lXUTF2ZlNsQzAvZDJsOWRLZW9mNWpuMm5BQ0ZwVmxKWjdD?= =?eucgb2312_cn?b?UjFoSXRzSFlnMWVCSXF4ZW5LcFk4QzlSdnVrWWNBbWxMU1BxUENlOXJFYWxRMzVz?= =?eucgb2312_cn?b?ZzViSW1lSnhtS1ZjZFA2V0pBc2hLMkhQSWllNnFRWHhvK29DY0t0WHRKQi8wd2FS?= =?eucgb2312_cn?b?SDZTWGwwbTl2Q29XWFNneWo3TDFkMGVDakZtbWJBMTlGeFdpbmlDR0ZRSE9yMCtk?= =?eucgb2312_cn?b?bS9ZS1Q1L2F6bEhQWDRzeTZUb1dDeXpCM2F5OFJodjM4ak9qUHQvM2l6aEVEMVo0?= =?eucgb2312_cn?b?OUI3MzZhU2Jmb0pEMkl3bmNscVlBUUFBaz0=?= 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: 208fcc85-4c5e-4116-9c2f-08dcdd107297 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Sep 2024 03:16:29.0958 (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: nZPUlK7p2LzrgsnzbEcqOPstHdxyGvBKCwMRK8MZuhdf0aSyHVidi2zastH7cGRMHbV80g67bSAqamQFgeJNDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB6260 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 f62631b54e10..c7a9c50a65bb 100644 --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -2279,6 +2279,8 @@ static const struct usb_audio_quirk_flags_table quirk_flags_table[] = { QUIRK_FLAG_GENERIC_IMPLICIT_FB), DEVICE_FLG(0x2b53, 0x0031, /* Fiero SC-01 (firmware v1.1.0) */ QUIRK_FLAG_GENERIC_IMPLICIT_FB), + DEVICE_FLG(0x2d95, 0x8011, /* VIVO USB-C HEADSET */ + QUIRK_FLAG_CTL_MSG_DELAY_1M), DEVICE_FLG(0x2d95, 0x8021, /* VIVO USB-C-XE710 HEADSET */ QUIRK_FLAG_CTL_MSG_DELAY_1M), DEVICE_FLG(0x30be, 0x0101, /* Schiit Hel */