Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp392087ybe; Thu, 12 Sep 2019 22:50:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQEAo/BOjHNhx29KlCK+RYmjHDgYKBCdw+LV3tguwpQ9ZoPF1gf1mK31Xv5Nr5h7tJ8/PD X-Received: by 2002:a17:906:b896:: with SMTP id hb22mr37732433ejb.59.1568353854303; Thu, 12 Sep 2019 22:50:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568353854; cv=pass; d=google.com; s=arc-20160816; b=ADRw84gdUYq2QRrWAv8WpnbyY7DpiTswyGQnVCaNszAyTqB71/7Iutk2VRul5FEJZm y43xYuL6LuVi9oBI2G6I5cvYFL7Wxsu1r2P6eXGVMGpwsoIhQ/J8NgRg0iznkQdwuShk U743c0+I4NkLX/fLRtXffnJM8cNDZisv/GzNyTr1jTqo2xUqfUY9swFkdIfT9ve0MHnl /nZHHzaPafwkPLVDiYZ/83QcxYGb9RqTowzb/mkxiIRgAhcOoaTAo9cKwKVmdfzLZGIY SrAkL50jm7srq2KPaw1bgimVv01f4n9qGAZ7Tv5csBY22kRBzlg9/ME46eeZBo7x809y F5eQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=zBCCnSJLpEpCMycoFYk04JXgRHL+UjgAb7/e8w8YAeI=; b=Jv7Oo3eoPWSc/2m3fMHuV0YldCZ8Qyr1y/9+CgXUbHYKUfbp/qwd1JYhZqrdeEi2jh 2wcEqhVmaTO6dSHd5HEK7APSbMYAvvXtcsGhBeUsa2ySpAkEGH/2iCe6vHs5RAKR0X+S MbDd0ZUx6HkGUF7iNN0ejPJuY4hjhxWGlzHOlizOp6VqtsH4H01JSxqvTrJx7l8IOzwK VhUK+SifBGevCYkOMrkFYw2Z+M2xC1CVth1Uhygr3SJkz8AEAfmnv2lC625TKyxJEzFL VoqrF6W4T0bkNDpPMIf84eoRPo50zg5SByYYntuvaAjFjn+oc3R+hsMdg7KHMoRIFzq2 2s3g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=c7EzigXK; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q25si2640641edb.159.2019.09.12.22.50.31; Thu, 12 Sep 2019 22:50:54 -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=@nxp.com header.s=selector2 header.b=c7EzigXK; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726164AbfIMFsp (ORCPT + 99 others); Fri, 13 Sep 2019 01:48:45 -0400 Received: from mail-eopbgr10047.outbound.protection.outlook.com ([40.107.1.47]:38151 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725385AbfIMFso (ORCPT ); Fri, 13 Sep 2019 01:48:44 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Md7nIJRWD8rRWiYOpNWXsWjikTdmw+1mHwXaoy0knyl6qBSzXzg81m/a8nWhV0+HsiSPq4HoxaNHCyupTUIcEy+GxlNpdNSlwP/qyyWeh28alp9/u4mf3jqkEKC9DjgDH4qLNzz81ngfx/cXnLKBncS8fV3xgKsnW5Wi4m+rXJx1qXeuKr0mq1YV13R+51zd9JXXmbs4SEdk+qws7RIbzrbE0E+VlGG1tD/Qvq8Uw6NhRe+NDWmu2/UCEKiPNYdRnfmDmfk4J+h3Ehm/2npLQZaHN94Jbh7ckxP7De8Gs+1B86oOxGMRupMdNZQLxtfeM0ExpCwI6STpSXW9PnjgSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zBCCnSJLpEpCMycoFYk04JXgRHL+UjgAb7/e8w8YAeI=; b=Cf1gA7xPgeZH7lMHz7uwwVIUm5XZdYq2UyyI02biPNESMdioqsaD68iPS1iwM7zZyUuC568eSyn3/kLyfHoshXV4El0P7aTL6McE5nHdEUIV3p8XNxdNwuXmF4PLuj6Co5/yH24thMM47xYurvuGbuSWBe/tqGSBXma0G76Rsx5oGliEsovQQbfOdCGGw5mNqnq/wedc61YcN0BU8XQn1URk5nyiv0aTvXCTPl7jXPfVWAHML6VOIkNThD7iJhD52FlwkvoPqEZWZpfo+TQkfYyL8+kfqeJj8oi24QVHkdkeBvQGrT//AZYYMB02uvaa0ar/WYxPJKk2ngyQCg8s1Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zBCCnSJLpEpCMycoFYk04JXgRHL+UjgAb7/e8w8YAeI=; b=c7EzigXK38N6U3PYd7xzVZ+sA35yjF8tdi6Vy7t6SGK7kFWohNohHFWtQb7lvYoDJU61yslrfrpZ3DWXSLKdi7wM52hQY82wAR+olgSyix64bxqFVmd3HdT9g7LiVe3jVIBc4dKqpeFOyEwJgH2GzKI/4jYXgTpyPiCwrtetM6o= Received: from VE1PR04MB6479.eurprd04.prod.outlook.com (20.179.233.80) by VE1PR04MB6701.eurprd04.prod.outlook.com (20.179.235.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.20; Fri, 13 Sep 2019 05:48:40 +0000 Received: from VE1PR04MB6479.eurprd04.prod.outlook.com ([fe80::5049:d7e5:95ff:3d53]) by VE1PR04MB6479.eurprd04.prod.outlook.com ([fe80::5049:d7e5:95ff:3d53%7]) with mapi id 15.20.2263.018; Fri, 13 Sep 2019 05:48:40 +0000 From: "S.j. Wang" To: Nicolin Chen CC: "timur@kernel.org" , "Xiubo.Lee@gmail.com" , "festevam@gmail.com" , "lgirdwood@gmail.com" , "broonie@kernel.org" , "perex@perex.cz" , "tiwai@suse.com" , "alsa-devel@alsa-project.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" Subject: RE: [EXT] Re: [PATCH 2/3] ASoC: fsl_asrc: update supported sample format Thread-Topic: [EXT] Re: [PATCH 2/3] ASoC: fsl_asrc: update supported sample format Thread-Index: AdVne99A50iblB+wSvqDBZhWvxbm4ACSRBCAAAw2tDA= Date: Fri, 13 Sep 2019 05:48:40 +0000 Message-ID: References: <20190912235103.GD24937@Asurada-Nvidia.nvidia.com> In-Reply-To: <20190912235103.GD24937@Asurada-Nvidia.nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shengjiu.wang@nxp.com; x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 80d7f1c8-ba1a-45d3-6e9d-08d7380e07e2 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600166)(711020)(4605104)(1401327)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:VE1PR04MB6701; x-ms-traffictypediagnostic: VE1PR04MB6701: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 0159AC2B97 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(136003)(396003)(366004)(346002)(376002)(39860400002)(189003)(199004)(256004)(8676002)(76116006)(3846002)(66946007)(6116002)(5660300002)(81156014)(52536014)(99286004)(6246003)(81166006)(53936002)(14454004)(76176011)(7696005)(486006)(54906003)(66556008)(66446008)(64756008)(66476007)(316002)(2906002)(229853002)(11346002)(4326008)(66066001)(1411001)(7416002)(446003)(305945005)(476003)(6506007)(478600001)(7736002)(55016002)(8936002)(86362001)(102836004)(186003)(26005)(6916009)(9686003)(71190400001)(25786009)(6436002)(74316002)(71200400001)(33656002);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR04MB6701;H:VE1PR04MB6479.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: vRfzF51we1zFpC03lvmDd+vNL4EZIt1dtj+HQa8TNvjHhUkCHZxvcQEldJS4HzlxEbwouGAzNQ3Kbl+kXXfPe3E31eshzv5xjV46Mfiv6EgkyeP0YR7fOi4fy57N/OPpXWYJ7LQ9CP92GKHiwlADBNV0lUiscF0zyzurOCMPzD/hrI2eePynDYwaCrujswr3NKyxhJXupjA+GWVbIrawrUMx2l3tVfga1uiVI8z9nyNhIie20XyATV9FtmWKxNIvkEXrnQM5nB9W7PCZ4eeYSm3lEfLflusEaeqxFitem/zZCUGQIxzRQ32j9Syx+6p4xk5B7PsJOQEMkX78xiE9K0adDoWrQ0/lgjL8dF30zDzfj0Gq68/v2j/PkYuMIEDqoND6OQ+z7tlweijdMwz/DZ6hweg24hJ2OyMu3dVXyds= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 80d7f1c8-ba1a-45d3-6e9d-08d7380e07e2 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Sep 2019 05:48:40.7752 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: GIkSRxHUcaYmMn9kgeGtSEr7ArNIH3/+q4ObXJL+kVbiNS9b/ylmVoLwTE742i5XBKW/Tagij7gCZ62Lgc0V1Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6701 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi >=20 > On Tue, Sep 10, 2019 at 02:07:25AM +0000, S.j. Wang wrote: > > > On Mon, Sep 09, 2019 at 06:33:20PM -0400, Shengjiu Wang wrote: > > > > The ASRC support 24bit/16bit/8bit input width, so S20_3LE format > > > > should not be supported, it is word width is 20bit. > > > > > > I thought 3LE used 24-bit physical width. And the driver assigns > > > ASRC_WIDTH_24_BIT to "width" for all non-16bit cases, so 20-bit > > > would go for that 24-bit slot also. I don't clearly recall if I had > > > explicitly tested S20_3LE, but I feel it should work since I put ther= e... > > > > For S20_3LE, the width is 20bit, but the ASRC only support 24bit, if > > set the ASRMCR1n.IWD=3D 24bit, because the actual width is 20 bit, the > > volume is Lower than expected, it likes 24bit data right shift 4 bit. > > So it is not supported. >=20 > Hmm..S20_3LE right-aligns 20 bits in a 24-bit slot? I thought they're lef= t > aligned... >=20 > If this is the case...shouldn't we have the same lower-volume problem for > all hardwares that support S20_3LE now? Actually some hardware/module when they do transmission from FIFO to shift register, they can select the start bit, for example from the 20th bit. but not all module have this capability. For ASRC, it haven't. IWD can only cover the data width, there is no Other bit for slot width. Best regards Wang shengjiu