Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1399469ybl; Tue, 3 Dec 2019 06:37:34 -0800 (PST) X-Google-Smtp-Source: APXvYqzTX+e8GQKZ3oMipDFUi/AKZO1i3E5290N1Vx9BsEWk/c7cggZjKl9cFvyZyYIteUh0JI/a X-Received: by 2002:a9d:6d06:: with SMTP id o6mr3366984otp.239.1575383854286; Tue, 03 Dec 2019 06:37:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575383854; cv=none; d=google.com; s=arc-20160816; b=kr4+Bogk2ggAb1oJVCo3bD0j3PBtFeRA+H+k+NyYbXSllh5JxLGOwb5qC+gBaO2Dkn iGeFlbRkduMIVL3vOD2DzqBIuqt3311ZzlXynSQ8xgzZLuhdWpSfd3KbVG0QBpOcfIQi 0qOtPpClufnw9Wwm/pchz2yJQq95XdAZQDWAEIAqY0Fbys2CECXfGyHl586OTY1CtnFa +/Uc7wRH1Js7PVT4L1wA8Kt3nfyTkN/qnD1BSfDSZYPLLFLfOsEnsDd7Y5hVZLAheWTQ ukfaHgjEhE2HB8IqwbyYW4UwdTUy9Fldyl/FibAoG2uUHhYa9thuDSztBde4Jyfw/5aD cmXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=FNjDmiVJIuj7Ic1payC9JVFxHj6zVw3zHrAY/U0j0Dw=; b=dRlGk1PF1npKoK3PRIjyhxBjwPXVAzm/jgTi3t5NLpzhqvtH0zlVz4LSAFcLSBdt4X 7sStbDsQeQQy9b/uxw8b+MQ1MKAkdCGA20Hmh2kIvZqfwmJq2Oj7bz46FjJvH4IKGveA qbSEHGMwWwMhgSTRODZBs1yQHAurFc0EN08Wpi4lEKMWhICnFjM57CGw6NwUoehbnA5s YaTTdjwR3yWAnkNevxKTquhLdNsYWEnupVB5S3f5uJWRhrG0UQgJb22pemmEvFZgwgXK Jx6HLnJ+XHGgwz0uaf2fLLDiGudPXf+VIP0obvCX9F53El8mlaqTbmUwzBQssPp4T1NY /KDA== ARC-Authentication-Results: i=1; mx.google.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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 11si942670otz.101.2019.12.03.06.37.13; Tue, 03 Dec 2019 06:37:34 -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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726482AbfLCOg1 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 3 Dec 2019 09:36:27 -0500 Received: from mga09.intel.com ([134.134.136.24]:64921 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725957AbfLCOg1 (ORCPT ); Tue, 3 Dec 2019 09:36:27 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Dec 2019 06:36:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,273,1571727600"; d="scan'208";a="213443837" Received: from pgsmsx105.gar.corp.intel.com ([10.221.44.96]) by orsmga003.jf.intel.com with ESMTP; 03 Dec 2019 06:36:24 -0800 Received: from pgsmsx108.gar.corp.intel.com ([169.254.8.12]) by PGSMSX105.gar.corp.intel.com ([169.254.4.81]) with mapi id 14.03.0439.000; Tue, 3 Dec 2019 22:36:24 +0800 From: "Lu, Brent" To: 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: AQHVqaw+ii/fH1J6I0CEgpyDBLMztaeno36AgACHg7D//4yFAIAAv3yg Date: Tue, 3 Dec 2019 14:36:23 +0000 Message-ID: References: <1575358265-17905-1-git-send-email-brent.lu@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZDE4YzY5NTYtMmU4NC00YTcyLTgyYjktZDhmNTU4YjY4M2NjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiQXVlbWR3VnpZXC9BZzQ4Z1FYcVhxc3hYRFY4ekFaVkc0ZVE0M0xnRXMxNzdtN0lMaXIzVUJMSGpuZ0lRczNYZ0kifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [172.30.20.206] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > But on platforms where they can enable the WCLK early they shouldn't be > looping 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 something 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 want > this to lock before the any of the audio path is up so I think we need to find a > way to resolve that rather than relying on getting lucky with a smooth power- > up. > Hi Adam, Thanks for the explanation. So the purpose of the code is providing some timing tolerance for SRM to lock? If so, I would suggest adding warning message for the lock fail so people have a clue if their design fails the CTS test. Hard to say if Google further reduces the Cold latency again in the future. Regards, Brent