Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2062366yba; Fri, 19 Apr 2019 11:21:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtcRJesptMZimTleBbFs+R4VnM0yAmksZa+/Pw17KFDOVCcIj7632qziW6dqHVbamoP0wz X-Received: by 2002:a63:4616:: with SMTP id t22mr5169615pga.217.1555698091907; Fri, 19 Apr 2019 11:21:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555698091; cv=none; d=google.com; s=arc-20160816; b=DyLKWuZHfdzoFrHUfj6RDq1kjXF/1aafvyCW1TWvtHh9rB6Sgss6pKwI0vyp5ddRXE Su4l4IVXwFJiOWV33rThK10UMrCozP776eRzV12RAuj+/bh7lPvVixrG/7fSzmrG+8Z7 6xnV3M36/yHAr3tAHRzWLTZSBhuwH1ZIbY+7mYFmI7Q9yIgGUsxhAiXNBW6L/c0Z0kLC Fo9LbwkyjOvk39/4KGc8eWI1oK6UODfc2tWFyv+WlCa+zs6M/fEMNF5M52PUsqbVuCTX CQxY8rjEGqv0VcKXc9sbpf/O+26O+61g2lV5ZGLpTpvh37ivgCwNnWkQQZKOxpsJNqrA 0OVw== ARC-Message-Signature: i=1; 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=dECI7J9J8JH+Rb+CFeGCnYlZF8Smt2mZoTqpDWI5UHQ=; b=NIRM3ZiNdX5ec8MzqK1jv9XSv8kDQ68YG+5Q6YwHbujHBwPGBnqgsTvXOvVC+61Hnh TxWzEt8SXCsNMDxbyuN4EXiikf1ogkzJQy2Wm5JMG8m+CRI7C3HXQWdw/1jX/UTeomxy nK8tL1KIY6p7KPtYT4dxybL1VEKC3hYsvEEGmcUjUiL+lnEJ8yS4qeWbmZdlkrWx82dW iIB5ZsvcmuULzJuwU/vkZzgr+TI0FzWQc4XvXApOpHdtyvEthjTCcOgKSIBMlCILwLdS gQgDCl9BTrBW13AXBElauFX7bxq0QJhOtEWah20Av9sCMCU1lT1fTyc56vs9hLeB5Lsk F8Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=gvhSrw7L; 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 ci14si6062013plb.264.2019.04.19.11.21.17; Fri, 19 Apr 2019 11:21:31 -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=selector1 header.b=gvhSrw7L; 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 S1727639AbfDSST1 (ORCPT + 99 others); Fri, 19 Apr 2019 14:19:27 -0400 Received: from mail-eopbgr140055.outbound.protection.outlook.com ([40.107.14.55]:5761 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726033AbfDSSTZ (ORCPT ); Fri, 19 Apr 2019 14:19:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dECI7J9J8JH+Rb+CFeGCnYlZF8Smt2mZoTqpDWI5UHQ=; b=gvhSrw7LjB3i8nD9uDIj72Iqdn97xlJ63fWoIlvU8gJdzIDfbhLICnElz+DAUVqsPhEsKp3drVMVeAf1vcNiS3rXT+srna/TCp6m4dOu7CeOpT1M1cIL4tG284uhTPKpKhtB6mAqeSAV5UDTgzVUULFWJqMhnPaeXJJDqfENRBk= Received: from VE1PR04MB6479.eurprd04.prod.outlook.com (20.179.233.80) by VE1PR04MB6349.eurprd04.prod.outlook.com (10.255.118.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.12; Fri, 19 Apr 2019 10:23:56 +0000 Received: from VE1PR04MB6479.eurprd04.prod.outlook.com ([fe80::6c03:86ad:729d:e311]) by VE1PR04MB6479.eurprd04.prod.outlook.com ([fe80::6c03:86ad:729d:e311%7]) with mapi id 15.20.1813.013; Fri, 19 Apr 2019 10:23:56 +0000 From: "S.j. Wang" To: "timur@kernel.org" , "nicoleotsuka@gmail.com" , "Xiubo.Lee@gmail.com" , "festevam@gmail.com" , "broonie@kernel.org" , "alsa-devel@alsa-project.org" CC: "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH V4 3/3] ASoC: fsl_asrc: Unify the supported input and output rate Thread-Topic: [PATCH V4 3/3] ASoC: fsl_asrc: Unify the supported input and output rate Thread-Index: AQHU9pn+NSRrZ2vEvkaToIFbRKid0Q== Date: Fri, 19 Apr 2019 10:23:56 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 1.9.1 x-clientproxiedby: HK0PR03CA0082.apcprd03.prod.outlook.com (2603:1096:203:72::22) To VE1PR04MB6479.eurprd04.prod.outlook.com (2603:10a6:803:11e::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=shengjiu.wang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2551633b-7f5d-473a-6c56-08d6c4b120f9 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:VE1PR04MB6349; x-ms-traffictypediagnostic: VE1PR04MB6349: x-microsoft-antispam-prvs: x-forefront-prvs: 0012E6D357 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(39860400002)(376002)(136003)(366004)(346002)(189003)(199004)(97736004)(73956011)(19627235002)(25786009)(26005)(2501003)(2906002)(71190400001)(478600001)(7736002)(102836004)(2201001)(71200400001)(256004)(6506007)(386003)(14444005)(52116002)(53936002)(99286004)(66446008)(68736007)(66066001)(66476007)(64756008)(66556008)(3846002)(6116002)(86362001)(6436002)(6512007)(6486002)(76176011)(186003)(2616005)(316002)(54906003)(476003)(4326008)(486006)(5660300002)(8676002)(36756003)(81156014)(81166006)(118296001)(11346002)(110136005)(446003)(305945005)(14454004)(8936002)(50226002)(66946007);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR04MB6349;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: ns4P3rhh//B/W3HSl8ai9JNSGQ/3J5Og5XBSnjR6Xet9Yn+ZRxJQ0VdN6LOe36QPBFsQKFuVLLr9LLC2GmCDoAm+P+a2+OkhFmHba2g6uva8FPZrfR6OLCn+Uy+i4/7rw+GM/nN2O3VgqaIiMhI99ibeq384Mrtj1F7aNjCOObP4uNPQ/ScpLvBV1MojRGqa2MVhVsiI/pEPCTb+jX6dQsupeIgoKtzsmDcgmw3aCjMT19PYWmvWmr9rtHpzApoPW+BsBScNI5DlWQNTdt6STf9zHcstIW2y5vn7awX/1zb9487jLEkGXY9DBrJhPhCEqe/6n1sXTDD8iLkTIuo+KAuOq+wEfgtyTtHQ1ilBtL1i5aIQxxFV6NTot5D0AHuf4M103pSsHjTl+15wofuQPcNLd5LEFYBI56g4BvpTF8Q= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2551633b-7f5d-473a-6c56-08d6c4b120f9 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Apr 2019 10:23:56.4609 (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-Transport-CrossTenantHeadersStamped: VE1PR04MB6349 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VW5pZnkgdGhlIHN1cHBvcnRlZCBpbnB1dCBhbmQgb3V0cHV0IHJhdGUsIGFkZCB0aGUNCjEya0h6 LzI0a0h6LzEyOGtIeiB0byB0aGUgc3VwcG9ydCBsaXN0DQoNClNpZ25lZC1vZmYtYnk6IFNoZW5n aml1IFdhbmcgPHNoZW5naml1LndhbmdAbnhwLmNvbT4NCi0tLQ0KIHNvdW5kL3NvYy9mc2wvZnNs X2FzcmMuYyB8IDMyICsrKysrKysrKysrKysrKysrKystLS0tLS0tLS0tLS0tDQogMSBmaWxlIGNo YW5nZWQsIDE5IGluc2VydGlvbnMoKyksIDEzIGRlbGV0aW9ucygtKQ0KDQpkaWZmIC0tZ2l0IGEv c291bmQvc29jL2ZzbC9mc2xfYXNyYy5jIGIvc291bmQvc29jL2ZzbC9mc2xfYXNyYy5jDQppbmRl eCAyYzRiYmMzNDk5ZGIuLjBkMDZlNzM4MjY0YSAxMDA2NDQNCi0tLSBhL3NvdW5kL3NvYy9mc2wv ZnNsX2FzcmMuYw0KKysrIG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