Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10334511ybi; Thu, 11 Jul 2019 03:38:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsct0CHXYGR6gTBP37AK/XsDdRc1Qk4hsVGClbl3O4Mco6v5eNo5jlFB5t5hk/7357NAns X-Received: by 2002:a17:90a:db08:: with SMTP id g8mr3914460pjv.39.1562841500599; Thu, 11 Jul 2019 03:38:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562841500; cv=none; d=google.com; s=arc-20160816; b=XTKLTlTDiTRZzWXzT0/eQDRLJ1XNju49VP6/MINRz0ctYrj+pbm/xcdgjnuW50N14f CqLfADw0cYp8Jq8Za7r/XVQwxOXJYZD9Kppq1j0G/xQTwzpHjCIcQ8Iwx2wFr11ej7Un FSMgvJtFMJNoEmhEfaee65WnnD+dEY5CWwqsI1c3QQ6yL5aW8gEk2lRVYQbkGvvA1yST 2Cw1ZzsVrou9C5R2HMLbEvJSVtcMh5Q0Lajde+OwTHj3qw7+GX9uh8a0YXDLagAsAcel Om8ZpcklMoxKzp1jvKrUTuBM2bRabqd15wWippYPm9nZq5Qs8Qi1jSpJC/5wHp8cyPs8 zCoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=7U2G4EIDTohj4GLJBc1CsAdYb3Srm8+cHCV4KhEDuP0=; b=HVS19b6KQsNnO3e3vzkD7GOpqwUsgqpHIcuEpwavIJYTH5kA9W7iJR6Gvve7aNuRa2 5ecOnHFjX78b98m2+e2MTrY3e+M6xFHy2gLcKBdYFzaxltTcLpnqt4Yjryfg2Q6J0K/n 0ePduPmo1apWryJ6YhgZBW1x7cbATT6Q0o0SYbo/GOONtb4WWGZunYYd91r2noV+iuAk jSxgh7cigpWPDfMtG+pYY7Y/Wo+9I52nubdDh5wCE/JINI5tEvBIIX8ydEBeCeq/Gf1y k7t7I0ZJZkJ+W9p7jVPFzO18kJp0xzzJNZylsFxclke2Fd5lDFVAunNZZNFARzsGjgRS /0VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=WheCH8ID; 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 i4si4837783pgk.8.2019.07.11.03.38.04; Thu, 11 Jul 2019 03:38:20 -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=fail header.i=@ffwll.ch header.s=google header.b=WheCH8ID; 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 S1728422AbfGKKZc (ORCPT + 99 others); Thu, 11 Jul 2019 06:25:32 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:40854 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727680AbfGKKZb (ORCPT ); Thu, 11 Jul 2019 06:25:31 -0400 Received: by mail-ed1-f68.google.com with SMTP id k8so5249417eds.7 for ; Thu, 11 Jul 2019 03:25:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=7U2G4EIDTohj4GLJBc1CsAdYb3Srm8+cHCV4KhEDuP0=; b=WheCH8IDb1xLjYRkQ1wHhqBOQvwu9yadLjHXO+2GvTWatmnx3ohVHucMEFlWsb327e 8oBL/JN3VnzQDpfznayYp5BYRXFtNz+qzfi7kDxf+viYPUc2s5/GMiZFA6C2e95tFaaH 5eYJT5wwV5q1SpRg5tWMqZl9lM/DrKXjd8GJ4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=7U2G4EIDTohj4GLJBc1CsAdYb3Srm8+cHCV4KhEDuP0=; b=UsLYbGFHTDD32yglkfj5Z7EdAbohQ5ImDlL0omjmVMiGridPFuBkTZiNkyz5MsFNRF D94dIAQxj0lpPvBtqvls6qukYieD1HPk3WT/BAHLjU0WXjzpGXzVu63FTUzbFeaq31GS wccCvpkfg4YaywwUDYrggjbe5ansRBHDPQMp+EGQiULBpMifIDUQhuFTdPpn3JbHzkq1 gBWa6ngcBwAnvmYf48ZA2vv0+R2rFpIn7lnRsJzOu3SyUoK9RPSoyNqU0Jh2vgLCi/oZ cnu8xpWhlD8WUXIM8LwaJEPY4HHNVTaZgw5jAq0wV+81OTJRqLWeITOMSDCH4d4VfP8+ ipLA== X-Gm-Message-State: APjAAAXmbdANpEuM/YZ77UX9T2ZnBWwq5S1PAVuYORZhn0/tODLeNfvt cVqWznXGtAuTMsDLFWAHoD4= X-Received: by 2002:aa7:cd17:: with SMTP id b23mr2648368edw.278.1562840729665; Thu, 11 Jul 2019 03:25:29 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:569e:0:3106:d637:d723:e855]) by smtp.gmail.com with ESMTPSA id y3sm1436461edr.27.2019.07.11.03.25.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 11 Jul 2019 03:25:28 -0700 (PDT) Date: Thu, 11 Jul 2019 12:25:26 +0200 From: Daniel Vetter To: Philippe CORNU Cc: Olivier MOYSAN , "a.hajda@samsung.com" , "narmstrong@baylibre.com" , "Laurent.pinchart@ideasonboard.com" , "jonas@kwiboo.se" , "jernej.skrabec@siol.net" , "airlied@linux.ie" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , Benjamin GAIGNARD , Alexandre TORGUE , "linux-arm-kernel@lists.infradead.org" , "linux-stm32@st-md-mailman.stormreply.com" , "jsarha@ti.com" Subject: Re: [PATCH] drm/bridge: sii902x: add audio graph card support Message-ID: <20190711102526.GK15868@phenom.ffwll.local> Mail-Followup-To: Philippe CORNU , Olivier MOYSAN , "a.hajda@samsung.com" , "narmstrong@baylibre.com" , "Laurent.pinchart@ideasonboard.com" , "jonas@kwiboo.se" , "jernej.skrabec@siol.net" , "airlied@linux.ie" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , Benjamin GAIGNARD , Alexandre TORGUE , "linux-arm-kernel@lists.infradead.org" , "linux-stm32@st-md-mailman.stormreply.com" , "jsarha@ti.com" References: <1562141052-26221-1-git-send-email-olivier.moysan@st.com> <7c17b3f2-afee-7548-7620-b67d11d09b24@st.com> <20190710152720.GR15868@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 4.19.0-5-amd64 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 11, 2019 at 09:27:30AM +0000, Philippe CORNU wrote: > Hi Daniel, > > > On 7/10/19 5:27 PM, Daniel Vetter wrote: > > On Fri, Jul 05, 2019 at 12:41:03PM +0000, Philippe CORNU wrote: > >> Hi Olivier, > >> and many thanks for your patch. > >> Good to have the audio graph card support, looks ok. > >> Reviewed-by: Philippe Cornu > > > > Since you have drm-misc commit rights I'm assuming you're going to push > > this too. Correct? > > Regarding this patch in particular, there is still missing an acked-by > from a "bridge" maintainer. Also it could be nice to wait for the > reviewed-by from Jiry as it knows well this sii driver and sent recently > good patches on it (already merged). The bridge maintainer is looking for new bridge maintainers (atm we have only one, defacto), so for bridge driver patches I really don't think it's a good idea to gate on that single bottle-neck. Infrastructure is a bit a different thing. > With that, Benjamin or I (or a bridge maintainer) can push this patch + > the serie named "drm/bridge: sii902x: fix audio mclk management" as I > think it is better to push this serie *before* this patch. Wahtever you feel like, just wanted to make sure you're not stuck twiddling thumbs. The entire point of drm-misc is to facility mesh review and maintainership, because the strict hierarchy just doesn't work for smaller things. Exactly because you're always blocked on a bottleneck somewhere. -Daniel > > Thanks, > Philippe :-) > > > >> Philippe :-) > >> > >> On 7/3/19 10:04 AM, Olivier Moysan wrote: > >>> Implement get_dai_id callback of audio HDMI codec > >>> to support ASoC audio graph card. > >>> HDMI audio output has to be connected to sii902x port 3. > >>> get_dai_id callback maps this port to ASoC DAI index 0. > >>> > >>> Signed-off-by: Olivier Moysan > >>> --- > >>> drivers/gpu/drm/bridge/sii902x.c | 23 +++++++++++++++++++++++ > >>> 1 file changed, 23 insertions(+) > >>> > >>> diff --git a/drivers/gpu/drm/bridge/sii902x.c b/drivers/gpu/drm/bridge/sii902x.c > >>> index dd7aa466b280..daf9ef3cd817 100644 > >>> --- a/drivers/gpu/drm/bridge/sii902x.c > >>> +++ b/drivers/gpu/drm/bridge/sii902x.c > >>> @@ -158,6 +158,8 @@ > >>> > >>> #define SII902X_I2C_BUS_ACQUISITION_TIMEOUT_MS 500 > >>> > >>> +#define SII902X_AUDIO_PORT_INDEX 3 > >>> + > >>> struct sii902x { > >>> struct i2c_client *i2c; > >>> struct regmap *regmap; > >>> @@ -690,11 +692,32 @@ static int sii902x_audio_get_eld(struct device *dev, void *data, > >>> return 0; > >>> } > >>> > >>> +static int sii902x_audio_get_dai_id(struct snd_soc_component *component, > >>> + struct device_node *endpoint) > >>> +{ > >>> + struct of_endpoint of_ep; > >>> + int ret; > >>> + > >>> + ret = of_graph_parse_endpoint(endpoint, &of_ep); > >>> + if (ret < 0) > >>> + return ret; > >>> + > >>> + /* > >>> + * HDMI sound should be located at reg = <3> > >>> + * Return expected DAI index 0. > >>> + */ > >>> + if (of_ep.port == SII902X_AUDIO_PORT_INDEX) > >>> + return 0; > >>> + > >>> + return -EINVAL; > >>> +} > >>> + > >>> static const struct hdmi_codec_ops sii902x_audio_codec_ops = { > >>> .hw_params = sii902x_audio_hw_params, > >>> .audio_shutdown = sii902x_audio_shutdown, > >>> .digital_mute = sii902x_audio_digital_mute, > >>> .get_eld = sii902x_audio_get_eld, > >>> + .get_dai_id = sii902x_audio_get_dai_id, > >>> }; > >>> > >>> static int sii902x_audio_codec_init(struct sii902x *sii902x, > >>> > > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch