Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1945180yba; Sun, 21 Apr 2019 19:34:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyx1H7Z8HtIq908lo3LNIvvhKp0ai/GXcmtnfGCTK+FunrVilaPdNEJyrEgpWF2mnWXQQEX X-Received: by 2002:a63:5057:: with SMTP id q23mr16801692pgl.30.1555900458271; Sun, 21 Apr 2019 19:34:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555900458; cv=none; d=google.com; s=arc-20160816; b=IyDSOt5qXTYeYCcHBRFUeOFVouVYfQT12nN5sHiaF6Sg1v3SgVhcjbTk1JkIOZ95aK Kwh5+Y/+YV4jtIGV7qBqI5+/3aaXffc0txjfSd/1PMPWXoVhMtoZxS/6m2Y/xR0+mnq5 8kjHUFeTRfl4FBzJ28st4w3mj8v8Sm0QhZFmvuKvr1d5/KYoiQsZC23CNUY28jCPsk4m iv8/o/Qy6ag3OZeye6WIVO0D29hWJHdDwMm1gFPFuUFCzSo9+xhjDZwRPgg0paTgRA7R pMmTHPfqkW6FfICAsl1agQ75ZQbG8YLoCvyI/JPJTVC/NNoq50eR0NqIkjtsoRIG7qp/ 7BOA== 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=LIDtGqsZ4hyusNI+iGVPGwIuHyOEDuPBAGu6BM305XQ=; b=yXXZpylkxxK94XynqRUA3OKoB7gRp5JHhQAY7iNxZCoiTHGtteYCEWQzGBWrseYDh3 wCcseddtJWjUMuihewF+f8l4dQsfu0Vvm9XHtai2FItxJJwQPSVyuI3GUA+rIZ+HtpBW m3SwvxcvXZCJEgOMm85gDIrxD4YRqRkDKBStYlBbQUAcotVnhXT0tD68fPDG/AfCP0z9 z5aYwnJ85x917+sy3BSPSkeiksHrHmcf+NaYmaOsH/XHGknmAHRlv/XOC2UarcUx1UIa Us4T2QfhQxDTEKfSZGzf+aNNOM4KaP4zi8yYbrwgDgupbGa0uI55FrpFU1PsAgRyWM7w MLMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=YcUDhJhv; 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 d9si12002990pls.12.2019.04.21.19.34.03; Sun, 21 Apr 2019 19:34:18 -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=YcUDhJhv; 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 S1726599AbfDVCcn (ORCPT + 99 others); Sun, 21 Apr 2019 22:32:43 -0400 Received: from mail-eopbgr70074.outbound.protection.outlook.com ([40.107.7.74]:7805 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726423AbfDVCcm (ORCPT ); Sun, 21 Apr 2019 22:32:42 -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=LIDtGqsZ4hyusNI+iGVPGwIuHyOEDuPBAGu6BM305XQ=; b=YcUDhJhvuQXSEdYdfbwu6blectA5EglL+ywL49Z67lIT+7sUx1YINg8ylaAS8V2mFkd9lrgkwN+vad04YItYm1mDlkjMRS6kXSCyZIsmFrkuEY4ks9+5I2mG4HR6u2mlXdK8fv2g/bs2WEhSuFvzUr098Xc9+rxRGd4rxYy1zlM= Received: from VE1PR04MB6479.eurprd04.prod.outlook.com (20.179.233.80) by VE1PR04MB6605.eurprd04.prod.outlook.com (20.179.234.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.14; Mon, 22 Apr 2019 02:32:38 +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 02:32:38 +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 V5 3/3] ASoC: fsl_asrc: Unify the supported input and output rate Thread-Topic: [PATCH V5 3/3] ASoC: fsl_asrc: Unify the supported input and output rate Thread-Index: AQHU+LOnfeMM+Ok1Uk2Gil7KYRZEdQ== Date: Mon, 22 Apr 2019 02:32:38 +0000 Message-ID: <841aa2c4256e418759422affe6c138fa55cd1785.1555900078.git.shengjiu.wang@nxp.com> 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: HK0P153CA0044.APCP153.PROD.OUTLOOK.COM (2603:1096:203:17::32) 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: f2ab3753-acff-4c94-cb6c-08d6c6cac96b 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:VE1PR04MB6605; x-ms-traffictypediagnostic: VE1PR04MB6605: x-microsoft-antispam-prvs: x-forefront-prvs: 00159D1518 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(346002)(376002)(366004)(39860400002)(396003)(199004)(189003)(316002)(4326008)(36756003)(19627235002)(68736007)(14444005)(256004)(25786009)(14454004)(2201001)(478600001)(8936002)(50226002)(97736004)(7736002)(6116002)(3846002)(11346002)(446003)(6436002)(81156014)(305945005)(8676002)(81166006)(186003)(2501003)(73956011)(66066001)(66446008)(6486002)(66946007)(66476007)(66556008)(64756008)(26005)(386003)(5660300002)(76176011)(6506007)(102836004)(2906002)(118296001)(99286004)(52116002)(486006)(110136005)(86362001)(54906003)(71190400001)(71200400001)(476003)(2616005)(6512007)(53936002);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR04MB6605;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: Bknl0HNIaOaB8eh7HaGGztPR6CkjU951mrPL96Mx+oyyrEDAhmwedpEWbCkMamX+H2eEQEdbwPuvhFNvNFE6iIm3gu3KfM4B7OjbYkMuhl5ROOpGjDf84JeO2NM0jX2uERo94p+WFPXKmc7An2iw7+nCtKguJtD1hIBlErbHmdbcpN7wEUr4VOd9HkVYCD98on2oObCHSBQ+0EfQxa3RoZs9HH4K3EQBB7ysjQYjf7kabfEOuPgawdj3lWTpADB8WiIrEfL6/fTPZDjWR9TIRSVBo5fLlt4qStzIvvmfuKXeaH/Qq3a5nWmnl+LywkQxFU7KtgyTwS3bZ64V9pRD5nlFUI5i2ZVq1sQX72U/T14g/m2F2ATIh1oZfxPrypeRram3aCJIg1is0c7FGXl9Hz1CixUOETes1nrzsldSFUE= 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: f2ab3753-acff-4c94-cb6c-08d6c6cac96b X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Apr 2019 02:32:38.8214 (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: VE1PR04MB6605 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 eCA0Njc1ZWE0ZTgyMDQuLjg1YzI3OGVmZmRhMSAxMDA2NDQNCi0tLSBhL3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