Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2439140ybv; Mon, 24 Feb 2020 05:20:27 -0800 (PST) X-Google-Smtp-Source: APXvYqwwFZ5PNSilv2K32B7p8FsjIJmYlGgUd8c5OpgAS7NtEurO6kfH28Nqr0Z+SVXsgA8TucUA X-Received: by 2002:a9d:4c8e:: with SMTP id m14mr38110908otf.245.1582550427473; Mon, 24 Feb 2020 05:20:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582550427; cv=none; d=google.com; s=arc-20160816; b=qhCxaDu3f125n8epCWBUYZCPVfEFjxXoQEizxsO4zU9hKImy3SJLyX0nuuVa9UTANh GOTxQKA3tWj7lsm4OthJroaEUd/UZQEnGr1fUP9okOp8JK4YoKkvOOOLU9D/0I7E7Rr4 s3qO0s72lG1XRBMHSEkqWUeGg737vekNKFy8Fzl7JR1U0gOvQSkoDeC3q76Wrd01g9Af b+rWpDHZMWCF6CvS4hNb5AJeq9xj4YtWNT2yJSE6/QvOiq8pgXqPcy3qaBLw/E93LEqh s8prGuw+uVsZSV2Or2PPCSYC+qyuFo97wzN4u9b8ndpqtfh0h48pcTOep/xDdNC9y59X 7dNA== 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=i2jRsPnXit44BzJZETZ2LQbPkSS/0Y9UdFMz8pkKI7Y=; b=zBXyjByVYPNJhxeKcQB5Qylg6hHGEpJwQhaqdvwj47HNmZqdL6nJf/wIBjfsGEszH2 QiUU2LgdI6ptsD2Cwbvum/Mi7iu9Xk1NvcMFNFbmZkBKhRBlrM7vTbAK0IQaFfnZ5q6w fNmShz6YR7F1oKFMP35PZaLRBJnzfHaj9RBK1WkFABY7ny0R+Cgc1tcM4C8vZzfxCxb2 zZ33J28vsdVdow8e18FvFO92goM2LryXpU5x0sFrit51x7Kp/5sb8AdRuzUk1Ov83yGW VfCM9nemwwtuNCG3Bi2t2G37idyGYPtVcfqL2mhz7QKmki+LA4aUEeDxZHWHlwM+uXvU v7wA== 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 d3si4704499oia.236.2020.02.24.05.20.15; Mon, 24 Feb 2020 05:20:27 -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 S1727513AbgBXNS3 (ORCPT + 99 others); Mon, 24 Feb 2020 08:18:29 -0500 Received: from foss.arm.com ([217.140.110.172]:36960 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727275AbgBXNS3 (ORCPT ); Mon, 24 Feb 2020 08:18:29 -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 C53E730E; Mon, 24 Feb 2020 05:18:28 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 49DE93F534; Mon, 24 Feb 2020 05:18:28 -0800 (PST) Date: Mon, 24 Feb 2020 13:18:26 +0000 From: Mark Brown To: Sameer Pujar Cc: Jon Hunter , 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: Re: [PATCH v3 03/10] ASoC: tegra: add Tegra210 based DMIC driver Message-ID: <20200224131826.GI6215@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> <20200221165535.GG5546@sirena.org.uk> <47f94534-e997-d56c-5793-ae832fb2add4@nvidia.com> <20200224114406.GB6215@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="CNK/L7dwKXQ4Ub8J" Content-Disposition: inline In-Reply-To: X-Cookie: How you look depends on where you go. 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 --CNK/L7dwKXQ4Ub8J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Feb 24, 2020 at 05:59:33PM +0530, Sameer Pujar wrote: > On 2/24/2020 5:14 PM, Mark Brown wrote: > > I don't think so, I'd not expect the individual drivers to be doing > > anything user visible here - if we know what a digital transformation > > looks like the framework should be offering anything that's needed to > > users (and hiding controls that don't have any practical control in a > > given system). > Are you suggesting to have some alternate way of users configuring sample > rates (and other params) and not use mixer control method? I'm mainly saying the driver shouldn't be doing it directly, it should be doing something much closer to hwparams for digital formats. > This is a typical use case we see, > - [stream-1] Lets say high resolution audio is playing (96kHz, 24-bit, > stereo) > - [stream-2] Randomly system notifications of small durations come (48kHz, > 16-bit, stereo) > The requirement is, both streams should be mixed and played. Most systems like this would run the output at a fixed sample rate here so there'd be no runtime configuration. > Is there a better way for user to configure custom audio paths? Fit what you're doing into DPCM. It's not particularly great but it's what we have at the minute. This isn't me not understanding your use case, this is me saying that it would be better to either work like other existing drivers or improve the framework so that it works better for everyone. --CNK/L7dwKXQ4Ub8J Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl5TzSEACgkQJNaLcl1U h9BAhwf/QhpoDg6KiehDe7VRnOhtmPEXAczk9wdg+IxjQr0QRsmC+kn/PQ9O+TJG puwkmjpN5PJmU+kUECaCiZO5midMxKemgI4ITEHhtBGmuOhaRv/Fq4HwHJoYPvNu QCgOqLmAA/A7GSMZFPKterSWZ37254QlSiiBo77wWvzBgsByJ/JaBEyvWOPHQfaJ S+TsoKJV2hh73j8GfBxMJPzoDxoetly2+sUhudtNG7fPAlKyoX7rkRYn/JBmlFxf Zz3VF3oq+6zyraU3o7z/Ki76E5MXclTItaA0qQ0sYKJmVdbN4VMAwmzsqBhVe1e9 fGzmk+Ai8I9CHO4TczYKw5D5YYxs8A== =ZFLp -----END PGP SIGNATURE----- --CNK/L7dwKXQ4Ub8J--