From patchwork Wed Mar 14 16:41:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 10282717 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 260766063C for ; Wed, 14 Mar 2018 16:41:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 17D7C20881 for ; Wed, 14 Mar 2018 16:41:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C3B02847A; Wed, 14 Mar 2018 16:41:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9FEB928478 for ; Wed, 14 Mar 2018 16:41:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751449AbeCNQln (ORCPT ); Wed, 14 Mar 2018 12:41:43 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:25309 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751289AbeCNQlm (ORCPT ); Wed, 14 Mar 2018 12:41:42 -0400 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20180314164140epoutp024c47bf14f7ffc3b877579c38e806b7a8~b1wFyf3N62388323883epoutp02O; Wed, 14 Mar 2018 16:41:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20180314164140epoutp024c47bf14f7ffc3b877579c38e806b7a8~b1wFyf3N62388323883epoutp02O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1521045700; bh=7GVEqVC3QN8lTSgXAkumwA6d2ulgCfcDkhCkxfhL12Q=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=TTr4WmakdYOId8Se8Gu6ZrMJRojrH949lwLRqnrfWN4SxQ3Rbq0XSWD2IBZO6A99y fK+XBxn6k/94gW+kkMiHXR56hmZJdiLuHAFjyhsfI/96IFhAmxCM0ohNFLxqCq7ymU L7SPO3JiQw6rTCg3YLkwWcC6HHHgg1hthmyTQSuA= Received: from epsmges2p3.samsung.com (unknown [182.195.42.71]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20180314164138epcas2p201e2a01bf07d0a10a860bc79164420da~b1wEFVoxH3120331203epcas2p2h; Wed, 14 Mar 2018 16:41:38 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 3D.8F.04108.2C059AA5; Thu, 15 Mar 2018 01:41:38 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20180314164137epcas2p336d64724b044d14aa920d611b6483593~b1wC8V4fw2804428044epcas2p3I; Wed, 14 Mar 2018 16:41:37 +0000 (GMT) X-AuditID: b6c32a47-187ff7000000100c-0a-5aa950c2f50f Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 3E.00.03890.1C059AA5; Thu, 15 Mar 2018 01:41:37 +0900 (KST) Received: from AMDC3061.digital.local ([106.116.147.40]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P5L00M6VACUIH60@mmp1.samsung.com>; Thu, 15 Mar 2018 01:41:37 +0900 (KST) From: Sylwester Nawrocki To: broonie@kernel.org Cc: lgirdwood@gmail.com, krzk@kernel.org, sbkim73@samsung.com, alsa-devel@alsa-project.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, b.zolnierkie@samsung.com, m.szyprowski@samsung.com, Sylwester Nawrocki Subject: [PATCH 2/5] ASoC: samsung: odroid: Drop sample rates that cannot be supported from hw_params() Date: Wed, 14 Mar 2018 17:41:14 +0100 Message-id: <20180314164115.22736-2-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.14.2 In-reply-to: <20180314164115.22736-1-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrOIsWRmVeSWpSXmKPExsWy7bCmue6hgJVRBg9XyFpcuXiIyWLjjPWs FlMfPmGzmH/kHKvF+fMb2C2+Xelgsphxfh+Txdojd9ktWvceYbc4/Kad1eLiii9MDtweGz43 sXnsnHWX3WPTqk42j74tqxg9Pm+SC2CN4rJJSc3JLEst0rdL4Mro7G1lK1jLVvF681KWBsYu 1i5GTg4JAROJ2aseANlcHEICOxglNn3ZzgjhfGeUuHm+kwmmavPRb1CJ3YwSPx/8YYJwfgE5 Zx+xgVSxCRhK9B7tYwSxRQTEJG7P6WQGsZkFpjBJPHicCmILC2RKNG0+BRZnEVCVeLp1AlAv BwevgLVE82Q7iGXyEu8X3AcbwylgI9F57TQ7yC4JgRVsEov3NDJCFLlI9He3skPYwhKvjm+B sqUlnq3aCFVTLdHZ1gXV3MIo8WfaJTaIhLXE4eMXWSGO45PoOPyXHeQICQFeiY42IQjTQ2L+ WnuIakeJNf0HoUHUzyhxpWch4wRGqQWMDKsYxVILinPTU4uNCoz1ihNzi0vz0vWS83M3MYKj V8t9B+O2cz6HGAU4GJV4eG8or4wSYk0sK67MPcQowcGsJMK7xxooxJuSWFmVWpQfX1Sak1p8 iFGag0VJnLc1wCVKSCA9sSQ1OzW1ILUIJsvEwSnVwLjXJvxBuVzlrmPh5gs6LtzZsUsyZV3T wcb9pybVP6+SX6RtHaa4dMHvA28ZE8qfOTu/cuXR/X9gdZTOB/Vjfds7z7Jvci0Vr/n+pz9e Ikyg0njeVUadq3M/Se169ZI58sci+UmWFx7a3dh3IGHOQqGJd6P9HildLZn0Zt8xt5UHuTZs Pv/t1f8oJZbijERDLeai4kQA89XYCtoCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPLMWRmVeSWpSXmKPExsVy+t9jAd2DASujDBZM4bW4cvEQk8XGGetZ LaY+fMJmMf/IOVaL8+c3sFt8u9LBZDHj/D4mi7VH7rJbtO49wm5x+E07q8XFFV+YHLg9Nnxu YvPYOesuu8emVZ1sHn1bVjF6fN4kF8AaxWWTkpqTWZZapG+XwJXR2dvKVrCWreL15qUsDYxd rF2MnBwSAiYSm49+Y+xi5OIQEtjJKPHxynFWCOcXo8TJ2Y8ZQarYBAwleo/2gdkiAmISt+d0 MoMUMQtMYZL4PQeiSFggU6Jp8ylmEJtFQFXi6dYJbF2MHBy8AtYSzZPtILbJS7xfcB+snFPA RqLz2ml2kBIhoJKrV7MmMPIsYGRYxSiZWlCcm55bbFRglJdarlecmFtcmpeul5yfu4kRGGzb Dmv172B8vCT+EKMAB6MSD6+B2sooIdbEsuLK3EOMEhzMSiK8e6yBQrwpiZVVqUX58UWlOanF hxilOViUxHn5849FCgmkJ5akZqemFqQWwWSZODilGhjTIoR3eu2XcNHnMlfqE1vseEtmrT37 +c/M1YUMe8+Je0rt25fLvvbWrtDf5yqzrI4Ly/k22ktLR6kvljzVOSWEzULRY1eh2G+rO0IX t7u9OPa8f1bCzOrQ6HOLXp09Kl60VfcLz9XFjrbrtcznP5sutPHp/n/K9Ut2it/rONzv0j79 Nvt/JX4lluKMREMt5qLiRADTTIgeMgIAAA== X-CMS-MailID: 20180314164137epcas2p336d64724b044d14aa920d611b6483593 X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20180314164137epcas2p336d64724b044d14aa920d611b6483593 X-RootMTR: 20180314164137epcas2p336d64724b044d14aa920d611b6483593 References: <20180314164115.22736-1-s.nawrocki@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The I2S controller can handle sample rates only up to 96000 and the CPU DAI has already related constraint set so drop the impossible 176400, 192000 switch cases. Signed-off-by: Sylwester Nawrocki Acked-by: Krzysztof Kozlowski --- sound/soc/samsung/odroid.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/samsung/odroid.c b/sound/soc/samsung/odroid.c index e698e67f5f84..e1b59457a327 100644 --- a/sound/soc/samsung/odroid.c +++ b/sound/soc/samsung/odroid.c @@ -46,14 +46,12 @@ static int odroid_card_hw_params(struct snd_pcm_substream *substream, break; case 44100: case 88200: - case 176400: pll_freq = 180633609U; rfs = 512; break; case 32000: case 48000: case 96000: - case 192000: pll_freq = 196608001U; rfs = 512; break;