Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp70783pxk; Fri, 11 Sep 2020 00:09:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAbO2VXRM5RCP+ESt1Lnj3RHo9EHXxBQZfXRJfnG/I47jZaYhqsN7HKtkpGYSmvP5HPseU X-Received: by 2002:a17:906:850:: with SMTP id f16mr686264ejd.447.1599808163307; Fri, 11 Sep 2020 00:09:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599808163; cv=none; d=google.com; s=arc-20160816; b=szXKzwBidp3KlyxvZ854Y8dS5vRDHbOPIZHO5gbM6lJA3yGYdWSgjnGdirp8YBo0i8 St24LgoPgUfzvU1sb/w1MRqQIQJ3jT0QHFr2d6PsRtoubYqSFLm3dv14ZkvN88nBYtJ+ S1Z3ywX0ZIXw26H1F2J680bi6dR1AO9YLCA/sGlHUfVaZ1HlUYOC838xccdo6roTokQu IMpOhS1wcWxdAbP22xI5DKnk6LnN/lGrxXIEqsd6yffwYR5YJjGf98qevImo9w/9cSsV bHN82Y7lfcKP+oFanQVdsDuvCpZCmgOBpkwbHjMfZA6fIl/w3zJL2cV9A/b4xPlTguVS pcOw== 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=otF8H1RNd/1xFgPWM+UYeAZ5JGJnziYMUvZT/Xjw4hM=; b=ImB63ivQnmdptyyFt5O8ntdZ32P5T2CkXkpv7pmQkdo3UZR/SxJ1k4jsTCcd9Est0x u/EZLK0Xz6eyo1O964xHemT70emCVIrboZdr+WEBz6SUexjUIP0xBz9wlCJqxeTpOq1l wjk1pOnVW4n0W0mI+HBKA8QF3BQqT2GN+nok57IQp1L0XPKnbG38u384QTqPuMGJx+3i Bsm1CGJD3UGU66+TqOOWrsQF11/BAwesE6vtCPU/0p5WT2qAAatpgNdRdOHwW8eee3kT ClQcWsPcJP+JZ4zYSU3ZOkYRLmtX6NlpZXP/tE5F1HY2+rtfQ72G7QU1eVDn0P1IWhKe bRWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qe4hkqMB; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d24si674204edv.518.2020.09.11.00.09.00; Fri, 11 Sep 2020 00:09:23 -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=@google.com header.s=20161025 header.b=qe4hkqMB; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725882AbgIKHFv (ORCPT + 99 others); Fri, 11 Sep 2020 03:05:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725601AbgIKHFn (ORCPT ); Fri, 11 Sep 2020 03:05:43 -0400 Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C09BC061573 for ; Fri, 11 Sep 2020 00:05:37 -0700 (PDT) Received: by mail-io1-xd42.google.com with SMTP id z25so9930287iol.10 for ; Fri, 11 Sep 2020 00:05:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=otF8H1RNd/1xFgPWM+UYeAZ5JGJnziYMUvZT/Xjw4hM=; b=qe4hkqMBNjrfKmSzuLVus6EU9eYDBsofp7qqtq8YlvMw/Wjw74o8vcRMGH9JvNfccZ RjXMT1koZlUphilobl4V1XvQAi+X2mDvt2q7b+muUVlyHxx94WmHNIl09v2Yoyt8sNa3 WtWX6BM+X+zYBPZxkjFLsJipzKs6YD59tk5p8MMlvBc1MwGDuo0cC0/IuJwWpfHxvDfA Q3mU2POB/NRiZYsQ+sUnXy5Sz1krQd3Y+QZD0qaP3WLaSYzlQTFEr+WaCByAXoZTKuNq TNWTF2B+eRYvSopuAXve89apo0iWr2xpAlRQbuHzugZa9WocdsJLJQ2+A+dxQz4eW4ph jctA== 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=otF8H1RNd/1xFgPWM+UYeAZ5JGJnziYMUvZT/Xjw4hM=; b=nR8UkRLg2Nzrj6XuFYyQMpH917tBm7QWnDgLjk30f9ravVx7or3apHY7A5ooyrX80D 470AasNZfYwqLw0Of/PzzMK/ycC9HypUPxpSqRdT/21kWQiZjewmXCAvk/HItZvPIxfP G80SCxgwLkDWJcnmElfTtzUQFO1i0x7NBQLkljceuPXPSvcTitRWebYr3fgGznw+RfC2 zUojlUXQxiVL8mPJ+cQ5jVJFq1iXuFEZITV5fV//YvXAVQ6jzqy/G/+EVAnB3C6lXnnE 3uQVJze4OCCiicZ2WDRm1mdXMwPYFpBtOGTNcQXWYW+0982BhYRTGFFeLUBC3t8VynI6 bIqA== X-Gm-Message-State: AOAM530ETkVZtEfiR9hLCFnmI4F/1GpitChbsWGaOiiLqnAb7gJ3ijbp PIZ2dDSC5r4BNVftVE/8wuyh+MObvCS9UlXAzbF/K7EYnv8= X-Received: by 2002:a5e:9b04:: with SMTP id j4mr731216iok.59.1599807936340; Fri, 11 Sep 2020 00:05:36 -0700 (PDT) MIME-Version: 1.0 References: <20200910052347.1790735-1-cychiang@chromium.org> <20200910052347.1790735-2-cychiang@chromium.org> In-Reply-To: <20200910052347.1790735-2-cychiang@chromium.org> From: Tzung-Bi Shih Date: Fri, 11 Sep 2020 15:05:25 +0800 Message-ID: Subject: Re: [PATCH v8 1/3] ASoC: hdmi-codec: Use set_jack ops to set jack To: Cheng-Yi Chiang Cc: Linux Kernel Mailing List , Mark Brown , Taniya Das , Rohit kumar , Banajit Goswami , Patrick Lai , Andy Gross , Bjorn Andersson , Liam Girdwood , Rob Herring , Jaroslav Kysela , Takashi Iwai , Srini Kandagatla , Stephan Gerhold , Matthias Brugger , Heiko Stuebner , Douglas Anderson , dgreid@chromium.org, Tzung-Bi Shih , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, ALSA development , linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org 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 Thu, Sep 10, 2020 at 1:24 PM Cheng-Yi Chiang wrote: > diff --git a/sound/soc/codecs/hdmi-codec.c b/sound/soc/codecs/hdmi-codec.c > index 8c6f540533ba..d1de5bcd5daa 100644 > --- a/sound/soc/codecs/hdmi-codec.c > +++ b/sound/soc/codecs/hdmi-codec.c > @@ -698,13 +698,9 @@ static void plugged_cb(struct device *dev, bool plugged) > hdmi_codec_jack_report(hcp, 0); > } > > -/** > - * hdmi_codec_set_jack_detect - register HDMI plugged callback > - * @component: the hdmi-codec instance > - * @jack: ASoC jack to report (dis)connection events on > - */ > -int hdmi_codec_set_jack_detect(struct snd_soc_component *component, > - struct snd_soc_jack *jack) > +static int hdmi_codec_set_jack_detect(struct snd_soc_component *component, > + struct snd_soc_jack *jack, > + void *data) To be neat, name it "hdmi_codec_set_jack". > static int hdmi_dai_spdif_probe(struct snd_soc_dai *dai) > { > @@ -806,6 +801,7 @@ static const struct snd_soc_component_driver hdmi_driver = { > .use_pmdown_time = 1, > .endianness = 1, > .non_legacy_dai_naming = 1, > + .set_jack = hdmi_codec_set_jack_detect, "hdmi_codec_set_jack" looks better to me. If you would send a newer version, consider changing the name. With that: Reviewed-by: Tzung-Bi Shih