From patchwork Fri Aug 9 10:38:52 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: 13758685 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2064.outbound.protection.outlook.com [40.107.215.64]) (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 B97E015ECE2; Fri, 9 Aug 2024 10:38:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.215.64 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723199940; cv=fail; b=NsFV5BY5tMK25GZthXulLOAw/kZ6BEcWNxWCKW/cvK+nwMyx+BE4OyC116RATgTwlDN5fZVfXrTPuzIV1YpbfrExWgVCmoeZPN7z932CSraim0xQUuNYTO9786Qfa7YUkB4s2W17Mum9OcYtX8KF/RbJSnva0PWcmQ/99hJ3dsA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723199940; c=relaxed/simple; bh=eotk05NijcA4YqExMSkPcUoErW2QfKBLGjJDIm5HKYc=; h=From:To:CC:Subject:Date:Message-ID:Content-Type:MIME-Version; b=cq6UuHaivanTrYgJR/DA/60NGu26Z+SkBLRy5ypNIUaXaZen2r7wyPZCWUfyOULPbU7XTyjL9tX4+rZxRWzekZEqtVo8QXhuELedD3YzNzwliKVP3+OZVi1A2yWV97chym05xyrn6qxvK7TY9w9ODjYrgrQ8xi5gOCVc593nLRY= 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=pazlKuR5; arc=fail smtp.client-ip=40.107.215.64 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="pazlKuR5" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DmVZZ0yOltZzuKtgr6CmOsE8dhP+2aTBW90nmzPpJkVxoJoh9bTbro/xLWbm/OqnAzInB/aoYVk+iVjWf6GKsCjp2tfYY+qTzYJGGPAHQ7gLSTx0YoXR01gIHKmdwaUUQPsjy6q72+0Y3p/TXfg96rsuf1CFgB7NnQMGUZ7dbn/FV15AAZXA7zAmfuJ59dxkXjDDIo5WscQeo1bpO96U7uCVKKA/FAcJBXON6GdJEsFbf7pFphh+M0nAqnB90zowcTEla65jmvZempdetdJxAeENTtnTJ3kT4r4N0xm/tmsMfkneFfH8QULPp1Hu+7jKC6z+8qUK1KzN1Iso8om6hA== 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=eotk05NijcA4YqExMSkPcUoErW2QfKBLGjJDIm5HKYc=; b=Vb47W6itJB3e6oQZlxSRqoF4K1GBIx58LDY0GabnCjB0X5XZAVpFDWcn9uoV/biRm3/84iNYcaqpx3jq2TIBOG69QskloFhvu39N/xIpdbd82x796PLOZUeJ8iHZeTyK2oMlyIS1UhgCTbZAtRhmDVpCDQJilfoDqszOPcCX3R9AW0ac7E+LLk9yb8MyO96Kc+We2GRkk3fmp1GLClrgb1pPojZufuUdnjUwXAA64trbU4wLkFagSUaN2j3o6dwFaig8ZVRD0dn3LCZsnypkHzWunKBtijSFqIuDR12wolOhtg353b8VK1QsJpS142MyAuldIUjQ4hQHjPTpIUKYow== 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=eotk05NijcA4YqExMSkPcUoErW2QfKBLGjJDIm5HKYc=; b=pazlKuR5WJMRRmK/RWI3KkaNZjE/fN5SvOLTtmdx0gccsxURKdUb3HY6YRSfPuHKossNbDdf/LewlgIiui9HGInc/FXXHK7mMX6JV/1OZ0RgSE4B1BQ89jw8eTU72tpJIEKGWv9Yn+gUvhW0SZraqdeh7LZGMso0MyHQRlzAzEewSOFcPy6kC0EYAVjalP7tVOQmiQVqW7K9mEf74pTFSvmfmti2VUSc48Nj0yvZ53rfSPgjgk7GCQY5Ar6ymm4ceTDVtrSqrUzn2L2fETyCILS7oQYW20lQPRJIVRDy69ukkYT9pF3KzkUDqIYaOz44BRlqgQ2mFJgwrFv/dfyr5g== Received: from PUZPR06MB6224.apcprd06.prod.outlook.com (2603:1096:301:116::8) by TYZPR06MB6379.apcprd06.prod.outlook.com (2603:1096:400:424::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.15; Fri, 9 Aug 2024 10:38:53 +0000 Received: from PUZPR06MB6224.apcprd06.prod.outlook.com ([fe80::d489:3d1:904e:8b73]) by PUZPR06MB6224.apcprd06.prod.outlook.com ([fe80::d489:3d1:904e:8b73%3]) with mapi id 15.20.7849.008; Fri, 9 Aug 2024 10:38:52 +0000 From: =?eucgb2312_cn?b?uvrBrMfa?= To: "perex@perex.cz" , "tiwai@suse.com" , "mbarriolinares@gmail.com" , "wangdicheng@kylinos.cn" , "sean@mess.org" , "alexander@tsoy.me" , "xristos.thes@gmail.com" , "knuesel@gmail.com" CC: "linux-sound@vger.kernel.org" , "linux-kernel@vger.kernel.org" , opensource.kernel , "akpm@linux-foundation.org" Subject: [PATCH] ALSA: usb-audio: Add delay quirk for VIVO USB-C-XE710 HEADSET Thread-Topic: [PATCH] ALSA: usb-audio: Add delay quirk for VIVO USB-C-XE710 HEADSET Thread-Index: AdrqR30bQkshD9SgS+2zVa/QkqxN5w== Date: Fri, 9 Aug 2024 10:38:52 +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: PUZPR06MB6224:EE_|TYZPR06MB6379:EE_ x-ms-office365-filtering-correlation-id: dfa488a4-1fbc-4677-cde3-08dcb85f767f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|1800799024|376014|7416014|38070700018; x-microsoft-antispam-message-info: =?eucgb2312_cn?b?SXM5cTdEUlJIUk40WEd0WVJYWlc2?= =?eucgb2312_cn?b?dEVOVWpLRk9HNHV3djl1MTI2aTRRVVpqVnM1YjdVZXdQNHVsVnJINEJlZDZ2dytH?= =?eucgb2312_cn?b?eDFWb1V3T05xOHJ4OFZpQnBGWlpVNm5iNHNZR0MyNWQ4VFBRNHh0VkZ0citHRmZN?= =?eucgb2312_cn?b?Zi96SmdITHBWdjcxNGNWQzlHQjFxVmtzOXEvTml0RUdtd2lrWFNJd2hCN2hIeElv?= =?eucgb2312_cn?b?NE93bEVmV2V4OEM2Y1FlUjhWUEEwK0hQN1doNURkTEU4T2R0THc4THlZdXBPeWRJ?= =?eucgb2312_cn?b?QVhwdmoxM3dJK2UzOFRDOTZTVjBBQjFWY0VDcjdmZWFjQ1ZIZkNzZ000WEhrWW9G?= =?eucgb2312_cn?b?ck41aXN3emJoTWRWZGpvZEwwYUJ0Zk8vdEJLWG81UDZKZlVP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eEd2WHF3N3h6?= =?eucgb2312_cn?b?T05tbkNVODlscUdaM3Jma2doZ2ZCcWRWLzRWaHo5RlZRU3pFT0tqS1FmeTdSa01B?= =?eucgb2312_cn?b?c0RJMmh4aVV1VTJpNVdxTy8zUHJuNGt3OWxEeGhhZU5waGxkYmVNamxuVjhKb3dj?= =?eucgb2312_cn?b?V0tkMEZaMTdIdnkwTEwyS0FDaFVBQ2J1Q0x5VythMEJaN250TWMwL1BRNHhqTURB?= =?eucgb2312_cn?b?WUt4clJIcHlzWlNMWUlJcW5BV2tNNXRWcFRrbzFXdlpQMm4xWld0TXk0eVVibFVw?= =?eucgb2312_cn?b?YUk4aGphVkJnUXR4Ni8vY0RlSDJ2cnhxYXBrSVAzeUFGaTRGNms1ZEpxTWFsSURI?= =?eucgb2312_cn?b?Z2REcDc5K3Z0Q3dNd1dSclZYSnByMVBtWnd1WExGc2JQVy9QQzBhc3ltU2lhcHh4?= =?eucgb2312_cn?b?L0FTVnVKU21zNFpISWNCUTQ3TkFDb0JQN3Zic203S0ZmNHM2R0YyNXVjRkIvSkM4?= =?eucgb2312_cn?b?dTc5c0o1K2xhN2VnYXdYYjJKN2Q5QjRKTUJlaWp3TlJPcWh3UG5JVFVXR2hXS3Fv?= =?eucgb2312_cn?b?bjF5dWpQYVcyRFhNTXp4dnVydm9UVlpaV1lnMUhEeTh2YU4wSFQ5ZUhhdGRvQzBG?= =?eucgb2312_cn?b?SkJ0NHFTRS9MbVN0N0JLNytOZUJOb1ZYY1U2NlVheC9yN2FWZk5iZHZhTjd1bEdl?= =?eucgb2312_cn?b?VVUrRTN6UFRLU2VvOW5NRVE9PQ==?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:zh-cn;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PUZPR06MB6224.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(7416014)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-ch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FdHRU1aNXlneXdVNWphUy93Q1NzcXBxb1l2N1hVQTZhcEFLcllKOUNi?= =?eucgb2312_cn?b?RjJpRUE0QW12UVZLUUxPWXB2R0FsbVhncjZNaEhoanN1M1dxaGVoMHdPVXlva3Fo?= =?eucgb2312_cn?b?K0VMRnFCaFdkVzJTV0RtUmw4WGE5ZnZLMVduNm43MWVXQy9jdGhjYTduMy9xTm9a?= =?eucgb2312_cn?b?VVdlTHdBVlJUUVNvVXVWTVZYNWY0bEl5U3M3b3ZTYjdtVEI0L25VMUpYT3l4R0pl?= =?eucgb2312_cn?b?QmlBK29aR0plYlV3dkRBcUtxaG1xV2lLQnpkdUdNa1hYTkY3SXh4eDgvUkpia1ZF?= =?eucgb2312_cn?b?anBwcHMrM1NERjlubUl4WjBEeENKT3JyNEJCcE1wOEZYWVJXaDFGaHlCRDlxS2dC?= =?eucgb2312_cn?b?R04ySE1vUCtHWkVuZEV3anAyRVZxSHN4OGZzdWZ0cHEyeksvVmpDdldjZkJOM0Ra?= =?eucgb2312_cn?b?cnpqc2p2UWlBVmZSZDVHb2ZwWm9MaXR0UT0=?= 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: PUZPR06MB6224.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dfa488a4-1fbc-4677-cde3-08dcb85f767f X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Aug 2024 10:38:52.9121 (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: i7BB2V24ubOg9AQgG0s3dmKAlj8wUhUoWQ5UP6TJ4Mav9IgeSNBWVNenVaQTJHY7wAM/IKl9HvWaieUGXupTVw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB6379 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 ea063a14cdd8..4c7f0f9d15de 100644 --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -2119,6 +2119,8 @@ static const struct usb_audio_quirk_flags_table quirk_flags_table[] = { QUIRK_FLAG_GENERIC_IMPLICIT_FB), DEVICE_FLG(0x07fd, 0x000b, /* MOTU M Series 2nd hardware revision */ QUIRK_FLAG_CTL_MSG_DELAY_1M), + DEVICE_FLG(0x2d95, 0x8021, /* VIVO USB-C-XE710 HEADSET */ + QUIRK_FLAG_CTL_MSG_DELAY_1M), DEVICE_FLG(0x08bb, 0x2702, /* LineX FM Transmitter */ QUIRK_FLAG_IGNORE_CTL_ERROR), DEVICE_FLG(0x0951, 0x16ad, /* Kingston HyperX */