Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2025934yba; Sun, 21 Apr 2019 21:55:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6eUt4yRDYCEc1usiObEsJnT6nvFCCcoMMgE86Kb95LJJ2QKs2NZswzWWXb1dTEnYU76Sy X-Received: by 2002:aa7:9095:: with SMTP id i21mr19150184pfa.134.1555908921753; Sun, 21 Apr 2019 21:55:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555908921; cv=none; d=google.com; s=arc-20160816; b=tlEk4Pe3PiWJ5VhNwJADdDllSL0/oVJGfJVD+HGpsXsSq1mvPIcMCvw1kprhwoAJQU DYde9oBy7HJ4MPsE5ZZ3en51X5jQfT/HeOOYlVtXcUp4kvBNh3aRT/ui/8FRliLGo21E NXqxX/CMOgTiQXDz51rzTUJG22prg2NN5YQ+ydkdvBmBGTlf04f57PZNVzizqrBoT/4D gSrHd8gM3RGD4novIaQDb1NB77BTPHFtWeZKECvI7oJT99Tu5ayt+sPgorljyMjHxV+y y4WZDifZ+b4zFpmySIMM3oMCKshLojnXpvNP6ndv3P8nYhBU+kC2pokcHBN2XfOeCwOu vQmg== 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=z/uEB3mv42VDHqr9ulG+MScO/mamsWOvVODjLbWuQDM=; b=QTKr3bnKl4A0KpYVoBso23lbnaiELvHcBSwx+ywvgmFVn99yW4+hecpDVSAv6ni3tg g4aOWStxkcwLmVwdUxBi3QjhVMWR7wrrXE5VoVaIDLH4fVgdCkE4yOO/9ukzOrVHP2Dz BLGssQJieNq1AixTlvqN6xxYKge80TX7KxR9TKHBG90fjbRm30T1YjHwsNkIjjlj08Bc CtXDnaGIN3+U1XT6CqHmZ+RLc3eook19Ut/SDn1atSMZ2qKFn7lxNMNM1IaOte4cKR+n 8liPBeFcCuUMcUWJRmpDPxMIlGZCUiVfvVw1+WbjW6d8ygK50aTpCFBwvT9vZ8FCZ3eF xUzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=DO5trgJK; 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 16si12531157pfr.26.2019.04.21.21.55.06; Sun, 21 Apr 2019 21:55:21 -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=DO5trgJK; 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 S1726781AbfDVEwO (ORCPT + 99 others); Mon, 22 Apr 2019 00:52:14 -0400 Received: from mail-eopbgr140073.outbound.protection.outlook.com ([40.107.14.73]:51382 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725904AbfDVEwM (ORCPT ); Mon, 22 Apr 2019 00:52:12 -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=z/uEB3mv42VDHqr9ulG+MScO/mamsWOvVODjLbWuQDM=; b=DO5trgJK4JWaLPQ450VumE+tKFBP/uTsFutMWY0FiKYz+eOXzH3KQv9HkWCF8Uj+ZaY6Wq4dpBfLfsClDpHWfw+yripgUubk1ulkp5I7i3hxYkyWB4CMZldvtdD9ySFBPvJaXLHK2zdTNJrXEEd/2HXEAjcMgT8vkYBkXqdoH1I= Received: from VE1PR04MB6479.eurprd04.prod.outlook.com (20.179.233.80) by VE1PR04MB6479.eurprd04.prod.outlook.com (20.179.233.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.12; Mon, 22 Apr 2019 04:52:08 +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.017; Mon, 22 Apr 2019 04:52:08 +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 V6 3/3] ASoC: fsl_asrc: Unify the supported input and output rate Thread-Topic: [PATCH V6 3/3] ASoC: fsl_asrc: Unify the supported input and output rate Thread-Index: AQHU+Mcj6uPED7OwA0uPcTLFz9zP1A== Date: Mon, 22 Apr 2019 04:52:08 +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: HK0PR01CA0027.apcprd01.prod.exchangelabs.com (2603:1096:203:3e::15) 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: 31b6162c-74e2-4e92-bdc2-08d6c6de4621 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:VE1PR04MB6479; x-ms-traffictypediagnostic: VE1PR04MB6479: x-microsoft-antispam-prvs: x-forefront-prvs: 00159D1518 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(346002)(396003)(39860400002)(136003)(376002)(199004)(189003)(2201001)(486006)(26005)(99286004)(6436002)(5660300002)(186003)(316002)(66066001)(6486002)(86362001)(81156014)(81166006)(8676002)(118296001)(476003)(2616005)(11346002)(446003)(305945005)(7736002)(8936002)(50226002)(2501003)(97736004)(54906003)(3846002)(14454004)(76176011)(110136005)(19627235002)(4326008)(6512007)(2906002)(68736007)(478600001)(71200400001)(71190400001)(386003)(6506007)(53936002)(66556008)(52116002)(66476007)(256004)(36756003)(64756008)(73956011)(66446008)(66946007)(6116002)(102836004)(14444005)(25786009);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR04MB6479;H:VE1PR04MB6479.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: Ysafc4ldjYCsuRixJ1HZBLvp1qiNHLksdCXEggd5RnNNA8n6hlpWpMbhE3+BGhWQv437MZrsdidVH4V1cxOjM/Z3pSxOAROqMcTjWLI2fcYa2+eKRu48XPnsmfyTshtikw9a874WGalaDyXrvIdU+1Mqbq1THRklxZcls0OwSc4lA2O7U6uGuHniWigMIYmkoTAO1dt/OWPkiNY/v+M/tBeggg0YYRQkJxlu/NKnk2572qq2afJfn/e+cA/0d3wLDKws2O0HSNAx+xg788N+lHLZUM7PHg1vqcHFOlOouEx2UI9bdB0DS7zG5xqrkiQv1xWGLUzec/buIIpK6Rc3nulwUHA0Z6+8snD3o/O4GuH1FXqpoJEecYEVjL3PWyssf/wkVm8u7e89FHRpW57xWbt0mM1/RhaUlKBSQQWmE94= 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: 31b6162c-74e2-4e92-bdc2-08d6c6de4621 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Apr 2019 04:52:08.5412 (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: VE1PR04MB6479 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VW5pZnkgdGhlIHN1cHBvcnRlZCBpbnB1dCBhbmQgb3V0cHV0IHJhdGUsIGFkZCB0aGUNCjEya0h6 LzI0a0h6LzEyOGtIeiB0byB0aGUgc3VwcG9ydCBsaXN0DQoNClNpZ25lZC1vZmYtYnk6IFNoZW5n aml1IFdhbmcgPHNoZW5naml1LndhbmdAbnhwLmNvbT4NCkFja2VkLWJ5OiBOaWNvbGluIENoZW4g PG5pY29sZW90c3VrYUBnbWFpbC5jb20+DQotLS0NCiBzb3VuZC9zb2MvZnNsL2ZzbF9hc3JjLmMg fCAzMiArKysrKysrKysrKysrKysrKysrLS0tLS0tLS0tLS0tLQ0KIDEgZmlsZSBjaGFuZ2VkLCAx OSBpbnNlcnRpb25zKCspLCAxMyBkZWxldGlvbnMoLSkNCg0KZGlmZiAtLWdpdCBhL3NvdW5kL3Nv Yy9mc2wvZnNsX2FzcmMuYyBiL3NvdW5kL3NvYy9mc2wvZnNsX2FzcmMuYw0KaW5kZXggYThkNjcx MGYyNTQxLi5jYmJmNjI1N2YwOGEgMTAwNjQ0DQotLS0gYS9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