All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Anand, Jerome" <jerome.anand@intel.com>
To: Jani Nikula <jani.nikula@linux.intel.com>,
	Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Cc: "tiwai@suse.de" <tiwai@suse.de>,
	"broonie@kernel.org" <broonie@kernel.org>,
	"Ughreja, Rakesh A" <rakesh.a.ughreja@intel.com>
Subject: Re: [PATCH v4 2/5] drm/i915: Add support for audio driver notifications
Date: Tue, 24 Jan 2017 08:42:20 +0000	[thread overview]
Message-ID: <F6867404AABACB4D8EC371BF802A4B7C149608D9@fmsmsx101.amr.corp.intel.com> (raw)
In-Reply-To: <87bmuxdjs5.fsf@intel.com>



> -----Original Message-----
> From: Jani Nikula [mailto:jani.nikula@linux.intel.com]
> Sent: Tuesday, January 24, 2017 12:31 PM
> To: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>; Anand,
> Jerome <jerome.anand@intel.com>; intel-gfx@lists.freedesktop.org; alsa-
> devel@alsa-project.org
> Cc: tiwai@suse.de; broonie@kernel.org; Ughreja, Rakesh A
> <rakesh.a.ughreja@intel.com>
> Subject: Re: [Intel-gfx] [PATCH v4 2/5] drm/i915: Add support for audio driver
> notifications
> 
> On Mon, 23 Jan 2017, Pierre-Louis Bossart <pierre-
> louis.bossart@linux.intel.com> wrote:
> >>>  #include <drm/drmP.h>
> >>> @@ -630,6 +631,10 @@ void intel_audio_codec_enable(struct
> intel_encoder *intel_encoder,
> >>>  	if (acomp && acomp->audio_ops && acomp->audio_ops-
> >pin_eld_notify)
> >>>  		acomp->audio_ops->pin_eld_notify(acomp->audio_ops-
> >audio_ptr,
> >>>  						 (int) port, (int) pipe);
> >>> +
> >>> +	if (HAS_LPE_AUDIO(dev_priv))
> >>> +		intel_lpe_audio_notify(dev_priv, connector->eld, port,
> >>> +			crtc_state->port_clock);
> >>
> >> Seems unnecessary to check for HAS_LPE_AUDIO (which you'll change to
> >> dev_priv->lpe_audio.platdev, right ;) both in the caller and callee.
> >> Pick one.
> >
> > If we test inside of the function, it'd mean an unconditional jump to
> > test a feature that exists on only two platforms out of the dozen or
> > so that this i915 driver handles. No objection to do the change but is
> > this really desired?
> 
> *shrug* no big deal to check in both.
> 

Thanks for the ack Jani.
It was added based on one review comment. I'll remove it here and have the check only inside the API

> BR,
> Jani.
> 
> >
> >
> 
> --
> Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2017-01-24  8:42 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-20 22:22 [PATCH v4 0/5] Add support for Legacy HDMI audio drivers Jerome Anand
2017-01-20 11:54 ` ✗ Fi.CI.BAT: failure for Add support for Legacy HDMI audio drivers (rev5) Patchwork
2017-01-20 22:22 ` [PATCH v4 1/5] drm/i915: setup bridge for HDMI LPE audio driver Jerome Anand
2017-01-23 10:54   ` Jani Nikula
2017-01-24  8:21     ` Anand, Jerome
2017-01-20 22:22 ` [PATCH v4 2/5] drm/i915: Add support for audio driver notifications Jerome Anand
2017-01-23 10:57   ` Jani Nikula
2017-01-23 16:32     ` Pierre-Louis Bossart
2017-01-24  7:00       ` Jani Nikula
2017-01-24  8:42         ` Anand, Jerome [this message]
2017-01-20 22:22 ` [PATCH v4 3/5] ALSA: add Intel HDMI LPE audio driver for BYT/CHT-T Jerome Anand
2017-01-20 22:22 ` [PATCH v4 4/5] ALSA: x86: hdmi: Add audio support for BYT and CHT Jerome Anand
2017-01-20 11:15   ` Takashi Iwai
2017-01-20 16:45     ` [alsa-devel] " Pierre-Louis Bossart
2017-01-20 19:09       ` Takashi Iwai
2017-01-20 22:22 ` [PATCH v4 5/5] ALSA: x86: hdmi: continue playback even when display resolution changes Jerome Anand
2017-01-23 10:18 ` [PATCH v4 0/5] Add support for Legacy HDMI audio drivers Takashi Iwai

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=F6867404AABACB4D8EC371BF802A4B7C149608D9@fmsmsx101.amr.corp.intel.com \
    --to=jerome.anand@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=rakesh.a.ughreja@intel.com \
    --cc=tiwai@suse.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.