From patchwork Mon Jun 19 00:39:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 9795007 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 62F79600C5 for ; Mon, 19 Jun 2017 01:10:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5345226E46 for ; Mon, 19 Jun 2017 01:10:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 47E7527F98; Mon, 19 Jun 2017 01:10:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A840C26E46 for ; Mon, 19 Jun 2017 01:10:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6FD646E11E; Mon, 19 Jun 2017 01:09:43 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from relmlie3.idc.renesas.com (relmlor4.renesas.com [210.160.252.174]) by gabe.freedesktop.org (Postfix) with ESMTP id DE0F189DA2 for ; Mon, 19 Jun 2017 00:39:35 +0000 (UTC) Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie3.idc.renesas.com with ESMTP; 19 Jun 2017 09:39:33 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id D42F355DD7; Mon, 19 Jun 2017 09:39:33 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.39,358,1493650800"; d="scan'208";a="247995516" Received: from mail-sg2apc01lp0239.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.239]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 19 Jun 2017 09:39:32 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Y3NR7FWtrQwP1MkAjqCFEw6qyYivpsjkiIbMYCbPzxw=; b=mC5EeQGO0uNiqe0KkCGXMIg1jWwRRddWfSWp6a9EtTFOK2VdqHNf+DDE5aBElAZpLn1D9FbaV4TVA0zy4ZadS80EH9xHIB+xHOIkigTqMZchE4iUN77EGj1+X7zNHES3mV0pedlnYy+Vo0ozA2pFnj1a3XdlSVnvmD0p51MNwlU= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by SG2PR0601MB1885.apcprd06.prod.outlook.com (2603:1096:3:9::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14; Mon, 19 Jun 2017 00:39:29 +0000 Message-ID: <87efug24ue.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Mark Brown , Archit Taneja Subject: [PATCH][RESEND] drm: dw-hdmi-i2s: add .get_dai_id callback for ALSA SoC In-Reply-To: <87efvnosnb.wl%kuninori.morimoto.gx@renesas.com> References: <87efvnosnb.wl%kuninori.morimoto.gx@renesas.com> User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Mon, 19 Jun 2017 00:39:29 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: SIXPR04CA0052.apcprd04.prod.outlook.com (2a01:111:e400:51e5::42) To SG2PR0601MB1885.apcprd06.prod.outlook.com (2603:1096:3:9::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c9ca8521-439d-49b6-6805-08d4b6aba638 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:SG2PR0601MB1885; X-Microsoft-Exchange-Diagnostics: 1; SG2PR0601MB1885; 3:Ita4h8wFxsH68j+hE84raanct5ll14fSDhWyc/324K5GAlqxvLnuHzcOwxcZ3ZJnxnlbolA2Ril9YyiqhTB0YiTEk9vM2KLarfEwsx57LznEqqbI1CBqx9PB8HnDZM3xdT9ioyuS+/vRcQyu8L5rOp0ArChogdiLSbEh69SogkVsAuY7CudOI1ZCGibfILSbbKMyqZrvWf0/xjXWnExh0MDaEyZZ5oEd25Typ6qOmbJ5eLWdyOChS4o/Ilu9k0OxcCTBzoRvV95mbOy8rXTK9kO/G+wXafcyHK6WGpQ/6ty8GstIMD9vzEk19vXTYegZkL7IFde/3Q8xWbqnJhsFhDI7wp9C3UIIsg1tfn2iisQ= X-MS-TrafficTypeDiagnostic: SG2PR0601MB1885: X-Microsoft-Exchange-Diagnostics: 1; SG2PR0601MB1885; 25:muH52+Akf7tqw7T8JMkmgaid8H3kQHFl1gYAsr42dbgLCRTOqqBXlVR3QiGW4sVPSNnIvea8z+tTPVkkPi84Rwe9hPXpUO6b+jqx7fRCWRWEqqYqEPb5owDpISY8ldb6TM2TiyIBeebevT6OvlM1aOI61HfzLBkno3MvF7Td0qTLetFcvlYmVM1MEehbugA8rMPgHtJ5NIC6orFItb3lsTNG2nv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uS/cM0FHqvaDrtoNTy2YcWoT6/Xa0M6JB3N7dMuVB3g127IuYZfBsXhwvID3/R/ohc8yaWRRv942YHf0d/JpP4lXoscIWPKLJBUuo+73HF31Wskk5hwgLyIoChMcKJeb4LBoFGJAAp7zr7h/iEXLm4aAK9pf4ySfKEEbab62wlEC/lxgyWX54OXOA1iXoQfpCge4wJXfU0Cx7/qdIr1EGLmVbVtNjpchvFMYcKz4DkNpSOtJov0nFrKSOSlWlW3BUUu1xuuxqcSvzMsWsGGab0nXCZGHhN0gihLrpFXpLTpnCnNXytmtinOx/vn7URh6DUaqIWkpPi9w== X-Microsoft-Exchange-Diagnostics: 1; SG2PR0601MB1885; 20:ZMALNjlL3zeC9pfACLAmXqQLmR2jbm2p3EeZmzsHUeFT2vRHOaAbZtYW4fMeoASq3MmhaqPaOZCO4DeSNQ5nfc3SO2+XlO903/GU1LCb5fCsDcaDYNzs0+1vDOq4xGi+8vwURr9ixmCzhQ7kQ7aVd783Pk6puEdze6ssp2KD0hPq/S+6qilAu0VjT46u30qoUZGbT8i5UY/QIeOwbXLMV1mc90RLLBXfAQhl8zze5OM0escVYf56mlC1lcRAhq8Cc3n11r95yuHtP1I2/PaUpEDB+msLYCpcPrhLGEKQJpNyOJIoriuCPxdSWWcYcTMP3i2vL0ixKNFpIlE5yVa9Gdb8t3C2P8vmPmxLwD71FIOiaS3/ol9WY0EJ5EaLftvj7wgnZL9aRPpWhHD3atQ04qxtc3+is+2l14KoQCss3Vozgfe5Lo7K856+ixi1+CAmPB/2jI/zNW842aBWSMEOwtw7Os3rDJ+rTkSX53VOdWsFhxtX9zMZG64aYJXctSXr X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123558100)(20161123562025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SG2PR0601MB1885; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SG2PR0601MB1885; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR0601MB1885; 4:7KL4OcgHjrXGitXo3nevrnpnYtKGqxdclB1tot4e?= =?us-ascii?Q?Q1dct2Q/XNBiCOyglPU+fkQl2aAlGYq5zq7SNLk7J3HycRh6rSIGVtIZCCCM?= =?us-ascii?Q?0pLxd7V5fukN/a2mjyvMh+0qnliX/E+FkA3UBb0wrFmYoRAbhyYQPC3ed75P?= =?us-ascii?Q?yJ2VHjVpANA5V7mWhwgq6mxaQTQayho1qH6VrRXCLy5lAu05gDnEE2eZIffE?= =?us-ascii?Q?LnP+wrvZ87feMAuO1J4pCRlkReC75RxKm1WyCXVLOMgt0V7tmghQmeqr2gLX?= =?us-ascii?Q?SH8qis0Em/urhOuJQaeQ3nP3YV2NvrY8NKf4qWENQ3GvBWZcTiTeTTHF5JGV?= =?us-ascii?Q?7UyhJD2bSTqEtL5iMiBd6/ejIqu+ccbdeOC/zv4h1P+zk/LW1DwccP0Xfnj7?= =?us-ascii?Q?WmH6VVrv8x3gBXihgmxiaxyBNKKSrJRRg+WoYBqR2I2hVas4T+yZp7CtrPeU?= =?us-ascii?Q?zkcVrdnXGMPgmUWj3zOP1aYBcakszsxfURBstca9WWXd0GrqIulLst9GpI/w?= =?us-ascii?Q?ZLteoKdLvZZ1S18IOhbPkpTd9+KAJl1SLo7DJabzz6q8G5XVisIo8MeYqG/Z?= =?us-ascii?Q?yY/34TZpyBq55sJyOF4Zbfo4QeBbZMJZOUBPQTQYmr+KrVsd1AcfPfLuOcNe?= =?us-ascii?Q?onDVdgGxq4uLDUsRxL8sjx8B20wOLOKN3VqQz458XgAA7yhi8+NJnSK15tJI?= =?us-ascii?Q?TY2vXfRZ4uoKf2geZVJ9Ail5unSevn6opMzNdF4lHxB5qXoKqgv59ivLj4TN?= =?us-ascii?Q?cOnGhTGvHLzMvN8z26jULGs0Lr2xAgepmnkMyEXs1bYBY0LCvMhN9t28Q4y6?= =?us-ascii?Q?1UL8IO4MguLSNmamUSdIi6Oo/dMoLocX6PpsOzVu4UIF9batgjavU6q07awo?= =?us-ascii?Q?CFes26JvjcMnTtcgg9KU4HfsrwcJ16B62caMfg1fS4pVeujDrc+1d1AHA/ux?= =?us-ascii?Q?eGqdpLb5GTd8r/Ny5/l62JtitJO32jlFQr8uttTVOn9Y3yGS4JzBm3jWGVI5?= =?us-ascii?Q?VDkpgsGB4tNKHJrmyuGk1nLHmVfo0GzMmnuMVFmvULchT1xb6hUMrVptZ+bZ?= =?us-ascii?Q?XBTZlr50zp0k4jFHodCsh2Tno80A4ARBwJywxKP9Qo1Aty+FvwvDqZE1eYAW?= =?us-ascii?Q?y5LRleoSKF2JNIN3417m6MbgPOs/4cMHUjB782NS2bxNIgUlrqBM0w=3D=3D?= X-Forefront-PRVS: 0343AC1D30 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(39860400002)(39840400002)(39450400003)(39410400002)(39400400002)(39850400002)(7736002)(54356999)(6486002)(53936002)(86362001)(8676002)(50986999)(33646002)(46406003)(76176999)(83506001)(42186005)(50466002)(2950100002)(38730400002)(230783001)(5660300001)(66066001)(7416002)(47776003)(189998001)(36756003)(81166006)(4326008)(6116002)(305945005)(53416004)(3846002)(23726003)(2906002)(478600001)(4001350100001)(25786009)(142923001)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR0601MB1885; H:morimoto-PC.renesas.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR0601MB1885; 23:8Q9hb0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Dl62ozPY0DSdkyNHX368lBI; 24:AVyuxB1XaQ+FcvLxaCJL3UxvfLJk65fE+esT7MBfqEpY5JOLCMtu8iCQcwM1VG3PPyGJWgmCl1H6wdyE3bUwZmkwN46ykgOoZKGE7zNcsvI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SG2PR0601MB1885; 7:YgQGLBA9wpAfwzKEKF7N++BaXH+JBkY/oVusaWmzGS4Doo9trn9vwCtPEYOap9eJoa6nPOMGinnZXAuWmkoestpvGBznw+Nk2oFIpVTCxB/JrEH/tI4pl2m720K1YF8Qu8SmSJbIJA7xO4z02xvPd+tZOfjJvFbKeYYWHoMFhR6L/zbAYjLH5aJV57jNPdUnBNn49xceXYngqU6OJrNftamXzm8I6OA1mncmkgadxT/ZGADbBxEffvX03uSEBzGEm+CMjRHE3jSswjSlZ5CHg4/K7kkPVtkDIMaWLY1NkHXwf6Zsh/3MrJBu9g+GD4epcaNFqtpEnZD1BkTFQ445YNRDZCj7zY7HHmzU/U64nKkBbqQrgF2e8dTtzzeJijo9IDyZhBlhZ1qp8JX1VNx70bMi3HHG6+70ZfFvHH+Q0QaEy3pYUYZZi2u4HlviL0WxZNhoevrtpOY8aKHsZsjU3odqSpuZOtG0VDA0IOjaZ6Fgs8kHxwlZz/wQKacOUateghmfh0GyDfp/VJm9kjdj++1TAxu1e0iDIyavsvCeFubvtiPOIN3ZqUqbpQSIn049aCa1KFhULB0F6pJy0JTv5ZcLY3rvDuBS+l5BuJE++GLeEds8HUMGxKPqoNJsiyy+9F7ivHeuSALZVwpPmPB5ba0R0GAnVtrA25uL6BSIV4C3yu8HTJVAxrdWgPBDLQmuzLbm8SMoKdxQSaXrcrNc8Whxq1xebtrymPN9MM/C/k2hspuMKCIbRa+3ntaq1g95JqmgeUzMITI8NJBFMYxpfbCvpZxUnM5bMXVk+NokABQ= X-Microsoft-Exchange-Diagnostics: 1; SG2PR0601MB1885; 20:VcOHTtKNjEHW8acB2pHmtk0CnuJSG8GGrVHYaTGTuzh/Z93x5cP6F8Sc8nb9EecLeI8acqd53xZhYxgDczJ90ia9wyaPqet+ySUfy6eZmUSbocEGpkJFHG+HpjTI/EOX9/Zr7KhTi6MTsSqZY/tsabAaE2XDjDYei/yGzRrS4E0= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2017 00:39:29.7178 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR0601MB1885 X-Mailman-Approved-At: Mon, 19 Jun 2017 01:09:41 +0000 Cc: Jose Abreu , Linux-ALSA , Laurent Pinchart , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, Russell King , Simon X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto ALSA SoC needs to know connected DAI ID for probing. It is not a big problem if device/driver was only for sound, but getting DAI ID will be difficult if device includes both Video/Sound, like HDMI. To solve this issue, this patch adds new .get_dai_id callback on hdmi_codec_ops. dw-hdmi-i2s will assume that HDMI sound will be connected to reg = <2>. Then, ALSA SoC side will recognized it as DAI 0 ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; /* HDMI Video IN */ }; port@1 { reg = <1>; /* HDMI OUT */ }; port@2 { reg = <2>; /* HDMI Sound IN */ }; }; Signed-off-by: Kuninori Morimoto Acked-by: Archit Taneja --- v1 -> v1 resend - add Archit's Acked-by (= DRM maintainer) .../bindings/display/bridge/renesas,dw-hdmi.txt | 9 ++++++++- drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c | 21 +++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/bridge/renesas,dw-hdmi.txt b/Documentation/devicetree/bindings/display/bridge/renesas,dw-hdmi.txt index f6b3f36..81b6858 100644 --- a/Documentation/devicetree/bindings/display/bridge/renesas,dw-hdmi.txt +++ b/Documentation/devicetree/bindings/display/bridge/renesas,dw-hdmi.txt @@ -25,7 +25,8 @@ Required properties: - clock-names: Shall contain "iahb" and "isfr" as defined in dw_hdmi.txt. - ports: See dw_hdmi.txt. The DWC HDMI shall have one port numbered 0 corresponding to the video input of the controller and one port numbered 1 - corresponding to its HDMI output. Each port shall have a single endpoint. + corresponding to its HDMI output, and one port numbered 2 corresponding to + sound input of the controller. Each port shall have a single endpoint. Optional properties: @@ -59,6 +60,12 @@ Example: remote-endpoint = <&hdmi0_con>; }; }; + port@2 { + reg = <2>; + rcar_dw_hdmi0_sound_in: endpoint { + remote-endpoint = <&hdmi_sound_out>; + }; + }; }; }; diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c index aaf287d..b2cf59f 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c @@ -82,9 +82,30 @@ static void dw_hdmi_i2s_audio_shutdown(struct device *dev, void *data) hdmi_write(audio, HDMI_AUD_CONF0_SW_RESET, HDMI_AUD_CONF0); } +static int dw_hdmi_i2s_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 as reg = <2> + * Then, it is sound port 0 + */ + if (of_ep.port == 2) + return 0; + + return -EINVAL; +} + static struct hdmi_codec_ops dw_hdmi_i2s_ops = { .hw_params = dw_hdmi_i2s_hw_params, .audio_shutdown = dw_hdmi_i2s_audio_shutdown, + .get_dai_id = dw_hdmi_i2s_get_dai_id, }; static int snd_dw_hdmi_probe(struct platform_device *pdev)