public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: "K, Mythri P" <mythripk@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH v3 6/9] OMAP4 : DSS2 : HDMI: HDMI panel driver addition in the DSS
Date: Mon, 7 Mar 2011 12:12:05 +0200	[thread overview]
Message-ID: <1299492725.2281.154.camel@deskari> (raw)
In-Reply-To: <1299224907-11354-7-git-send-email-mythripk@ti.com>

On Fri, 2011-03-04 at 01:48 -0600, K, Mythri P wrote:
> The panel driver(hdmi_omap4_panel.c) in omap2/dss acts as a controller
> to manage the enable and disable requests and synchronize audio and video.
> 
> Signed-off-by: Mythri P K <mythripk@ti.com>
> ---
>  drivers/video/omap2/dss/Kconfig            |    8 +
>  drivers/video/omap2/dss/Makefile           |    1 +
>  drivers/video/omap2/dss/hdmi_omap4_panel.c |  206 ++++++++++++++++++++++++++++
>  3 files changed, 215 insertions(+), 0 deletions(-)
>  create mode 100644 drivers/video/omap2/dss/hdmi_omap4_panel.c
> 
<snip>

> +static int hdmi_panel_suspend(struct omap_dss_device *dssdev)
> +{
> +	int r = 0;
> +
> +	mutex_lock(&hdmi.hdmi_lock);
> +
> +	if (dssdev->state == OMAP_DSS_DISPLAY_DISABLED ||
> +			dssdev->state == OMAP_DSS_DISPLAY_SUSPENDED) {

Here you could check if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE)

> +		r = -EINVAL;
> +		goto err;
> +	}
> +
> +	dssdev->state = OMAP_DSS_DISPLAY_SUSPENDED;
> +
> +	omapdss_hdmi_display_disable(dssdev);
> +
> +err:
> +	mutex_unlock(&hdmi.hdmi_lock);
> +
> +	return r;
> +}
> +
> +static int hdmi_panel_resume(struct omap_dss_device *dssdev)
> +{
> +	int r = 0;
> +
> +	mutex_lock(&hdmi.hdmi_lock);
> +
> +	if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE) {

Here you should check if (dssdev->state != OMAP_DSS_DISPLAY_SUSPENDED)

 Tomi



  reply	other threads:[~2011-03-07 10:12 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-04  7:48 [PATCH v3 0/9] OMAP4 : DSS2 : HDMI support on OMAP4 Mythri P K
2011-03-04  7:48 ` [PATCH v3 1/9] OMAP4 : DSS2 : Add display type HDMI to DSS2 Mythri P K
2011-03-04  7:48 ` [PATCH v3 2/9] OMAP4 : DSS2 : HDMI: Select between HDMI VENC clock source Mythri P K
2011-03-04  7:48 ` [PATCH v3 3/9] OMAP4 : DSS2 : HDMI: HDMI dispc gamma table disable Mythri P K
2011-03-04  7:48 ` [PATCH v3 4/9] OMAP4 : DSS2 : HDMI: HDMI driver header file addition Mythri P K
2011-03-07  8:54   ` Tomi Valkeinen
2011-03-04  7:48 ` [PATCH v3 5/9] " Mythri P K
2011-03-07  9:46   ` Tomi Valkeinen
2011-03-08  8:17     ` K, Mythri P
2011-03-08  8:24       ` Tomi Valkeinen
2011-03-04  7:48 ` [PATCH v3 6/9] OMAP4 : DSS2 : HDMI: HDMI panel driver addition in the DSS Mythri P K
2011-03-07 10:12   ` Tomi Valkeinen [this message]
2011-03-04  7:48 ` [PATCH v3 7/9] OMAP4 : DSS : HDMI: Call to HDMI module init to register driver Mythri P K
2011-03-04  7:48 ` [PATCH v3 8/9] OMAP4 : HDMI : Add HDMI structure in the board file for OMAP4 SDP Mythri P K
2011-03-04  7:48 ` [PATCH v3 9/9] OMAP4 : HDMI : Add HDMI structure in the board file for OMAP4 PANDA Mythri P K
2011-03-07  8:40 ` [PATCH v3 0/9] OMAP4 : DSS2 : HDMI support on OMAP4 Tomi Valkeinen
2011-03-08  8:08   ` K, Mythri P

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1299492725.2281.154.camel@deskari \
    --to=tomi.valkeinen@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=mythripk@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox