Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2810593pxk; Sun, 27 Sep 2020 23:53:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhiQCOc224N3+iJ5aKeMc0EJKwat1f3vq4ByRiHZ96XtcbpA3/00qN62xOTjqCcf8LHNRI X-Received: by 2002:a17:906:cd0d:: with SMTP id oz13mr281496ejb.212.1601276038651; Sun, 27 Sep 2020 23:53:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601276038; cv=none; d=google.com; s=arc-20160816; b=dzylOvVO2SQ2oQUC6CXnUKLNVbJHdJ0W8HKP9NjPFRm+MZp3lTRAn1gfvaMhT90PY+ O8CtBXILF9Eb0amncJrTxFlv8hLJtQwZFHdqqfWGFbbBjrEfHD7kaU8bXcTlwvb5KXZk Cf89u8m0xtbHoW9foCVO02tj36WltYQGfkBbaFF15wlWTA14oup2yJcXv6EQMcr1/bRz Ag7II+sxw2kaF+SLcqS6jbL2p4yQA//Jb0jQzsMcmniJSgzKYLC0uCIlpV1WMoBL6J1V 9qd8+BQ2atLjC775VI+r/hYAG/WCg06441vktlWYSxlebk9Liuzor4wAGb59dMfBCBCw vXIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=WEidnl49rHZ2DAmmBJxbhkOL/nLuUT2Txak2rzfJOo4=; b=Bl/SH79IJog777Q+K790jeEf8wGLhV2gLLaTq4ywGF4fTy2WV2VRz5ni8X4mLZWG2A vj7xqbCTGnvmVYZg8xu5isEYOeRbwR7a5oCQfuEpNu1Ew3I0kEmc2ICQeNcm7ho9gvqs VPIQj1dlmKIZApbjlGxcVOJkk+juzi2SBW321ymjiuVcQe8jRaxrrUI8nsJIH7erQMJV CWK+1Za3rRjfle1P8gs/ajiGQ5DYnwpP+z8OH1wHoO9J5Qh0KJ6K8JmV91t+0of+jJxB 6JTm0RrWUABS8/SysA4nrzl7+uKZskVu4Au9Kqq6WWCD+42A0LH8YHW2w2mDNo0xWyiL fZSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si18260edv.145.2020.09.27.23.53.36; Sun, 27 Sep 2020 23:53:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726497AbgI1GwU convert rfc822-to-8bit (ORCPT + 99 others); Mon, 28 Sep 2020 02:52:20 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:36905 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725308AbgI1GwU (ORCPT ); Mon, 28 Sep 2020 02:52:20 -0400 Received: by mail-lf1-f67.google.com with SMTP id z19so9818788lfr.4; Sun, 27 Sep 2020 23:52:18 -0700 (PDT) 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:content-transfer-encoding; bh=XphzwiB62aADzo7H5xKbNzFDZU+uUK4UzX7X79ljoMQ=; b=ub1PN8/m+Ey565ibWNqP+DTA8/HX+lxnFpZZlqeUl8si+lcCXpKFYf6TFzMq3gX2A5 WHRwvKoQjuSfSFrZRIVTG4lbkhkt/Mp+u00RvXVMmR/LQRE8O0YxOmOnwx84c2b4oUR3 Y1F/05Rha2aJQytzXqQWSwby03RAkuli9eg8g7L66ZzwHt4wKuWTIeDOa48JtpsxnQ79 ubKiWPe63pnQhl9je907HfbYz/k7zqpvggC7JwKXty7KRUjRSRf0tcwXY7dgj87oCY/s bCHZSsVYPD/A1msQ6q6ONepuA16hr1dwi2Om7kB9IGkST4Iym314Yt0rYAco90WEBiw8 Vcbw== X-Gm-Message-State: AOAM5317Sfvdin4xTwkE6sQF2wBJUX5WASkJlf/glkVs6woMsY003I6H P+fjP3EJ2lQPrX8eOi2AMmznVlrmmW1Z0g== X-Received: by 2002:a05:6512:3191:: with SMTP id i17mr3163323lfe.409.1601275938032; Sun, 27 Sep 2020 23:52:18 -0700 (PDT) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com. [209.85.208.182]) by smtp.gmail.com with ESMTPSA id r77sm2711611lff.115.2020.09.27.23.52.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Sep 2020 23:52:17 -0700 (PDT) Received: by mail-lj1-f182.google.com with SMTP id a15so120447ljk.2; Sun, 27 Sep 2020 23:52:17 -0700 (PDT) X-Received: by 2002:a2e:760e:: with SMTP id r14mr4132627ljc.331.1601275937498; Sun, 27 Sep 2020 23:52:17 -0700 (PDT) MIME-Version: 1.0 References: <20200927192912.46323-1-peron.clem@gmail.com> <20200927192912.46323-6-peron.clem@gmail.com> In-Reply-To: <20200927192912.46323-6-peron.clem@gmail.com> From: Chen-Yu Tsai Date: Mon, 28 Sep 2020 14:52:05 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linux-sunxi] [PATCH v5 05/20] ASoC: sun4i-i2s: Set sign extend sample To: =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= Cc: Maxime Ripard , Rob Herring , Mark Brown , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Marcus Cooper , Jernej Skrabec , Linux-ALSA , devicetree , linux-arm-kernel , linux-kernel , linux-sunxi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 28, 2020 at 3:29 AM Clément Péron 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 while 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. > > Set sign extend sample for all the sunxi generations even if they > are not affected. This will keep consistency and avoid relying on > default. > > Signed-off-by: Marcus Cooper > Signed-off-by: Clément Péron Reviewed-by: Chen-Yu Tsai