Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5933231ybv; Wed, 12 Feb 2020 03:02:35 -0800 (PST) X-Google-Smtp-Source: APXvYqwbB3JoFUwVRyIRH/ktKvgxtzk8BtEl4N1LbswH23zoFQ2g7klIFpfRE21O8qJ2QU9HfSeq X-Received: by 2002:a05:6830:1d8d:: with SMTP id y13mr8443938oti.344.1581505355875; Wed, 12 Feb 2020 03:02:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581505355; cv=none; d=google.com; s=arc-20160816; b=XCFogQkS+wrpVOPZ37U2ENAgNHHyfXrFPiNZ2v+yazKou0P8eyNPKMg+LJUVevj+y8 0IlQA9kS0kc0If/yXTPjFsa4jqLuDfBFwsPKqKYE+g3C8lq5j+tNQQx6qonz5ZEZ5siL mQcOt88FNt4ikI7/C9ChpR7/WXw4jjaUo6bTCXjO3VnhIXM5D2n0GQNTmIsB/ydwsFR/ vsmVEhYQy5OJqE42hMniuFgyfySRDK9kFfcA6IRsiPG/F4zsui6DB4uF1lQatGt2KkBD jkhw8zMKroyh7fT+h9lIGLPwb9BtH/Ibbf0N7RgYZUiUwsz9iUUnWaIazXA/TCvjYcn8 7+iA== 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=qDlickU02ZsMirNi7OvLtFkUvQ/GB+12rPSlCDuRsos=; b=Aqm0NMVi+VQlfT163WIsYHBfahuMQRClz1zsT0sY3OWZ1l0J1mEDDZD7EqwNlLKrHW r6VjpFIJnB7gSfXn8IvIqm8Mf4ZMawWvl6intQBZYdDabHqNh8DfKel/5997EPYlJDBQ zVWiM5VlMki6L7Os2KZd7GfT/WlEyyR/g/fD77rSINeKYeaDgLJSubZsSdaLxKfyAbSb LzbGPGo8NDJdE75F482Aj+c6XTQ1xlf+oo5Hid/8fawKPksQkjjqzJRhaaMVfkrKse6/ gqAz2oRpLp8b9RMFqjUUbXhGsBDsts2Rj06KDhKgEB80utj1dc/4qXpe3J+fV0+15aaD i7nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@serbinski.com header.s=default header.b=MhWhH9Rd; 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 p13si45834otq.210.2020.02.12.03.02.17; Wed, 12 Feb 2020 03:02:35 -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=MhWhH9Rd; 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 S1728048AbgBLLB4 (ORCPT + 99 others); Wed, 12 Feb 2020 06:01:56 -0500 Received: from mail.serbinski.com ([162.218.126.2]:46110 "EHLO mail.serbinski.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726351AbgBLLB4 (ORCPT ); Wed, 12 Feb 2020 06:01:56 -0500 Received: from localhost (unknown [127.0.0.1]) by mail.serbinski.com (Postfix) with ESMTP id 5B51AD006F9; Wed, 12 Feb 2020 11:01:54 +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 hCMGVnst3C2i; Wed, 12 Feb 2020 06:01:46 -0500 (EST) Received: from mail.serbinski.com (localhost [127.0.0.1]) by mail.serbinski.com (Postfix) with ESMTP id 70D9CD00693; Wed, 12 Feb 2020 06:01:46 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.serbinski.com 70D9CD00693 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=serbinski.com; s=default; t=1581505306; bh=qDlickU02ZsMirNi7OvLtFkUvQ/GB+12rPSlCDuRsos=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MhWhH9Rd+rlN4TPPcXlLIQdva3asJcljwG91E8xKi1vAtOWnGBoigWmwSGU2pqXFw nO4KBxhsAJhSkDSF7B4k82VppgYouU7aODtGzgJqcFM21xggXNK3kELA1LjPP1QRMh 2MDK689fN1KtIpvfYwCymniyKta3p2T8JI6bdK8M= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 12 Feb 2020 06:01:46 -0500 From: Adam Serbinski To: Srinivas Kandagatla Cc: Mark Brown , 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 v3 6/6] ASoC: qdsp6: dt-bindings: Add q6afe pcm dt binding documentation In-Reply-To: <579e0ae1-f257-7af3-eac9-c8e3ab3b52c7@linaro.org> References: <20200212015222.8229-1-adam@serbinski.com> <20200212015222.8229-7-adam@serbinski.com> <579e0ae1-f257-7af3-eac9-c8e3ab3b52c7@linaro.org> User-Agent: Roundcube Webmail/1.4-beta Message-ID: <2989c09149976a28d13d4b4eb10b7c7e@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-12 04:59, Srinivas Kandagatla wrote: > On 12/02/2020 01:52, Adam Serbinski wrote: >> This patch adds documentation of bindings required for PCM ports on >> AFE. >> >> Signed-off-by: Adam Serbinski >> CC: Andy Gross >> CC: Mark Rutland >> CC: Liam Girdwood >> CC: Patrick Lai >> CC: Banajit Goswami >> CC: Jaroslav Kysela >> CC: Takashi Iwai >> CC: alsa-devel@alsa-project.org >> CC: linux-arm-msm@vger.kernel.org >> CC: devicetree@vger.kernel.org >> CC: linux-kernel@vger.kernel.org >> --- >> .../devicetree/bindings/sound/qcom,q6afe.txt | 42 >> +++++++++++++++++++ >> 1 file changed, 42 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/sound/qcom,q6afe.txt >> b/Documentation/devicetree/bindings/sound/qcom,q6afe.txt >> index d74888b9f1bb..6b1b17d31a2a 100644 >> --- a/Documentation/devicetree/bindings/sound/qcom,q6afe.txt >> +++ b/Documentation/devicetree/bindings/sound/qcom,q6afe.txt >> @@ -51,6 +51,24 @@ configuration of each dai. Must contain the >> following properties. >> Definition: Must be list of serial data lines used by this dai. >> should be one or more of the 0-3 sd lines. >> + - qcom,pcm-quantype >> + Usage: required for pcm interface >> + Value type: >> + Definition: PCM quantization type >> + 0 - ALAW, no padding >> + 1 - MULAW, no padding >> + 2 - Linear, no padding >> + 3 - ALAW, padding >> + 4 - MULAW, padding >> + 5 - Linear, padding >> + >> + - qcom,pcm-slot-mapping >> + Usage: required for pcm interface > > Are these not specific to 8k and 16k mode ? > We should probably list values for both modes here. No, this is just the offset that the audio sample is placed in with respect to a maximum of 4 slots, 16 bits wide, beginning with the sync pulse. When switching between 8 and 16k sample rate, it is just the sync pulse rate that is changed. The audio sample will be delivered in the same slot, just at a different frequency. >> + Value type: >> + Definition: Slot mapping for audio channels. Array size is the >> number >> + of slots, minimum 1, maximum 4. The value is 0 for no mapping >> + to the slot, or the channel number from 1 to 32. >> + >> - qcom,tdm-sync-mode: >> Usage: required for tdm interface >> Value type: >> @@ -174,5 +192,29 @@ q6afe@4 { >> reg = <23>; >> qcom,sd-lines = <1>; >> }; >> + >> + pri-pcm-rx@105 { >> + reg = <105>; >> + qcom,pcm-quantype = <2>; >> + qcom,pcm-slot-mapping = <1>; >> + }; >> + >> + pri-pcm-tx@106 { >> + reg = <106>; >> + qcom,pcm-quantype = <2>; >> + qcom,pcm-slot-mapping = <1>; >> + }; >> + >> + quat-pcm-rx@111 { >> + reg = <111>; >> + qcom,pcm-quantype = <5>; >> + qcom,pcm-slot-mapping = <0 0 1>; >> + }; >> + >> + quat-pcm-tx@112 { >> + reg = <112>; >> + qcom,pcm-quantype = <5>; >> + qcom,pcm-slot-mapping = <0 0 1>; >> + }; >> }; >> }; >>