Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5646084yba; Thu, 11 Apr 2019 02:40:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSIkprp2j+sPzLs48IR8UX3MCBhw7ikbJ3DDVU7SDoY4QZLr+7KoyBwpeURi1J6yPU5UQk X-Received: by 2002:a62:4649:: with SMTP id t70mr49130445pfa.100.1554975639683; Thu, 11 Apr 2019 02:40:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554975639; cv=none; d=google.com; s=arc-20160816; b=JITzqVSMNf8jWEHH0Umkk/eCyTDBfqoL6j9SR+GBTmZp46IdyyPqcp0GBuyTfSbCqN G9arXHgoHUYsRPo0dJ31dR1s58EvPhqpwuykeiEazsa7EiGFpDWSfHZdU9A8qyB85HJP +cCIU/5PF5WBf6PvaNeh6NSLuhs1wy9tM20AEc9CF9CnwNutIp9YQstPxISkTZWsQmUn uzvL6vURJgZYrYdYavPrbe9Y6/QPJN1ABNnJBWrifs52FBerS+90DT/KgaI1fnuZN9Jf u3xoYTmVHhatc+XcV6BUyjrf3q7/a9rumgTTa7E/zn36bxhgYapoWiLbPlLM8qfawURd cqZg== 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=8+MVm1V/x7SJ5cLfhEfEx7/QOiK+PsRDP3DsTIHN3Qc=; b=THGeIK6yPZOOL8wRWpgyMDgeENf0asIUGLILRoxOzxi/1DGWfHcLpka63wx00RUZdh VRT1Ymkd8DOtoaHtSeyo7wD6Bezd9n00izvoBby6sCucPfq8GWvxCCxfsAD4hbrzxYtk PtVfnbhNfk7s+A4WqIm9S7cG630/kQ25iGVf0Rq676cN3CZ4YZF9J5NwSJnx5t65L93c jvtCMA6e2JAYb5kwYVZL5OGzmoG3XeXUJVsbGdZueIyEV1V/DkEypM8GpbwNBkDqrWp4 z9rCT/Cx2AUZtOnkzZFczPS/GPjz9j1IVMhhA/3oTtnJslJ8RcOB+NwkEtYghFInpsJp 1Eew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=c4heea4F; 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 l186si17085690pge.128.2019.04.11.02.40.23; Thu, 11 Apr 2019 02:40:39 -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=c4heea4F; 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 S1727164AbfDKJjO (ORCPT + 99 others); Thu, 11 Apr 2019 05:39:14 -0400 Received: from mail-eopbgr00048.outbound.protection.outlook.com ([40.107.0.48]:12005 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726921AbfDKJjM (ORCPT ); Thu, 11 Apr 2019 05:39: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=8+MVm1V/x7SJ5cLfhEfEx7/QOiK+PsRDP3DsTIHN3Qc=; b=c4heea4Ff+dNAAQrU6LnLq+BEWZ3epxMo2ERrFGFLL/H7/D3sGZZ/357uLUUZM9Kx5oTXKVP+Rg+9RiX4/Pj43A4HLdn4NVJq/SbzZJ2I3L5MJWpgZVHuvyiHgJpVwGkg3hXvAexk8Gv8sPAFVHA3h9osVVhRZeO+srtsIT6UP8= Received: from AM0PR04MB6468.eurprd04.prod.outlook.com (20.179.253.81) by AM0PR04MB5492.eurprd04.prod.outlook.com (20.178.115.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.17; Thu, 11 Apr 2019 09:39:09 +0000 Received: from AM0PR04MB6468.eurprd04.prod.outlook.com ([fe80::107:1bdc:981e:e292]) by AM0PR04MB6468.eurprd04.prod.outlook.com ([fe80::107:1bdc:981e:e292%4]) with mapi id 15.20.1792.009; Thu, 11 Apr 2019 09:39:09 +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 V2 2/2] ASoC: fsl_asrc: Unify the supported input and output rate Thread-Topic: [PATCH V2 2/2] ASoC: fsl_asrc: Unify the supported input and output rate Thread-Index: AQHU8EppMuNFFQY80EyrmodXmkmWqQ== Date: Thu, 11 Apr 2019 09:39:09 +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: HK2PR02CA0160.apcprd02.prod.outlook.com (2603:1096:201:1f::20) To AM0PR04MB6468.eurprd04.prod.outlook.com (2603:10a6:208:16e::17) 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: 133b2430-25bb-4507-c514-08d6be618bf5 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:AM0PR04MB5492; x-ms-traffictypediagnostic: AM0PR04MB5492: x-microsoft-antispam-prvs: x-forefront-prvs: 00046D390F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(136003)(366004)(376002)(39860400002)(396003)(189003)(199004)(52116002)(50226002)(36756003)(8936002)(2616005)(106356001)(476003)(6512007)(71190400001)(446003)(486006)(11346002)(66066001)(81166006)(81156014)(8676002)(118296001)(105586002)(14444005)(19627235002)(256004)(2201001)(68736007)(5660300002)(97736004)(6436002)(54906003)(14454004)(110136005)(6486002)(2906002)(86362001)(6116002)(3846002)(316002)(7736002)(305945005)(508600001)(2501003)(25786009)(102836004)(71200400001)(99286004)(186003)(26005)(76176011)(53936002)(386003)(4326008)(6506007);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB5492;H:AM0PR04MB6468.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: gReJVSqXsyzAJBpaJ7aNzdhDQWVDJ/6rnJcLjoWz+h/P6LsiuV6w/rMHZpkKwWhwNHrMFjvQo7v4X0HDkrYY2YNK6l9cHCFVu+uFZMEHPk0/zJ9j97jmBlw8zhmH3t7Z6TwlWftbLXuniwczkpvvhOYG+waH5RMai+eBzaVDV7o0FRb39E6E74pqWdyvqaiVv2+Gpk4cYPJ22ADxTJM+Wbj60X9TBD3Dla/hOrc9ScJy2zrd98G3k4tL4m2LCT9tpBYx0EWhw/kick2zq72kAi+BvXZ8I8VxlgxxN4HAtUwKXMQmlmfAEWW4K3Lh3O1KOKwZbig8i3uGgSPFUcGwcEBrwbpu6rgQQxeTtEs50KAb3ZQzCtoRElPlQG+VVQlBop/imiHKzF+UXDchgGw23g9vyK/zpImJSjmU04saoIY= 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: 133b2430-25bb-4507-c514-08d6be618bf5 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Apr 2019 09:39:09.2441 (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: AM0PR04MB5492 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VW5pZnkgdGhlIHN1cHBvcnRlZCBpbnB1dCBhbmQgb3V0cHV0IHJhdGUsIGFkZCB0aGUNCjEya0h6 LzI0a0h6LzEyOGtIeiB0byB0aGUgc3VwcG9ydCBsaXN0DQoNClNpZ25lZC1vZmYtYnk6IFNoZW5n aml1IFdhbmcgPHNoZW5naml1LndhbmdAbnhwLmNvbT4NCi0tLQ0KIHNvdW5kL3NvYy9mc2wvZnNs X2FzcmMuYyB8IDI5ICsrKysrKysrKysrKysrKysrKy0tLS0tLS0tLS0tDQogMSBmaWxlIGNoYW5n ZWQsIDE4IGluc2VydGlvbnMoKyksIDExIGRlbGV0aW9ucygtKQ0KDQpkaWZmIC0tZ2l0IGEvc291 bmQvc29jL2ZzbC9mc2xfYXNyYy5jIGIvc291bmQvc29jL2ZzbC9mc2xfYXNyYy5jDQppbmRleCA1 ODU3ZDM4M2Q5NjIuLjQ0YmNjNGE3YjIzYiAxMDA2NDQNCi0tLSBhL3NvdW5kL3NvYy9mc2wvZnNs X2FzcmMuYw0KKysrIGIvc291bmQvc29jL2ZzbC9mc2xfYXNyYy5jDQpAQC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