Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp232254ybk; Tue, 12 May 2020 21:32:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1PYuNRqU7CzfkWgSlsHBHqrTNPBWkAcJCzNSLQpeA+zL72yi4yoc3stI3zavEo5ka13QL X-Received: by 2002:aa7:ce9a:: with SMTP id y26mr5228872edv.160.1589344320377; Tue, 12 May 2020 21:32:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589344320; cv=none; d=google.com; s=arc-20160816; b=ucqxN+LBS9bxQlP5Z6njRw33K8Ttz8ak/bhPTGazDuCT5jrNVZRO+Y6TTM0Gkz2dos SEu8/922V3tDmylccu44ogRX/11Vn0xF49rsJcMZYAv1vHrMG1uftD+uWBFcaCaXbVRw +dsvcVZWYISUBtVOX+s72ObuefadqwhN03lPYHv+FNV1YVgyWbU47hJ22eq8L2w4dqhP YZsmaih8DWObw37ONIZVGx3xbG3erWQfjbWy0id5A7uKulTLqHaW4F1jZVWVKtWAL6E6 sab8a7QntccCzsaxK35FrBejXRAqPdftatZEkKZqGGLnC/gtz5SR/liJrHL6SjEovcmE ViQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=E5DfVl3UTVTePHaLcFBtqqP4Bgt2fHKIIZV0vLdJMfw=; b=T4ZOp24/2ILg5vyHHy7ziQjEIRfjafuVTdVugyuvgybg4Pu1845Eqo/yf2EaX3mfI4 PXiFtIfpxS76p47fGHkg7LZhSwZGdpP7HeYrcnGEmjce6bduKxJNA1zMFTjkMH4IEHou rE7U3itMoiUcLz+Meqt4lYFTHArPMAcg6dzBYT7fAzGJP8oweldQL+nqQ+3imzefPefn 4DMGM3PAWWEjlXYveTE6OFDWmjTu+8QIjZas718NDg0tEwXx1tDW4mFluGXQdYdt26N2 94ER9E4amCI2gR0ntrzaVALOeyKhn4F0mjYTy9XyLCpD0VBtoIxhH0mK+fEFE2FeXXMi vJGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X0lx+5Vg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i14si8645167ejh.494.2020.05.12.21.31.33; Tue, 12 May 2020 21:32:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X0lx+5Vg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725962AbgEMEFq (ORCPT + 99 others); Wed, 13 May 2020 00:05:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725837AbgEMEFq (ORCPT ); Wed, 13 May 2020 00:05:46 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2D0FC061A0C for ; Tue, 12 May 2020 21:05:45 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id z22so12440295lfd.0 for ; Tue, 12 May 2020 21:05:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E5DfVl3UTVTePHaLcFBtqqP4Bgt2fHKIIZV0vLdJMfw=; b=X0lx+5VgRKBUjgcLIUXo0l4kNqa+HWCEuwieMLGfX7R6gJsysKdNLip/Z5aNBtqcKq ZHyzngzkgSh1+R7lrCgnXihuggnUozIwQkMfxmHQW6hSS4p5Aj+8n2I+E1ahRsJ5MeYK Ai74UTj4c+mDLjVlXVmkmNqcLpiXu8oLZBO4pVDmpfbtMtFyGCpm9v7QJkiiH++B1SEB n2Hj93K25HcZa6GUD4ZboQ6N6RK1Wt3GxC7VdWH0JZkvdhzUKCghhPDXrnLTZ57nq3MQ pJ9v2W9pKM2atx1b86GIUD+h9q7wAQeKMfPHQ5Tt5MsuX5KxcwRsAS4grZGt83d7kAfy wSEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E5DfVl3UTVTePHaLcFBtqqP4Bgt2fHKIIZV0vLdJMfw=; b=sK4woesQS0Zj2HFXG9KZm78Nr6mVIVt6RN8D+UXYuUvXonUPT5PgIBhpZEzvnhnJmE AO3ZTnJ+H2K67576Mla19j9BeeEpSEIX5iAg0pt4obE+Zewm41q8h6Mw8YgfdATZTghB Qdxkt+S45fTSR/Di46Vmhk9cnG7lWVrE4fY1odQ02KhnR52+Kj/TfhkRrB0xo6PTx4Zg OckJINPD0tsebaWolye9XxMig1ybSodbL+yprpTB089SGL9656UHkm02GF2PT+h+c2+R iobN0KGJmbcURVLeVdZDRiqMY0jirg65aC9bVus7AdOjUlEq3wd6pIMJlUij7of+1Z/j 2emQ== X-Gm-Message-State: AOAM531L8sR2U2UmMszRWLpiHG0XYRQfvllnBOBBvEN8Rjiv9VkUzVUT 0F2yLsEmF2hhuFUpvZH1cTQ6mciUM78z8KAvN9Y= X-Received: by 2002:a19:4a97:: with SMTP id x145mr16471976lfa.66.1589342744155; Tue, 12 May 2020 21:05:44 -0700 (PDT) MIME-Version: 1.0 References: <20200509031919.9006-1-steves.lee@maximintegrated.com> <20200511110346.GE8216@sirena.org.uk> <20200512103316.GB5110@sirena.org.uk> In-Reply-To: <20200512103316.GB5110@sirena.org.uk> From: Steve Lee Date: Wed, 13 May 2020 13:05:32 +0900 Message-ID: Subject: Re: [PATCH 2/2] ASoC: max98390: Added Amplifier Driver To: Mark Brown Cc: Liam Girdwood , Jaroslav Kysela , Takashi Iwai , ckeepax@opensource.cirrus.com, geert@linux-m68k.org, rf@opensource.wolfsonmicro.com, =?UTF-8?B?U2h1bWluZyBb6IyD5pu46YqYXQ==?= , Srini Kandagatla , Krzysztof Kozlowski , dmurphy@ti.com, jack.yu@realtek.com, nuno.sa@analog.com, steves.lee@maximintegrated.com, Linux Kernel Mailing List , ALSA development , ryan.lee.maxim@gmail.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 12, 2020 at 7:33 PM Mark Brown wrote: > > On Tue, May 12, 2020 at 06:13:05PM +0900, Steve Lee wrote: > > On Mon, May 11, 2020 at 8:03 PM Mark Brown wrote: > > > > > +static const char * const max98390_current_limit_text[] = { > > > > + "0.00A", "0.50A", "1.00A", "1.05A", "1.10A", "1.15A", "1.20A", "1.25A", > > > > + "1.30A", "1.35A", "1.40A", "1.45A", "1.50A", "1.55A", "1.60A", "1.65A", > > > > This looks like it should be in DT too. > > > Since this control is needed while running system according to system > > battery situation. > > I'd keep this mixer for further use. > > That's... interesting for a current limit, and sounds like it would > have issues for the common case use of current limits to protect the > hardware. > > > > > +static int max98390_dsm_calib_get(struct snd_kcontrol *kcontrol, > > > > + struct snd_ctl_elem_value *ucontrol) > > > > +{ > > > > + struct snd_soc_component *component = > > > > + snd_soc_kcontrol_component(kcontrol); > > > > + > > > > + dev_warn(component->dev, "Get dsm_calib_get not supported\n"); > > > > + > > > > + return 0; > > > > +} > > > > Just don't implement the operation if you can't implement it. > > > If this not exist as dummy operation and all mixer was not working and > > could not implement better idea. > > Could you be more specific about what you mean by "not working" or how > simply not initializing the value returned fixes things please? I mean that xhandler_get pointing to NULL makes mixer list unexpected operation. I will do return fixed value without warn message. > > > Could you consider it as with warn message ? > > No, if there's a problem here we should fix it properly. Thanks for feed back.I will do return fixed value without warn message.