Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1260937ybh; Thu, 16 Jul 2020 07:29:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0DkkM9EyB2Mqi6duwlNnTV8MZr5H7XsL7efc58I87urt1sACDvItskkq2lvbf730AOK4Z X-Received: by 2002:a17:906:2681:: with SMTP id t1mr3909318ejc.350.1594909772144; Thu, 16 Jul 2020 07:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594909772; cv=none; d=google.com; s=arc-20160816; b=0lImYjl42rUbXw9qkv8ZMpXbGD4rGiULFeZJhSVUn/HkU1JQUYChAiM3EbLX6AFXuy 5HZ82mvLQJ6RnkOIZjuSehOkMXrH0jAASLsMBfcC5WfMrcUnuol1wK7N+ciBaTiZ1ePI E4GeUSOWvhSQnq4xc9qCmtAlWw9OWIUAmRW5h2OHPOtwB2C3Oo/aqubqrq8YXnLQWZQu t+4nA4Qs90iOMHnZTKg3PtwYKr6meZoaavYvDlbuQoAhauy+I83Tm/OkQtcO2oRhQYzP wbDTXcFZdITLZGyG2zjxyE5ZUmGH+sHngFHpMut8AymGolGx9kdzw5xULJ0BejJG/3/c 4Kew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=QsiGGcDWCE2MTopO2667tkEG4I6UoaLGyv6hbjwVs+Y=; b=oiBaTB94RIfAU//yEvgMXKnHkQrR8B7O/5GQ3HdSl0+Pr4yer0D327OL2qOB8A1llX 92USfZBlg+w7zJc/CoWLQtS6KD3wJBNgxGcrHhj8J0jHBUw3cORUkL/Ak8Y0pRmuZhcb dej9IBwgnqMDEiLr4gbhbA+DsuV79OkWTbwU+7wIT3yhyoWTXTxr5qd7+DzGCXz1M/2h 5mVVIxFRKBFvsKCfmmP9qffhREVNm28HlrMlmOmfJyt8EQ+zK2OSn1+qpuixzjvveHTz 5ksSli2Fs7w0vb3sjzLcORvAq1ENQNud3CR+8e1uWT++mr9ZQSqVcObW3WxN371rm2rl cwig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o13si1930928ejb.166.2020.07.16.07.29.09; Thu, 16 Jul 2020 07:29:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728630AbgGPO0f (ORCPT + 99 others); Thu, 16 Jul 2020 10:26:35 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:46208 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728182AbgGPO0f (ORCPT ); Thu, 16 Jul 2020 10:26:35 -0400 Received: from [IPv6:2a01:e35:2fb5:1510:95f7:ce7f:fb76:c54a] (unknown [IPv6:2a01:e35:2fb5:1510:95f7:ce7f:fb76:c54a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: aferraris) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 0879D261064; Thu, 16 Jul 2020 15:26:32 +0100 (BST) Subject: Re: [PATCH 0/4] ASoC: fsl_asrc: allow selecting arbitrary clocks To: Mark Brown , Nicolin Chen Cc: alsa-devel@alsa-project.org, Timur Tabi , Xiubo Li , linux-kernel@vger.kernel.org, Takashi Iwai , Liam Girdwood , Rob Herring , kernel@collabora.com, Fabio Estevam References: <20200702142235.235869-1-arnaud.ferraris@collabora.com> <20200702184226.GA23935@Asurada-Nvidia> <3f39a0bb-a766-f646-28b3-a51cf9983c6b@collabora.com> <3fea8912-63df-ff27-0c29-6284a85107ab@collabora.com> <20200714201544.GA10501@Asurada-Nvidia> <20200714202753.GM4900@sirena.org.uk> <20200714205050.GB10501@Asurada-Nvidia> <20200715140519.GH5431@sirena.org.uk> <20200715210308.GA14589@Asurada-Nvidia> <20200716121821.GA5105@sirena.org.uk> From: Arnaud Ferraris Autocrypt: addr=arnaud.ferraris@collabora.com; keydata= mQINBF6V3oEBEADExzr1s9YngScJ0KNMGen7k3cH1sn0h7tf7AFlXA94jXBgFyzIMT5lqey0 9LwcO6AIkFF+gRVAKIblkeacsy5W6OQXgdFMitx936oAcU0XYQ2X5NxCQHzEsWYzkLIZnFTB Ur3CW9HtAjAircED5KVJzA1GM8BEFfG3LoonWsw0CO9UN2arwT1uLARSPgL6LPpmo1IOSwJh D6vtOyzlRrLkw4KHzUobEiIjxzjXttH8TC3I6OSb8kavG08cmA+DMf/nLFxK0QbdOP2wSZ0w UTU6RBikuLmDBaT4PphuwtAgVwhO9l0PNRoYzugrXuRF0RCLpmJN05tz/o/w7Y8ieLgQE8Om xGKXJyo0T4wlUl9ARM9Y0ZIRhdI1alFspBcF63oyZmOAT+2fPLr6W0fEfmtMBhDaZun2ZdKR M1JwTTkh8jVLs3svM3Ch2JjiH0kgYA0oza5fXaB9s4Fa4fxpmacx8fawKR5r/BhmYNK15PPd YxIZJqnTJgCDI2G4tQ9K+Eev1rBo6i8n96rDqxTxdyQixMhxMmGtj6/bknpVIN947ABKDHdt UsWa4E+qwFrYDXT7RxhL+JGn4VrtIR1kpTJHfmVXnn+RW7JKdDkalvEuXJSOArszcgpDlYRq +ZT/ybdcmdtuz8+Ev0fig/9WdPBHwg5oKDlT6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dABevfk/Pv1EspBtkf8idYmtgZk/9daDd9NfDGVWZX2PZrHPkxiC6kJlq+ 9skF89liUCOGeIbfT4Gp/GNOWPRp1q2lj/12AT3yh97E9PghVdOOkxdHfFRIxt6qfcinl3w0 ihwz588Q48GmFzJw0LOidtCC5tW4m2CX01Gq7qdGd92R0+S36Zjxl8n2jhypQ1zRmrngf7M5 xZQG6fKWuIur3RI= Message-ID: Date: Thu, 16 Jul 2020 16:26:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200716121821.GA5105@sirena.org.uk> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 16/07/2020 ? 14:18, Mark Brown a ?crit?: > On Wed, Jul 15, 2020 at 02:03:08PM -0700, Nicolin Chen wrote: >> On Wed, Jul 15, 2020 at 03:05:19PM +0100, Mark Brown wrote: >>> On Tue, Jul 14, 2020 at 01:50:50PM -0700, Nicolin Chen wrote: > >>>> Thanks for the input. Fox i.MX6, I don't feel it would be that >>>> drastically different though. And both SSI1 and SSI2 can simply >>>> select the same root clock source to avoid that happen. > >>> If you've got two radios that both need to sync to some radio derived >>> frequency it gets a bit more entertaining. > >> I'm simply curious what could be a problem. Do you mind educating >> me a bit? And ASRC here isn't a radio but a sample rate converter >> working as a BE in DPCM setup, using radio-capture for example... > > My understanding was that this application was using the ASRC to convert > between the sample rates of two different radios - the rates may be > nominaly the same but in practice different so the audio will glitch > after a while when the clocks drift far enough apart. That's part of the issues we had to solve, yes. The other part is more traditional sample rate conversion on an as-needed basis, as we can't assume which rate will be used (iPhone's use 16kHz, Android phones stick to 8kHz, and headsets can use both depending on their capabilities).