Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4085243ybv; Mon, 10 Feb 2020 12:01:25 -0800 (PST) X-Google-Smtp-Source: APXvYqwq906XvqWXiNJe0VCzCD5IVmWQXuDBH3wPyfP9eInAmg4p/FLOiLN5dTW+NY1Qzc5nvFPj X-Received: by 2002:a9d:4f02:: with SMTP id d2mr2246372otl.368.1581364885508; Mon, 10 Feb 2020 12:01:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581364885; cv=none; d=google.com; s=arc-20160816; b=y70PcjurMPLz3PZlV1NPNJBm+9WvAxxrbssRhPoE/w3AY8BTBqrt5kH+xF9tAVADXe 6tg5aC8S5M3dj0rtROJa7w7077q+7n86ogtUJJWgHVsV9WckiQzll2AS+LJ/GhEtRixx 0jIPg5qI+6bKqujjvvzfcCTyrOIxBmXjrW1giTwdV+RWiR4Vdi8BrpsR9vUrst7u0eM6 ROvJdhBb9vGTT8rh517DY0aq/TMolDe2omIVa9z5dfQ6BW5EzNe5SsIxOXx0f4j4HIKg WUlnJqXWoH/yLEl4FUHSPCqWWC1RkYOpszysUaY4ox7Z+03A1Zuo4+18TQxcoWB1EIER eW+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-filter; bh=FC0suK3LacpLEIkSR/LMi90MqKyqvjqaemkIxiuQnsQ=; b=fzAvx6iS4ZYRcFEkkzHO9zIs4tGPjZwou+3EsSYPLuLyjK35xJo8Q4XgvDXvb/2W5L GdJ/4zwqKIf0OILJnXP7NNq5VbHhl3//Pq6/uLGAYOhE1N3j7mEIK4yMv5DUAWYeC0PR UzlO+A2wAVfIaVw9SJHZzGUtdmspl6nJanoujZlcaxoSHmXjJXDRL4M9OLVbt17rajF7 MONKGu0Tmys61egC8ZYrW0i5GP8MHcBBNJ94HDpo9xhhN34bmlnOVBOOHQcWn2Qp4RGM iGPZjfOxNPhSBt4HpNdtbbFg9jeiElXlbaJQnxjreFx1QGZm5QMtsj6Ad4z8oIGhf2Nl 0IbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@serbinski.com header.s=default header.b=eQXczSjB; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t77si578677oie.146.2020.02.10.12.01.12; Mon, 10 Feb 2020 12:01:25 -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=@serbinski.com header.s=default header.b=eQXczSjB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727254AbgBJUBC (ORCPT + 99 others); Mon, 10 Feb 2020 15:01:02 -0500 Received: from mail.serbinski.com ([162.218.126.2]:36266 "EHLO mail.serbinski.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727003AbgBJUBB (ORCPT ); Mon, 10 Feb 2020 15:01:01 -0500 Received: from localhost (unknown [127.0.0.1]) by mail.serbinski.com (Postfix) with ESMTP id 74951D006F9; Mon, 10 Feb 2020 20:01:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at serbinski.com Received: from mail.serbinski.com ([127.0.0.1]) by localhost (mail.serbinski.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vPrZs-h4-A_j; Mon, 10 Feb 2020 15:00:55 -0500 (EST) Received: from mail.serbinski.com (localhost [127.0.0.1]) by mail.serbinski.com (Postfix) with ESMTP id 322B0D00693; Mon, 10 Feb 2020 15:00:55 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.serbinski.com 322B0D00693 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=serbinski.com; s=default; t=1581364855; bh=FC0suK3LacpLEIkSR/LMi90MqKyqvjqaemkIxiuQnsQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=eQXczSjBjgUAdnSoYpeMqwFZ++51LDVybQH+o0mOVj6TcppiRNma7GYgngajWpLRy N6apQTaUgSnSEihCmL0eSKt2yLk+lUhE28D5bW1nv/0dJy98An3AE25X7JUaLGvfLK GtTjy77x+JbNHujwNXTMNPs6FAJNhsD0x7FHRaIM= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 10 Feb 2020 15:00:55 -0500 From: Adam Serbinski To: Mark Brown Cc: Srini Kandagatla , Rob Herring , Bjorn Andersson , Andy Gross , Mark Rutland , Liam Girdwood , Patrick Lai , Banajit Goswami , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 8/8] ASoC: qcom: apq8096: add kcontrols to set PCM rate In-Reply-To: <20200210182609.GA14166@sirena.org.uk> References: <20200207205013.12274-1-adam@serbinski.com> <20200209154748.3015-1-adam@serbinski.com> <20200209154748.3015-9-adam@serbinski.com> <20200210133636.GJ7685@sirena.org.uk> <18057b47c76d350f8380f277713e0936@serbinski.com> <20200210182609.GA14166@sirena.org.uk> User-Agent: Roundcube Webmail/1.4-beta Message-ID: X-Sender: adam@serbinski.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-02-10 13:26, Mark Brown wrote: > On Mon, Feb 10, 2020 at 10:45:16AM -0500, Adam Serbinski wrote: >> On 2020-02-10 08:36, Mark Brown wrote: > >> > This would seem like an excellent thing to put in the driver for the >> > baseband or bluetooth. > >> The value that must be set to this control is not available to the >> bluetooth >> driver. It originates from the bluetooth stack in userspace, typically >> either blueZ or fluoride, as a result of a negotiation between the two >> devices participating in the HFP call. > > To repeat my comment on another patch in the series there should still > be some representation of the DAI for this device in the kernel. Respectfully, I'm not sure I understand what it is that you are suggesting. Is it your intention to suggest that instead of adding controls to the machine driver, I should instead write a codec driver to contain those controls? Or is it your intention to suggest that something within the kernel is already aware of the rate to be set, and it is that which should set the rate rather than a control?