Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5384931ybl; Tue, 27 Aug 2019 03:59:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrgMMsY8wtIwvPacqZ6mZEitYV5v3XtmAi89zWC46I/k3hDzV5e3nNvut5UUlTY33ovPec X-Received: by 2002:a63:2744:: with SMTP id n65mr20524993pgn.277.1566903541962; Tue, 27 Aug 2019 03:59:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566903541; cv=none; d=google.com; s=arc-20160816; b=kE41EiUvLOz//YFGIaANN4kR4QxyYWaakcRL5pGI8ytn8+GF2PBfpgmDk86jgxMVZA aOwCkBgfpzdasaqjaOBq4weN+2z6Xk2gT7vJXZ8Pbf76YzzW+ElLUw1su8D3kVJwv3/4 d2w9JbjGrIFR0pVssSiubHf1u8ZnIOzgMRHLJU019AfZ6RXCtBcGGTp7iv17stFLhw20 oLqEU3Xh0Fevyuy11qfzkc8Ja7XdUMSuZ5kfsUo/iazlsWfUD/4i+4l2gn0zcCKsPU/M 5pIho2Z+io3chIxB5cxc0ywzr8Eb67niltnqFbopF4EFLfL8jIGTnoi3LnBKVQtsR3Vs ZlLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=wq/U2uqRcLoFz7h5fswTveJreTohoqdRqnhzH4lXvVc=; b=svNqEZdAERxVEVAqKKXZNmkM7biAPZ4RL/uBYy5r8sCJyN1F4GIqZtin08tMxL0VA0 Xet2ESpRtj7JTjezoVkMEDn2eVChxlPUibcacHCjljbHAdfq77lY2i1SM/N9SHCYfKxF xF4pQL2ObRCT5jUS5FovrSDhL3mIkq/DFlqYd2CdKp1oNVTTP99x+E88SuY+BqML6Q6Z v3BlwaSUrIKA/6okL1RFnI74ROiOJ1ddq6BrJsINoxKH7d/WiijDt6Af3icbF+PgoVFR TtQH4xH/Z2DzyYCBcwMcxOJyED3UgAt71nvUyKAyctyQWau+h7yJrZgCKRbArAuEDHlB temA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NqNrQmQF; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11si11226634pgt.124.2019.08.27.03.58.45; Tue, 27 Aug 2019 03:59:01 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=NqNrQmQF; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728962AbfH0K4A (ORCPT + 99 others); Tue, 27 Aug 2019 06:56:00 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:44089 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726392AbfH0K4A (ORCPT ); Tue, 27 Aug 2019 06:56:00 -0400 Received: by mail-lj1-f195.google.com with SMTP id e24so17993065ljg.11 for ; Tue, 27 Aug 2019 03:55:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wq/U2uqRcLoFz7h5fswTveJreTohoqdRqnhzH4lXvVc=; b=NqNrQmQF1TMINxnG3tXMC6N5lSsJnysRJ2K4cMrSNhSxsvBEaXWJi9hcdMosgflzuj FCBt/kJFLNjNFxuovam6nPV8YMSq07JTyoks0a12zNst31Hu/OGjLsRQnmnk1u95vL8q 96rtvTczjT2qyj0J5j+n2gVnXJiyMoxyl0gQYV9ANzRPa+zfFMBoVKLhcSm8IYrhujwS pucH7orz6GYQ98O8FpJXrIVLkQxoTmG40eyJ8t4D4x49aEERcS6lSRbxVwxNB7ZkJn3q q7pgDqiayFM2B6KfTf4GFJXxI/QfLb9Z65Qyd1G85gHlazbmKo/koDG+OvWDpGLLPzqd jMPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wq/U2uqRcLoFz7h5fswTveJreTohoqdRqnhzH4lXvVc=; b=SZJYwJJXiTtnlUDoRIhmVMpXju9CJ62GxedP8HHIzLvI0PFgrsifDPNh3Hf3W1oudz UHQU3w88DynuKrS7XSOBy4GnkrGUvKmTwGuKWQPD2e6QQ0+ljcB4bHEdBK6bgi8goQ/F yKrniBByHeKKF+IRcrzb6LL92p5mUk/LTOcn45mCIyDHZmPD9g8T2NmczOWfArJpr/ci fdI/WJn9PsOJdb2NYpEhHJXzgOVPr7WiWQFGxmsNFLI4r3SDx9IRZodvrCm17Gnkxk+Y dMpVnUL2IlyAiieIEF9VAMA+K2KhZzqXKVsi7uW43Z23U+GwxoK91FPsGK8DdBRgYKcp hvMw== X-Gm-Message-State: APjAAAWr8zYCDdN6OTWJw/iWZB54mlMpbe8gM3A/38xFbEbpFSpCg8R9 lmal0sC2L8U3X2OE0lw4ZFj2AGe84mdP/2VVMtU= X-Received: by 2002:a2e:3c12:: with SMTP id j18mr12914274lja.50.1566903358224; Tue, 27 Aug 2019 03:55:58 -0700 (PDT) MIME-Version: 1.0 References: <20190826180734.15801-1-codekipper@gmail.com> <20190826180734.15801-3-codekipper@gmail.com> <20190827093429.fkh4cqbygxxyvkk3@flea> In-Reply-To: <20190827093429.fkh4cqbygxxyvkk3@flea> From: Code Kipper Date: Tue, 27 Aug 2019 12:55:46 +0200 Message-ID: Subject: Re: [PATCH v6 2/3] ASoC: sun4i-i2s: Add regmap field to sign extend sample To: Maxime Ripard Cc: Chen-Yu Tsai , linux-sunxi , linux-arm-kernel , Liam Girdwood , Mark Brown , linux-kernel , Linux-ALSA , "Andrea Venturi (pers)" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 27 Aug 2019 at 11:34, Maxime Ripard wrote: > > On Mon, Aug 26, 2019 at 08:07:33PM +0200, codekipper@gmail.com wrote: > > From: Marcus Cooper > > > > On the newer SoCs such as the H3 and A64 this is set by default > > to transfer a 0 after each sample in each slot. However the A10 > > and A20 SoCs that this driver was developed on had a default > > setting where it padded the audio gain with zeros. > > > > This isn't a problem whilst we have only support for 16bit audio > > but with larger sample resolution rates in the pipeline then SEXT > > bits should be cleared so that they also pad at the LSB. Without > > this the audio gets distorted. > > > > Signed-off-by: Marcus Cooper > > If anything, I'd like to have less regmap_fields rather than more of > them. This is pretty easy to add to one of the callbacks, especially > since the field itself has been completely reworked from one > generation to the other. > ACK That's fine....I've been doing that with the patches which follow this. CK > Maxime > > -- > Maxime Ripard, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com