Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3942782ybv; Mon, 10 Feb 2020 09:15:14 -0800 (PST) X-Google-Smtp-Source: APXvYqzSYcUQWF9/+10sFUtmZbxfdWyzSHLtUFPJbSbXnhDdbi2OGyjb17SYMSERdGi8LEthgdxm X-Received: by 2002:a05:6830:2154:: with SMTP id r20mr1916421otd.131.1581354913790; Mon, 10 Feb 2020 09:15:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581354913; cv=none; d=google.com; s=arc-20160816; b=nJLbwX+TqRATJ6UJKo//mbecjlZSUETMANSciuDCMBOxQKJmeoBlUEoDdiDuKpmK2O pWPDgrVtiXNGi7lEgkpAeZcl0H5WWIrXZksFDkkfERUAxVwO67iOc+3pL2iyY0qi6KmF p16YaThfFOaBn2hM25E8aA83HxLHFw3w6loFv335sMR4Z2YKbuy8P4umMNm0H2+YyNRY eBJWZOAFE51/LqYnbg4vMzo8ng12ZvhKkYaeBg2220hR+HDOTdXnDG9t4WiAT8OexEzw ou2Ajr9H7WeX5jX6oHu5ET4kLdkZs8s6KfwIXGIE46xFExPw7qRu0f6LYWuNUVquL7zV EZ/g== 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=eF+04ZGVf2fJiXEo3RLvJAFtKWhdL+MG4jKGtRigICU=; b=E79746xH7trRu0uTUtJJCmUNCD3SVzPlzK7C/qqZErPr90qds0bykoaNSULGiWzKqY 4nlSMpGQyce5A/DReLSZPGJvCA8At6l8oDLA1dZ3+jSWq1ST1KMF3jsSoI6HT6rNHC8E mjuNE8L5TOo9ziWGIFrLpCdXbt58+cZJMUyxvFWow0dt5cGPzIj5u4a9TMESqMpN65mc 7xH8M7Lmoi0vli30RBO+1Qi7y+p5HCnAAUEk5ztyi/zDzom5yQHpwDZ3WaS51Pmf2jvs uQ4ub9WNEKQRzlwlHSOzkvi9Eui4FC+bURHrFvNC9hiMVUHDx69TT7/P8LVNTmsLKt+9 +L5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@serbinski.com header.s=default header.b=hVuMwRTg; 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 x2si495399otk.29.2020.02.10.09.15.02; Mon, 10 Feb 2020 09:15:13 -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=hVuMwRTg; 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 S1728069AbgBJRNw (ORCPT + 99 others); Mon, 10 Feb 2020 12:13:52 -0500 Received: from mail.serbinski.com ([162.218.126.2]:38510 "EHLO mail.serbinski.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728006AbgBJRNw (ORCPT ); Mon, 10 Feb 2020 12:13:52 -0500 Received: from localhost (unknown [127.0.0.1]) by mail.serbinski.com (Postfix) with ESMTP id 4B3FFD006F9; Mon, 10 Feb 2020 17:13:50 +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 Y9dGI62t9Mvd; Mon, 10 Feb 2020 12:13:45 -0500 (EST) Received: from mail.serbinski.com (localhost [127.0.0.1]) by mail.serbinski.com (Postfix) with ESMTP id 948F0D00693; Mon, 10 Feb 2020 12:13:45 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.serbinski.com 948F0D00693 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=serbinski.com; s=default; t=1581354825; bh=eF+04ZGVf2fJiXEo3RLvJAFtKWhdL+MG4jKGtRigICU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hVuMwRTgIWnWwKzt6Cz31jCiTwi7QV7Rk7KLz2N5ck5Ukj7WM5pb+LUqtXFJZg7fD 8bdluM5+H0bY0iXDyaNj9AZQUQyPyvOiK/au/Y10dtGmAn0schtMFxCmjoVr+l6Yo4 s3HCE95Fl8eNYhKKBNIlPQOFheoC5u4KKPwFgZcw= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 10 Feb 2020 12:13:45 -0500 From: Adam Serbinski To: Jaroslav Kysela Cc: Mark Brown , Srini Kandagatla , Rob Herring , Bjorn Andersson , Andy Gross , Mark Rutland , Liam Girdwood , Patrick Lai , Banajit Goswami , 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: <317edce5-a982-549b-84c2-84cdc1d92c9a@perex.cz> References: <20200207205013.12274-1-adam@serbinski.com> <20200209154748.3015-1-adam@serbinski.com> <20200209154748.3015-9-adam@serbinski.com> <317edce5-a982-549b-84c2-84cdc1d92c9a@perex.cz> User-Agent: Roundcube Webmail/1.4-beta Message-ID: <16297aae0c0c330b7b48150eae512e32@serbinski.com> 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 11:18, Jaroslav Kysela wrote: > Dne 09. 02. 20 v 16:47 Adam Serbinski napsal(a): >> This makes it possible for the backend sample rate to be >> set to 8000 or 16000 Hz, depending on the needs of the HFP >> call being set up. > > Two points: > > Why enum? It adds just more code than the integer value handlers. Because enum allows the potential values to be restricted to a set of distinct values rather than a range. And while yes, I understand that the value can be validated, or the step can in this case be set to correspond to the difference between the current 2 values, this approach would neither make it clear to the user what the permitted values are, nor would it scale well once additional values are required. > Also, this belongs to the PCM interface, so it should be handled with > SNDRV_CTL_ELEM_IFACE_PCM not mixer. > > The name should be probably "Rate" and assigned to the corresponding > PCM device. > > Add this to Documentation/sound/designs/control-names.rst . Above 3 lines are noted, I will make these changed.