Received: by 10.192.165.148 with SMTP id m20csp5004355imm; Tue, 1 May 2018 07:33:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpX2vGg3uqbb68AqPHwnTDbgGEPYahGdRHAR5a2btsqnFPwOjq/5ieH/BG/gMmP5FVnY3fy X-Received: by 2002:a17:902:bf41:: with SMTP id u1-v6mr16652887pls.257.1525185225572; Tue, 01 May 2018 07:33:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525185225; cv=none; d=google.com; s=arc-20160816; b=Sd41z1i9S85Qzhug6OiUUCZRZfkvwcK6Q3D5xJ8RqmNsLjbHy2+Ru7uSXFcBZeINgQ RDTjXBvDg8V1OQ1ZWFfgikUsd4tjgloYGg/aAVd+zYla+bAWddcN8krSxiiHjY0UhysH bBOjNNo1ex31ZOGa0Z/dbZcsh3rFndkvPs6y2oeCMb+opQSno1rXrWD3yrpsrginFeon OpGg7njqAnYvKb5JcJXeGeZRHKtZnvxVPjWev+7cDFxfN+tiF4ttej2TyusMfIBSV21B LNdTKHDA2XaT5M7P3oDUbWYjGzg2EHDRGQrZ1QXtROa7rvZ2AWlKEtEDdw4hrlWTbxYd tH0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=ODzGQI4Drqc/3Ym78Ep/LQ6eWIz8Z95Gd1b4edhPAvI=; b=rlbgm+iaF+8/IXBg5oW8FW/gj0BuZBBNPWICBNj4Pn85ZlmSblkeYXCsGgB00FRlOL 5lo+3zYNazTzAR/eJAM2hrVVkiu1FbDN1BXf3s5lz5Mtb6XPubR3ELfk+iadpKUqFBRj AnccU95k4V+uuZYMfJdndj9LRDlw/ZrCo0Jwhken6OieD4bjiM5d8Kh1ibJWem5jkFVX eSg5So+owL3SSbCvjSlNZXWuubN+IXTmK+Je32eWGPtMrS17W+aOn3HMcijXYrSNXuG7 lq8VsTO2xJiJoPWp3Ym+Iqrb85+UiJne9I+V8VSjy2o5BIpBHaw8iT/IUTXhiCLYTqNf RcAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=dbzG96Zi; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5-v6si7681066pgv.191.2018.05.01.07.33.31; Tue, 01 May 2018 07:33:45 -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=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=dbzG96Zi; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755909AbeEAOcE (ORCPT + 99 others); Tue, 1 May 2018 10:32:04 -0400 Received: from mail-cys01nam02on0073.outbound.protection.outlook.com ([104.47.37.73]:59121 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755305AbeEAOcC (ORCPT ); Tue, 1 May 2018 10:32:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ODzGQI4Drqc/3Ym78Ep/LQ6eWIz8Z95Gd1b4edhPAvI=; b=dbzG96ZizPbsbDoZJDsCbU1Tu64NS2wfsNrzCr/IZAwYZI+3Bk1SIOJxHOkAnlcPPA3Igc3Qv1IIO/nsGYe0CMW7IwU9tutJdI0qVLHOhj305wgu+oXLXpSnJl0s+9m2cuqHArEypRhrIU1VWaGcQjvnqNxakaqCCBFY1RvN/6o= Received: from [192.168.0.103] (106.200.239.203) by SN1PR12MB2367.namprd12.prod.outlook.com (2603:10b6:802:25::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.20; Tue, 1 May 2018 14:31:57 +0000 Subject: Re: [alsa-devel] [PATCH v2] ASoC: da7219: read fmw property to get mclk for non-dts systems To: Pierre-Louis Bossart Cc: "moderated list:SOUND" , Support Opensource , Liam Girdwood , open list , Takashi Iwai , djkurtz@chromium.org, Mark Brown , Alexander.Deucher@amd.com, Adam.Thomson.Opensource@diasemi.com References: <1525080203-18947-1-git-send-email-akshu.agrawal@amd.com> From: "Agrawal, Akshu" Message-ID: <43c7939d-e30b-27eb-59e4-c0e16248dad1@amd.com> Date: Tue, 1 May 2018 20:01:24 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [106.200.239.203] X-ClientProxiedBy: MAXPR0101CA0003.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:c::13) To SN1PR12MB2367.namprd12.prod.outlook.com (2603:10b6:802:25::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:SN1PR12MB2367; X-Microsoft-Exchange-Diagnostics: 1;SN1PR12MB2367;3:fxzpYbX8Ffzh4V1iPZGHiVHQ1APh9zd0MyUhQkIlhlK3v9uu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OLemBkKv6rWeUzJdyVNu+1t4q1+5PCcTQE4oTtnkuh/97FI+BsGFZjuArT0n9o61MiA8s8cNLshbvlXxw9mBNHVhBw0YNKMAl5pgMXyqCow0KaWHe8nFTIUHAt2XHPRElRzfcDYVOAiVHC3/SeRjT7dzr1XW4uBdoPx6hTz9VzSBU9a/Sanm3iE2LBNybKI0QMbOCx8LAB4nAgPOiiv2aoA+3+DzH8aIjv8O5TtEdXBOCV5uufaCiS8n6hlBB4SSwgp8L/cC1s8eC+kV5oDUZseR+HM6aAdnTyLZgFhwScaFOa;4:0eIOpwVm357zqYjdUeZiK65v3wqpXhtZUwnL5EsuEduxRBQHbNWU5AsVHbufYe2czbqga6KzL5J51A6yGCxwigttkQ2C6alw4sXt5AxOLhWOp/MGIz7ecK4VSt0rO2o9HUF6eJZfeHQ0vgCerLKb7prt+VX7aEeGK/Iedq2xH31LUfy9wGngIuaHqyJYYBItytPL58bRvJr9/OJj1/OpwD9f7EzoODWyf9UpE0xjsyg6FK5jHeyqAba6nqJw0iPAawnBdqVL7QWP98nMyASUwkfaEG5wWs1wmBpxbSAg176VQiI1E9O2oWJdErMcyxr6 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(6055026)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:SN1PR12MB2367;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB2367; X-Forefront-PRVS: 06592CCE58 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(376002)(346002)(366004)(396003)(39860400002)(39380400002)(189003)(199004)(25786009)(6486002)(2906002)(2870700001)(186003)(65826007)(5009440100003)(6246003)(16576012)(6116002)(39060400002)(4326008)(54906003)(58126008)(36756003)(53936002)(3846002)(6666003)(6916009)(316002)(106356001)(229853002)(68736007)(67846002)(2616005)(6346003)(105586002)(77096007)(65806001)(26005)(5660300001)(486006)(16526019)(31696002)(50466002)(47776003)(446003)(476003)(117156002)(956004)(65956001)(8676002)(305945005)(11346002)(64126003)(3260700006)(478600001)(59450400001)(8936002)(81166006)(97736004)(7736002)(72206003)(66066001)(53546011)(76176011)(86362001)(81156014)(2486003)(52146003)(31686004)(386003)(52116002)(23676004);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR12MB2367;H:[192.168.0.103];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Akshu.Agrawal@amd.com; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTTjFQUjEyTUIyMzY3OzIzOlBsRWNjSkNqWGs5VGNPaUxOdjNPSnIwRVhQ?= =?utf-8?B?WkhNOHNBZUtaaThRWDIveTdvTmNib0FlS0paQU8yQm1lcTVZUkJxRDdnY0dG?= =?utf-8?B?ZWhudjdKbXg1K0tZQmtmWmlnRUZMU2VPVUxEWFkvWXJ5eENwYVd6dDlkZEVW?= =?utf-8?B?MStpSGt2VUkyL1lVNElDWHNSNGRiZWpKOHptbXk5SmtscUFDZ1JiQ3czSkpE?= =?utf-8?B?bVJ2VG9CbjZlMEtZUVhvYk9pTld2dGtpUW9JR05zR2VDTXJLcTJFZ2RUbGNB?= =?utf-8?B?eDlnMEZ3WnRUcDJHazNqRzRJd0pYd2lldzZyOU5lVzF4ZkRPeXRDK2NtS09S?= =?utf-8?B?WnZEakpUVUhUZ3AyUkZBSUpVdVJwOEZWQUp5M2R6dDBwWmxhNGhkckYrN3BT?= =?utf-8?B?L2pNN05DNlR6ZjJXR3c0ck95NWZGaVphTERqancwWmhqbFdXSTdKNjNiS3J4?= =?utf-8?B?Y0dtWE9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ZDjzGD4LTbbHxCOR698hS6uitqcZOPf5S5ZZFHkrovfy8CQKh6IvDTlmpzU21AVAHDLt4V2WxeQhdL0i90pG6TaNNq+wvxjeeB+Dqj5yxq43tZ1OvflM+QZYZkKaKrJbBsfs8U4Ws47G X-Microsoft-Exchange-Diagnostics: 1;SN1PR12MB2367;6:CpDTEJt3YjUrUpY/epMtImkYsRQiL3WtdfBzUyc5AgwJdKiHKH+kzKIjrlTGBVfdUovAVNenefYygNGARZCNfHvjFw+TeNQZOypCrXvs4f9I7n0RkNijw58gFp6se7LT0kRXDQoFQ53NeYitrm3BtyOvTzkD7rjGo/x83o7UIEmzHHwv3wdD1eeRAisfBtrcRk325ChNnoxRJexjEqyHf1Q20VuQ56PUxLHBPDIx6WukGxGSzF/+V9mUDC6qe7IW8raBCGTk9KDfIXdiAzT9WUMpyrs6Ws34Dy+qp2JHp7qDRhOYDYj8+uGHtWTe/S0JDiHHNjANXPlVce8edHsRjmW4Uph1Go3pDwUz8Q+UhFX5sGnEK8zo/Tfdh6ci8zEHs9bdb8SDUXHXZC4oISTMaEw1Q45Hl5X3FBov9TloT73uhRgsRvfEbTR6RSTYgjPZOxUMS57bhB9BAXO4akQEyQ==;5:EtiqBTxA1OQWIDxFF+pLelvKuFj7wL67OOZ+Lax4wVfzveyHGqFmI6uJUJS5cDo83aHmkt7pcSiwwWFclD7eDxYb6q9T9xhRuvK5vnEdo0zBluqvgntPa0+B34B8vOJRx2yU38Wm+l09mqvfSnP/vyWRzEBW2lokq0+QRQ0HYuY=;24:j5KcGAoS1cPUxpgMqPqMVwNptrBjx9LW6gxw1o6LZDLbKZIxka4ccTrNIfiJIYWHO47gwrXsFYBwX3suD20zxsWlNvaI4mwVVLv9z088kLw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SN1PR12MB2367;7:HD6DzK++sZxvMfJWKeE6foVJvshHhBUa4Du3N3JT5HLONg0IjX0hPKJSv73ST0NmQRqy8vemBcCfQV6YICeMIVr3dFwFQVPDv9pKk0mmeUJllOsuOLNY4MEApuoHGbmC52NDlp/4tKBBcOcAA/mpJyAorPcaPabHA0XENOq6Xahm2zrvmMrMA2eP7hP+b5L3YaRWslcNn0zivbDQXNrDLVNUHUEnVUvRSXJsujES0OZlNFaG2ektnoODd0EB1mDh;20:vPdfEyr0QTKFY32yiFdZu0sdB7f5tX9KIfL0FwVVcBuohK4qhLyEeF9aLAzyZwt7xoI5ZmKnDvdw9XShsiJHmvumnw2ipRMEbYF1zQwZQvDDAHDx84GuZ7FaM0JPHbK3wKATkg10Y8/unED+Y7U+q1cZ8kuXdiniGy0ceL7DqT4brov7dMU5wBGrw0EGCF1gzu3x7JygMLttQrWEsVt5Ym4wss3F5V2T3MqgyhD/mtnjLWfQsYV/82Bh3GErON67 X-MS-Office365-Filtering-Correlation-Id: 2efe1481-2ea9-495c-aa14-08d5af704cb3 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2018 14:31:57.2708 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2efe1481-2ea9-495c-aa14-08d5af704cb3 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB2367 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/30/2018 9:54 PM, Pierre-Louis Bossart wrote: > On 4/30/18 4:23 AM, Akshu Agrawal wrote: >> Non-dts based systems can use ACPI DSDT to pass on the mclk >> to da7219. >> This enables da7219 mclk to be linked to system clock. >> Enable/Disable of the mclk is already handled in the codec so >> platform drivers don't have to explicitly do handling of mclk. >> >> Signed-off-by: Akshu Agrawal >> --- >> v2: Fixed kbuild error >>   include/sound/da7219.h    | 2 ++ >>   sound/soc/codecs/da7219.c | 7 ++++++- >>   2 files changed, 8 insertions(+), 1 deletion(-) >> >> diff --git a/include/sound/da7219.h b/include/sound/da7219.h >> index 1bfcb16..df7ddf4 100644 >> --- a/include/sound/da7219.h >> +++ b/include/sound/da7219.h >> @@ -38,6 +38,8 @@ struct da7219_pdata { >>       const char *dai_clks_name; >> +    const char *mclk_name; >> + >>       /* Mic */ >>       enum da7219_micbias_voltage micbias_lvl; >>       enum da7219_mic_amp_in_sel mic_amp_in_sel; >> diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c >> index 980a6a8..aed68a4 100644 >> --- a/sound/soc/codecs/da7219.c >> +++ b/sound/soc/codecs/da7219.c >> @@ -1624,6 +1624,8 @@ static struct da7219_pdata >> *da7219_fw_to_pdata(struct snd_soc_component *compone >>           dev_warn(dev, "Using default clk name: %s\n", >>                pdata->dai_clks_name); >> +    device_property_read_string(dev, "dlg,mclk-name", >> &pdata->mclk_name); >> + >>       if (device_property_read_u32(dev, "dlg,micbias-lvl", &of_val32) >> >= 0) >>           pdata->micbias_lvl = da7219_fw_micbias_lvl(dev, of_val32); >>       else >> @@ -1905,7 +1907,10 @@ static int da7219_probe(struct >> snd_soc_component *component) >>       da7219_handle_pdata(component); >>       /* Check if MCLK provided */ >> -    da7219->mclk = devm_clk_get(component->dev, "mclk"); >> +    if (da7219->pdata->mclk_name) >> +        da7219->mclk = clk_get(NULL, da7219->pdata->mclk_name); >> +    if (!da7219->mclk) >> +        da7219->mclk = devm_clk_get(component->dev, "mclk"); > > this looks weird, why are you using different clk functions depending on > the existence of a _DSD property? Why not just change the name and keep > the same flow, e.g something like > > if(!da7219->pdata->mclk_name) >     da7219->pdata->mclk_name = "mclk"; > da7219->mclk = devm_clk_get(component->dev, da7219->pdata->mclk_name); > > We can't use devm_clk_get as the value of dev argument has to be NULL, which can not be used with devm_clk_get. System clock which are linked to mclk are registered by a separate ACPI device. And this exposing of DSD property is for all those platforms which are non-dts based. >>       if (IS_ERR(da7219->mclk)) { >>           if (PTR_ERR(da7219->mclk) != -ENOENT) { >>               ret = PTR_ERR(da7219->mclk); >> >