Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3579601rdh; Mon, 27 Nov 2023 19:17:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IF5GRh3QV7wFiLK2kFg+H6goLkNB7wtCiPxoo/Sp4QOdpfIZCOWLSsJslY9Bd+PshfQMIWY X-Received: by 2002:a17:90b:3882:b0:285:9d3f:cca8 with SMTP id mu2-20020a17090b388200b002859d3fcca8mr14177897pjb.26.1701141462813; Mon, 27 Nov 2023 19:17:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701141462; cv=none; d=google.com; s=arc-20160816; b=G1clMCK7iNA0uilAfsnG0Nh67glDZccXwbnGra+5Ok8CUHsxkYbpV7lQDkAadxwsPi ebTK2134s82JFsDoGBiGs0noNmaHpvOKB1BBftih6aCVh8Pu8S4BkJNP6e/wPalmbp1p N+fQGXhUQl7b+ZURTHczaTE8+JSEVqUgJes1J7I5TNccA23uw4tAq2JhHD0QfniLU56w KvJvd6SeHt7E9FVPOh/G62C6AXOKycWNDuNZKm/zefHo1vY59V8ivtTXlTeOO0d45i9m GEEhY/YEm6vx7GtY43icVJ06JLolxf9qSr2qazH9anFBrr5MToEnWjCL16taoL1ncMzF PtNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=9wp5HnTgZ7ZLaUo9Q/M6nPjzjSUwa62T1Maa/se+gxo=; fh=YkbYyz62nhLCK+gJ18suxS8Ghv15G0nwZ58QVM5ArhU=; b=a2fmJN5jmwpx8oMXOaJikxloL/JwXpXAiPy0OahRPXmYoO3a0chOi0SmoksTxLWprJ ZGCrDU2Q5oFQQXX1D/VbCtEekxXwUwU/NR55gka9sKm9ZcgRDh9j+2PeBfulFklXnLFk U1vfDJOoqrXw0Z+leNJDpYiKcl4VMxQlBroHPcVBC++nKtq0t3gN2rRhINE8GFsg54+E 1Z5ZVdVZUVmxyMgECLkQtG52b5v/Syg/sAmqwrZyCq2klP4MEYj8ecmsIzrZRMXF+rY4 LvOceOddqoyDeinbphVmFoCekZLDigCyjwkDsnAGu5OuQYIyOS/pR6queoR8UV4/c5A5 rxSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=GCE1tbom; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id d2-20020a17090ac24200b0028596b1c1bbsi8253951pjx.90.2023.11.27.19.17.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 19:17:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=GCE1tbom; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 52211809ECA9; Mon, 27 Nov 2023 19:17:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234544AbjK1DR1 (ORCPT + 99 others); Mon, 27 Nov 2023 22:17:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229789AbjK1DR0 (ORCPT ); Mon, 27 Nov 2023 22:17:26 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAE0B1A1 for ; Mon, 27 Nov 2023 19:17:32 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-507adc3381cso6784757e87.3 for ; Mon, 27 Nov 2023 19:17:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701141451; x=1701746251; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=9wp5HnTgZ7ZLaUo9Q/M6nPjzjSUwa62T1Maa/se+gxo=; b=GCE1tbom4VZVtXggtsvtDWpOcEnOtsgdvyX3yQ6ThIGTOahY7NdeIk+yeMDd4wxYs3 SMyY7XM42bVAxISb/T84dVrZCDJnkuEzYNebwrGEvgEIh8c+wcRX1jAh3Izpwg63BRV1 EiWYfu+vCWwzF5fguP8KDdNesyS7D+PQTRIaQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701141451; x=1701746251; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9wp5HnTgZ7ZLaUo9Q/M6nPjzjSUwa62T1Maa/se+gxo=; b=ZBTV5mKV3ckliywIVC2+Ee42UbZEFZMjZyDMx4olKtzQvoRjWcM4z+YxtBXsLj7tJn deuogJ47P3hnc7PnWGqX0ajfJWDT/TANRLvNL8r0LO1jXIc7zMzHTLwrd/ZoIxKUKY4p IElRz/yiV7b8nPBaqkmdZ+PY5j0Cx6YybQJWBOKTCtmVwbSgsCtKvvKoOb7QY27jaw3I pec72ct53cd9e23g/bALDB9sVvwhCmCC70+D+KpBueKHwDbOcp3eVPyAZnQ9aDcAbht4 8bRfENgj1l6jDMPCGmE0t5xxIAu+SrdafuAgHgSarK+SmZCG2WDNUQFhJX67lcKcdoQy BuIQ== X-Gm-Message-State: AOJu0YwqKJoPrZU3KsFQxFA+T2Ul3HoMQDSFp7WRl/CunYNdOGYkMSWr XmXn2YW3tLfFNcdm2BXOk7q8U77auF/5E2UNB8KLgg== X-Received: by 2002:a05:6512:3585:b0:500:d4d9:25b5 with SMTP id m5-20020a056512358500b00500d4d925b5mr7469216lfr.56.1701141451084; Mon, 27 Nov 2023 19:17:31 -0800 (PST) MIME-Version: 1.0 References: <20230730180803.22570-1-jiaxin.yu@mediatek.com> <20230730180803.22570-4-jiaxin.yu@mediatek.com> In-Reply-To: From: Chen-Yu Tsai Date: Tue, 28 Nov 2023 11:17:20 +0800 Message-ID: Subject: Re: [v3 3/3] drm/bridge: it6505: Add audio support To: AngeloGioacchino Del Regno , Jiaxin Yu Cc: broonie@kernel.org, andrzej.hajda@intel.com, neil.armstrong@linaro.org, robert.foss@linaro.org, Laurent.pinchart@ideasonboard.com, kuninori.morimoto.gx@renesas.com, nfraprado@collabora.com, alsa-devel@alsa-project.org, chunxu.li@mediatek.com, allen-kh.cheng@mediatek.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Project_Global_Chrome_Upstream_Group@mediatek.com, linux-mediatek@lists.infradead.org, ajye_huang@compal.corp-partner.google.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 27 Nov 2023 19:17:40 -0800 (PST) On Tue, Nov 21, 2023 at 8:54=E2=80=AFPM AngeloGioacchino Del Regno wrote: > > Il 30/07/23 20:08, Jiaxin Yu ha scritto: > > Add audio support for it6505 > > > > 1. Bridge to hdmi-codec to support audio feature. At the same time, > > the function of automatically detecting audio is removed. > > 2. It is observed that some DP-to-HDMI dongles will get into bad > > states if sending InfoFrame without audio data. Defer to enable > > it6505's audio feature when PCM triggers START or RESUME. > > > > Signed-off-by: Jiaxin Yu > > Hello Jiaxin, > this patch doesn't apply anymore (and it won't build anymore) upstream. > > > --- > > drivers/gpu/drm/bridge/ite-it6505.c | 81 ++++++++++++++++++++++++++--= - > > 1 file changed, 75 insertions(+), 6 deletions(-) > > > > diff --git a/drivers/gpu/drm/bridge/ite-it6505.c b/drivers/gpu/drm/brid= ge/ite-it6505.c > > index 504d51c42f79..1cfcb0731288 100644 > > --- a/drivers/gpu/drm/bridge/ite-it6505.c > > +++ b/drivers/gpu/drm/bridge/ite-it6505.c > > @@ -2162,7 +2162,6 @@ static void it6505_stop_link_train(struct it6505 = *it6505) > > > > static void it6505_link_train_ok(struct it6505 *it6505) > > { > > - struct device *dev =3D &it6505->client->dev; > > This is because this changed to `struct device *dev =3D it6505->dev;` > > > > > it6505->link_state =3D LINK_OK; > > /* disalbe mute enable avi info frame */ > > @@ -2170,11 +2169,6 @@ static void it6505_link_train_ok(struct it6505 *= it6505) > > it6505_set_bits(it6505, REG_INFOFRAME_CTRL, > > EN_VID_CTRL_PKT, EN_VID_CTRL_PKT); > > > > - if (it6505_audio_input(it6505)) { > > - DRM_DEV_DEBUG_DRIVER(dev, "Enable audio!"); > > - it6505_enable_audio(it6505); > > - } > > - > > if (it6505->hdcp_desired) > > it6505_start_hdcp(it6505); > > } > > @@ -2846,6 +2840,45 @@ static void __maybe_unused it6505_audio_shutdown= (struct device *dev, void *data) > > it6505_disable_audio(it6505); > > } > > > > +static int it6505_audio_hw_params(struct device *dev, void *data, > > + struct hdmi_codec_daifmt *daifmt, > > + struct hdmi_codec_params *params) > > +{ > > + struct it6505 *it6505 =3D dev_get_drvdata(dev); > > + > > + return it6505_audio_setup_hw_params(it6505, params); > > +} > > + > > +static int it6505_audio_setup_trigger(struct it6505 *it6505, int cmd) > > +{ > > + struct device *dev =3D &it6505->client->dev; > > ...and because you'll have to change this one, and other occurrences of t= hat > as well. > > Can you please respin this series? Please also add a patch adding #sound-dai-cells to the it6505 binding.