Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2102413ybv; Fri, 21 Feb 2020 08:56:34 -0800 (PST) X-Google-Smtp-Source: APXvYqxZTDrLIFfuGdpx+GGur8bOz2Y7nD1c+M+GMWxx8Heyc7hXSNDlR6DWgN2uFbalUY2MioDH X-Received: by 2002:a9d:6301:: with SMTP id q1mr28179501otk.299.1582304194038; Fri, 21 Feb 2020 08:56:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582304194; cv=none; d=google.com; s=arc-20160816; b=LZDXWX7nW8Q3SSLxbPr4VLTXkwgtR20ytjf0de0jJVHoYxK0ayuGNhhqIXWnppiY1n p9vczUV0CQgQTqSdTAG3AkGsJVO9iog1U2b9Y7x82FB/Svn8oApN0zGt24vwVjvsb6Fu lyh9elTnr/8DlF7RipjXrHh4FAZZMjdSfEFmH0bV3DCBId8ARO2NQ+cuIOSCHn1KNwQV SrCVbRohfYWN2DFpWWJnqkIj2480LTD9DwdfS0A3WVxYM3rOpx8OMxMseLaLYoyAWgSB E4+Wd/wsRHyxuh+N+nHVmf2PN+UY5XTu8Wv03JAPPtR5CzM7jAEURywEZKOs1IYiDWsA gLvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=qGLA/wsnvPk5eYQ3VAm0Tr9NTpf5fl1ip+YZLZy7YFY=; b=fkEyX4Iqjj1UkURvy+Q0yg6JWUMcM2wi3Dg1ntNl5lh4mfRbzRHziNyDYPkDwaqEz3 fUjKQ221KaPzXHn7YxIYly3ZU9ijS8MaFBLGg5y1eHAu+qvgF0rVz9ud4J19CdaWQlX6 mGfTZzcFkEQWufQ4Pk9HZQJ1KJ7hrdG6YhS/GUs3WKPU9lT7ILNr3v4smXrvT8FhKwBX TEAt1jGS25ng9XEOk1GJbkR7pY1RgVLqL21GTEV+T3rCW0/VmHL+uDYs4gKdnabawCwP aKkA2Hf3zKGqKEeWWA6nwrtp42tOHSZ6R1bGKVma6RquLsoDqc5D5Mevs4zGYfCW8GNs U4ww== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k13si1018566oij.118.2020.02.21.08.56.21; Fri, 21 Feb 2020 08:56: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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727775AbgBUQzi (ORCPT + 99 others); Fri, 21 Feb 2020 11:55:38 -0500 Received: from foss.arm.com ([217.140.110.172]:43652 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725995AbgBUQzi (ORCPT ); Fri, 21 Feb 2020 11:55:38 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B070830E; Fri, 21 Feb 2020 08:55:37 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 266203F68F; Fri, 21 Feb 2020 08:55:37 -0800 (PST) Date: Fri, 21 Feb 2020 16:55:35 +0000 From: Mark Brown To: Jon Hunter Cc: Sameer Pujar , perex@perex.cz, tiwai@suse.com, robh+dt@kernel.org, lgirdwood@gmail.com, thierry.reding@gmail.com, digetx@gmail.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, sharadg@nvidia.com, mkumard@nvidia.com, viswanathl@nvidia.com, rlokhande@nvidia.com, dramesh@nvidia.com, atalambedu@nvidia.com Subject: Re: [PATCH v3 03/10] ASoC: tegra: add Tegra210 based DMIC driver Message-ID: <20200221165535.GG5546@sirena.org.uk> References: <1582180492-25297-1-git-send-email-spujar@nvidia.com> <1582180492-25297-4-git-send-email-spujar@nvidia.com> <20200221130005.GD5546@sirena.org.uk> <316ce0d5-318d-0533-ef06-bd7e8672f893@nvidia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JkW1gnuWHDypiMFO" Content-Disposition: inline In-Reply-To: <316ce0d5-318d-0533-ef06-bd7e8672f893@nvidia.com> X-Cookie: Dead? No excuse for laying off work. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --JkW1gnuWHDypiMFO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Feb 21, 2020 at 02:31:05PM +0000, Jon Hunter wrote: > On 21/02/2020 13:00, Mark Brown wrote: > >> + srate = params_rate(params); > >> + if (dmic->srate_override) > >> + srate = dmic->srate_override; > > How does this work for userspace? If we just ignore the sample rate we > > were asked for I'd expect that the application would get upset. > Tegra has a hardware sample rate converter (though driver not yet > upstream or part of this initial series) and if using the sample-rate > converter, then the actual rate captured by the DMIC interface could be > different from the resulting sample-rate. The ideal thing in a component model would be to represent those sample rate convertors directly to usrspace so the routing and rewriting is explicit. > So we want a way to indicate to the DMIC it is capturing at rate X, > while the resulting sample-rate is Y. > I am not sure if there is a better way to do this? Ideally, the DMIC > would query the rate from the upstream MUX it is connected to, but I am > not sure if there is a way to do that. So right now it is a manual > process and the user has to configure these which are not ideal. Is there any *need* for these to be user configurable? What's normally happening at the minute is that either the external DAIs are fixed configuration and the DSP just converts everything or there's no format conversion done and things get passed through. --JkW1gnuWHDypiMFO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl5QC4YACgkQJNaLcl1U h9BuAQf9FRu14PuOOZ+O9sauEIcPzDlfRncn0yonqpoiOL8kSVmvII1P6SzUxVjG KFT1ryG8Jk6CHEYPsfj5meLFRtbk+gB/l/j4+UoVvLdEy6SGGuadmkktdEJucjRG FOHdt2hfaLzIAZKebaESc7yfGhrQ+2B6W1+FW+SxxpZrN4J8FeugjB31LOhCaKZo ZGxy4cHJYjQRWAPKz5fHsjOkHU7Es0ZpqZ+jKq3j/IGQtaNy/T+j+x2kQohcWN7f Bt3DpnlXTOy+iKdk2+7kvWZdo7Cqwydu8IuzvE9cyJc6xsLecENvaOdcbAPwtwvy AScUw0aer+7MukF/p0KS8880tO3ilw== =lUQu -----END PGP SIGNATURE----- --JkW1gnuWHDypiMFO--