Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1171803ybl; Tue, 3 Dec 2019 02:58:39 -0800 (PST) X-Google-Smtp-Source: APXvYqyZM2ZJti+qLFCaANXvsYHW5Y1/Ijor38cI8ZPy4HaF7RxyaizcgagOW4yVd/TJCbmfY9uy X-Received: by 2002:a9d:53c2:: with SMTP id i2mr2455214oth.43.1575370719864; Tue, 03 Dec 2019 02:58:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1575370719; cv=pass; d=google.com; s=arc-20160816; b=F2APItWZbYItC/xtJSbE4OfEATBmufe8rPKiaPolbgdxjH23t4T9+kRj9fJglqgv4o 5ddxnpgDhJLWqcHbIqTw5LovA4qwAtqnPQGBkoDVTBOdkTBgcqyYe9A0HVgwIcV6iDux SbNfa/ff457tLdqAAML5mcLPWQkoM9t+2TuzD43taxxwjKtyI2M1/61wr2+b1+jT8RQH wgZwUDStZlhr2lU3kuOxigFlZwZ0htmi6cJ2PqftQMP6ijHmjBLZaislLwaiDpchth/u NEIgeBp/8tYv5fXZ49nZWIGipILCRzYuJb1W08W9samEIZ0wwuj3XzMvCKV0ZpBRDKqK Yftg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=X1zvaJtnVsoxnUlnINoTNeNjG0yPEP8EQdHjRHQ5/vY=; b=B/MyDdTIUdsnIxTn43P9I2EwfOexB6DXWxyHMieB4z0TfF44LyRX3Yozi2Ze7aMvHv tSuutZAUj/lSZs/eqxZuU9zDIF+FtD/HDDb9O89bhS7eVfuhscWCjkclS/YOQpsZLiRt 5EhAbu1KLxGDlg9lIQcga6lMJhzjBf0aW4OSzugeCvQOIHCvYbO9VJ+PpVPJx+mm97wB Wn0ux3B1Tn+/VF7ZjRk9915bVOZxd7w/0Hcw2xlH/etXtBBt9+sOGZPBk0PvXjJr42wA iPmoBnxzMWoETidlt46ywRjz9/mk3VDqJceGw0zKvG5bCzOL8WMjpQLeQB64Umcs9BUI 5tGQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dialogsemiconductor.onmicrosoft.com header.s=selector1-dialogsemiconductor-onmicrosoft-com header.b=mpcvDPML; arc=pass (i=1 spf=pass spfdomain=diasemi.com dkim=pass dkdomain=diasemi.com dmarc=pass fromdomain=diasemi.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=diasemi.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x9si1012451otk.170.2019.12.03.02.58.25; Tue, 03 Dec 2019 02:58:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@dialogsemiconductor.onmicrosoft.com header.s=selector1-dialogsemiconductor-onmicrosoft-com header.b=mpcvDPML; arc=pass (i=1 spf=pass spfdomain=diasemi.com dkim=pass dkdomain=diasemi.com dmarc=pass fromdomain=diasemi.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=diasemi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725939AbfLCK5x (ORCPT + 99 others); Tue, 3 Dec 2019 05:57:53 -0500 Received: from mail1.bemta25.messagelabs.com ([195.245.230.68]:62341 "EHLO mail1.bemta25.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725773AbfLCK5x (ORCPT ); Tue, 3 Dec 2019 05:57:53 -0500 Received: from [46.226.52.200] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-4.bemta.az-b.eu-west-1.aws.symcld.net id F0/92-17986-CAF36ED5; Tue, 03 Dec 2019 10:57:48 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrEJsWRWlGSWpSXmKPExsWSoc9oobvG/lm sQdMmDosrFw8xWaxp7mCymPrwCZvFtytA1uVdc9gsOnf1s1ps+L6W0YHdY8PnJjaPnbPusnss 3vOSyWPTqk42j31vl7F5rN9ylcXj8ya5APYo1sy8pPyKBNaMk08OsxfMFKw4duAecwPja94uR i4ORoGlzBLH3rexQzjHWCQW9B5lg3A2M0r87v0J5rAInGCW2P1yFguIIyQwlUniZ/9uJgjnAa PEptl3GbsYOTnYBCwkJp94ANYiIjCdUeLp5Ldgk5kFGpgkVq04wQRSJSxgJ/HhyWNmEFtEwF5 iWeM3dgjbSWLrzHMsIDaLgIrE6tOTweK8AokSb5s3Qa17yChxcd8XsEGcAqEST+fPBBvEKCAr 8aVxNZjNLCAucevJfLAaCQEBiSV7zjND2KISLx//Y4WoT5U42XSDESKuI3H2+hMoW0li3twjU LasxKX53VC2r8TUk7fYYeoffrzCCmFbSCzpbgU6mgPIVpH4d6gSIlwg8Xz6YhYIW03ixpsOqB NkJA5eWsEK8ouEwCtWiTOL5rJNYNSfheRsCFtHYsHuT2wQtrbEsoWvmWeBw0JQ4uTMJywLGFl WMVokFWWmZ5TkJmbm6BoaGOgaGhrpGlpa6BoZGeglVukm6aWW6panFpfoGuollhfrFVfmJuek 6OWllmxiBCa3lIJjd3Ywtn14q3eIUZKDSUmU9+/nJ7FCfEn5KZUZicUZ8UWlOanFhxhlODiUJ HhZrJ/FCgkWpaanVqRl5gATLUxagoNHSYQ3wA4ozVtckJhbnJkOkTrFqMsx4eXcRcxCLHn5ea lS4rxJtkBFAiBFGaV5cCNgSf8So6yUMC8jAwODEE9BalFuZgmq/CtGcQ5GJWHeAJApPJl5JXC bXgEdwQR0hHnLI5AjShIRUlINTH2Tvu5Xvxp5tvy87Tw5kcQEpaWPbOb5cLXLvz3xM2xymMjd fdc755wJfXTD2WWx/zJe29PbPtTP8Ny+bs87NaNAASUfLp7C31c/qkn8PX4w/tOcnYsDY8P/N OnLmStkPL5+T2r/LyaWymjNwjr36UsvudesmO55aFXeA2n771v3vfD4FRzazJQno+ydoPLkXB /X6mU7VwnV+pWs5vlb9oHB4/KjvSW7Y/qurjh2aDLntNRVJaLKeixcwYuz+Z59mPsmZFnd+a5 TnaVv7uSc/v8wyWn1y/gVjZPfTjI57XIoxb61ZQd744Mrszf/1NtWvKvc9LZb0ErmjEP/f5/6 M/Vpdcys9at//uXdpyOorCiixFKckWioxVxUnAgAmzOnvXUEAAA= X-Env-Sender: Adam.Thomson.Opensource@diasemi.com X-Msg-Ref: server-16.tower-288.messagelabs.com!1575370667!709842!1 X-Originating-IP: [104.47.1.56] X-SYMC-ESS-Client-Auth: mailfrom-relay-check=pass X-StarScan-Received: X-StarScan-Version: 9.44.22; banners=-,-,- X-VirusChecked: Checked Received: (qmail 13915 invoked from network); 3 Dec 2019 10:57:48 -0000 Received: from mail-ve1eur01lp2056.outbound.protection.outlook.com (HELO EUR01-VE1-obe.outbound.protection.outlook.com) (104.47.1.56) by server-16.tower-288.messagelabs.com with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 3 Dec 2019 10:57:48 -0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GravfMyEx3VwVi/C2Sw94X6p92B082OaeCepIZTqMjucZk7YFHymCx8md/QKvl7zAzac3pb5PsN7QIf/vM1v+EsMErtYfQcxE7j8RxfFTPOsIwt0tYAXtQ8WpF98/3PO7SX2NgNQtW2KhaO/bfmry2GV9OLaFXrvBiP0q0tKX46XjNdKmnf7nsJHmr/jWFIVbFp+wqKMZs/XKk/T6waGjoqHOADwRU/sQCdmDtiloLFAk9drWQKCwZ8n42bstQtuCSioOiID+EoYKHoNsThsjNUk/T71/tc/lRMhJIZ7U+5I4hKDcOLdOm8mfY7o1iyV+3fTlxsCSm1Mr2Q6cWbRZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=X1zvaJtnVsoxnUlnINoTNeNjG0yPEP8EQdHjRHQ5/vY=; b=JZw/Gm5lz+tFipRJ5i55JzxWoLOo49QDtPe7EW/kuW7Rjy9C5QgLieaAInwiB/tMLkt9U7/7nRdXedPiGxwYON+99nwd33kpxtDNvtHyAF7eO2C8QlzRUl0ItR3K3IA/BGzGJWUQA50dOsTDVjzfm+1h6ihZdYkDV1jbWmf3ZjY04HftuZeKxK5iszu1spOITlrLan2Md4YcLTrZStMmmrlBzgxmCwwut8lXo9Nmf/r0d/qhJXCvJiNwB7FaYdIUNbaSnmOTNTdH/ZgqNz25nti7l6zNY/Mkhrb3dGmwZv3CyOuY/alL+ErZyDJ5pFq+DwFw6X2qc5oQcCm+qoqMTQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=diasemi.com; dmarc=pass action=none header.from=diasemi.com; dkim=pass header.d=diasemi.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dialogsemiconductor.onmicrosoft.com; s=selector1-dialogsemiconductor-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=X1zvaJtnVsoxnUlnINoTNeNjG0yPEP8EQdHjRHQ5/vY=; b=mpcvDPMLWfx7U6onskKAasic264m/yAsSPbiE2lcX0FqknE4rN9GB7XeRq3z3shpkhUn3IwifDnZjYNZKMx1M/LZwp5zEOPJkNuY0y2atPKz8uMrgHWoqv2PRHjXT/VckaEkuf4EFtTKMTno4ENicfXpb/OCgGHrt5XyynkS4fE= Received: from AM5PR1001MB0994.EURPRD10.PROD.OUTLOOK.COM (10.169.154.136) by AM5PR1001MB1140.EURPRD10.PROD.OUTLOOK.COM (10.169.155.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2495.17; Tue, 3 Dec 2019 10:57:45 +0000 Received: from AM5PR1001MB0994.EURPRD10.PROD.OUTLOOK.COM ([fe80::5525:87da:ca4:e8df]) by AM5PR1001MB0994.EURPRD10.PROD.OUTLOOK.COM ([fe80::5525:87da:ca4:e8df%7]) with mapi id 15.20.2495.014; Tue, 3 Dec 2019 10:57:44 +0000 From: Adam Thomson To: "Lu, Brent" , Adam Thomson , "alsa-devel@alsa-project.org" CC: Support Opensource , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] ASoC: da7219: remove SRM lock check retry Thread-Topic: [PATCH] ASoC: da7219: remove SRM lock check retry Thread-Index: AQHVqaxDP6cBrmECm0aX2T25rtDQx6eoJvjggAAPtwCAAAQYEA== Date: Tue, 3 Dec 2019 10:57:44 +0000 Message-ID: References: <1575358265-17905-1-git-send-email-brent.lu@intel.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.225.80.228] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ac2d88cd-086b-4d90-c5cb-08d777dfa070 x-ms-traffictypediagnostic: AM5PR1001MB1140: x-ms-exchange-sharedmailbox-routingagent-processed: True x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 02408926C4 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(396003)(39860400002)(346002)(366004)(376002)(199004)(189003)(99286004)(6506007)(25786009)(14454004)(76176011)(52536014)(316002)(966005)(8936002)(81166006)(110136005)(8676002)(478600001)(54906003)(4326008)(74316002)(86362001)(6246003)(81156014)(7736002)(305945005)(2501003)(76116006)(229853002)(5660300002)(446003)(3846002)(33656002)(66946007)(9686003)(6116002)(55016002)(6306002)(66556008)(6436002)(11346002)(66446008)(66476007)(186003)(64756008)(256004)(14444005)(2906002)(102836004)(71190400001)(55236004)(53546011)(7696005)(71200400001)(26005);DIR:OUT;SFP:1101;SCL:1;SRVR:AM5PR1001MB1140;H:AM5PR1001MB0994.EURPRD10.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:0;MX:1; received-spf: None (protection.outlook.com: diasemi.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xTyDvUMwp1shUYml2fgCzU2RoFLuNpIYa2AiZ489gs5iSxbBhmyggZVLi7bQzcr7JXZzaD/uh5daFPiSfxROLXHL+0RNNyrsQDBJ9LPJwT+w5NKgoPA3ciDOiUzE2/UiiH0jsOcVsELvBOHDyzCnT2e/vPgMCoip18odfcSqtUCuQwfVer5m4fydWzkPmTrs+wWEkTzz+CaMky48sITdClvn95s0ZBEvvcHZq0XVR6YcxGyLUte1DPCqglNt1Te/Ox7xALNRLmMgQxNUCuEMQUHA6batrNphTbRhjmbGJEu7HBnRmRmiZ8AMSgk+EiYc/6tRX9BzYHxfvQSkywkdw+eBDHmnM2FkdBMx2PMGoVCA4n5qLZsaOntXoYcRbFhrN19tqrsgjYO1eVCztjMTb/ageoZWwJd3xgR8I3rjZ9eXIoIZ1xtQ3E/SYKT0HEcWg0hL3b7bbm9jrINIsg9ABvYvQnDaPjMi/cc0i72syUU= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: diasemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: ac2d88cd-086b-4d90-c5cb-08d777dfa070 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Dec 2019 10:57:44.7412 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 511e3c0e-ee96-486e-a2ec-e272ffa37b7c X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: QxWzkHEj0WRmqeYM4PQNKy38Floubko2VSDGbrhV5HCwhAgXleSI2RirS6fsn3BlOgxpSWGYOYnKeChPmPEy82Fd6Rlaw6CnG3VpGgY4knU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR1001MB1140 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03 December 2019 10:33, Brent Lu wrote: > > We can potentially reduce the timings here for something shorter althou= gh > > I'd need to speak with the HW team as to what, if any reduction is feas= ible. > > However this is not a real fix as there's potential for audible noises = when you > > don't enable WCLK first. As far as I can tell the Intel platforms are c= apable of > > enabling clocks early, as can be seen in this board file with early SCL= K enable: > > > > https://elixir.bootlin.com/linux/latest/source/sound/soc/intel/boards/k= bl_rt > > 5663_max98927.c#L99 > > > > I think there's a need to find some method to enable the WCLK signal > > otherwise there's the potential for audible artefacts when SRM finally = locks > > which is not going to be pleasant. > > >=20 > Hi Adam, >=20 > Thanks for reply. This patch is not fixing any bug. It just shorten the a= udio latency > on our boards. Basically we are idling there for 400ms then print a warni= ng > message > about SRM not being locked. It seems to me that 400ms is too much even fo= r > those > platforms which are able to provide WCLK before calling snd_soc_dai_set_p= ll() > function but it relies on your HW team to provide the number. But on platforms where they can enable the WCLK early they shouldn't be loo= ping around here for anything like 400ms. In an ideal world when that widget is run SRM should hopefully be already locked but the code does allow for some delay. Actually, having a long delay also helps show the user that somethin= g isn't right here so I'm somewhat loathed to change this. Even if you do reduce the retry timings what you're still not protecting against is the possibility of audio artefacts when SRM finally locks. You w= ant this to lock before the any of the audio path is up so I think we need to f= ind a way to resolve that rather than relying on getting lucky with a smooth power-up. >=20 > On KBL platform we have interface to control MCLK and I2S clocks like the= link > you mentioned but WCLK seems not working on my board. I can try to ask if > someone is working on it but since we are moving to SOF. The chance is sl= im for > legacy firmware. >=20 >=20 > Regards, > Brent