From patchwork Mon Aug 25 19:04:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 4776261 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3AA789F38D for ; Mon, 25 Aug 2014 19:04:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 64C44201BF for ; Mon, 25 Aug 2014 19:04:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 743162018E for ; Mon, 25 Aug 2014 19:04:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933370AbaHYTEn (ORCPT ); Mon, 25 Aug 2014 15:04:43 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:42389 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933365AbaHYTEm (ORCPT ); Mon, 25 Aug 2014 15:04:42 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s7PJ4aBp000608; Mon, 25 Aug 2014 14:04:36 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s7PJ4avI009068; Mon, 25 Aug 2014 14:04:36 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Mon, 25 Aug 2014 14:04:35 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s7PJ4YEO015251; Mon, 25 Aug 2014 14:04:35 -0500 From: Jyri Sarha To: , , CC: , , , , , Jyri Sarha Subject: [PATCH v4 06/15] OMAPDSS: hdmi: Add exported functions for storing HDMI audio data Date: Mon, 25 Aug 2014 22:04:14 +0300 Message-ID: <8b3df1c82d3de4f3c81e15e8973f4e194ce89788.1408993242.git.jsarha@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Implements omapdss_hdmi_get_audio_data() and omapdss_hdmi_set_audio_data() for storing HDMI audio data in OMAPDSS HDMI drvdata. Signed-off-by: Jyri Sarha --- drivers/video/fbdev/omap2/dss/hdmi.h | 2 ++ drivers/video/fbdev/omap2/dss/hdmi_common.c | 16 ++++++++++++++++ include/video/omapdss.h | 3 +++ 3 files changed, 21 insertions(+) diff --git a/drivers/video/fbdev/omap2/dss/hdmi.h b/drivers/video/fbdev/omap2/dss/hdmi.h index 6bf077b..c357057 100644 --- a/drivers/video/fbdev/omap2/dss/hdmi.h +++ b/drivers/video/fbdev/omap2/dss/hdmi.h @@ -368,6 +368,8 @@ struct omap_hdmi { bool core_enabled; struct omap_dss_device output; + + void *audio_data; }; #endif diff --git a/drivers/video/fbdev/omap2/dss/hdmi_common.c b/drivers/video/fbdev/omap2/dss/hdmi_common.c index 1b8fcc6..318e754 100644 --- a/drivers/video/fbdev/omap2/dss/hdmi_common.c +++ b/drivers/video/fbdev/omap2/dss/hdmi_common.c @@ -146,3 +146,19 @@ int hdmi_compute_acr(u32 pclk, u32 sample_freq, u32 *n, u32 *cts) return 0; } + +void *omapdss_hdmi_get_audio_data(struct device *dev) +{ + struct omap_hdmi *hd = dev_get_drvdata(dev); + + return hd->audio_data; +} +EXPORT_SYMBOL_GPL(omapdss_hdmi_get_audio_data); + +void omapdss_hdmi_set_audio_data(struct device *dev, void *data) +{ + struct omap_hdmi *hd = dev_get_drvdata(dev); + + hd->audio_data = data; +} +EXPORT_SYMBOL_GPL(omapdss_hdmi_set_audio_data); diff --git a/include/video/omapdss.h b/include/video/omapdss.h index 069dfca..46f4984 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h @@ -1039,4 +1039,7 @@ omapdss_of_get_first_endpoint(const struct device_node *parent); struct omap_dss_device * omapdss_of_find_source_for_first_ep(struct device_node *node); +void *omapdss_hdmi_get_audio_data(struct device *dev); +void omapdss_hdmi_set_audio_data(struct device *dev, void *data); + #endif