[Intel-gfx] [PATCH] drm/i915: set proper N/CTS in modeset
Yang, Libin
libin.yang at intel.com
Thu Sep 24 06:18:36 PDT 2015
Hi Takashi,
Currently, our testing environment seems not to work. I will setup the test environment and send the patch after doing the test.
Regards,
Libin
> -----Original Message-----
> From: Yang, Libin
> Sent: Wednesday, September 23, 2015 10:20 PM
> To: Takashi Iwai; Jani Nikula
> Cc: alsa-devel at alsa-project.org; intel-gfx at lists.freedesktop.org;
> daniel.vetter at ffwll.ch; ville.syrjala at linux.intel.com
> Subject: RE: [PATCH] drm/i915: set proper N/CTS in modeset
>
> Hi Takashi,
>
>
> > -----Original Message-----
> > From: Takashi Iwai [mailto:tiwai at suse.de]
> > Sent: Wednesday, September 23, 2015 4:41 PM
> > To: Jani Nikula
> > Cc: Yang, Libin; alsa-devel at alsa-project.org; intel-
> > gfx at lists.freedesktop.org; daniel.vetter at ffwll.ch;
> > ville.syrjala at linux.intel.com
> > Subject: Re: [PATCH] drm/i915: set proper N/CTS in modeset
> >
> > On Wed, 16 Sep 2015 15:03:15 +0200,
> > Jani Nikula wrote:
> > >
> > > > diff --git a/include/drm/i915_component.h
> > b/include/drm/i915_component.h
> > > > index e6d35d7..89dc7d6 100644
> > > > --- a/include/drm/i915_component.h
> > > > +++ b/include/drm/i915_component.h
> > > > @@ -24,8 +24,18 @@
> > > > #ifndef _I915_COMPONENT_H_
> > > > #define _I915_COMPONENT_H_
> > > >
> > > > +/* MAX_PORT is the number of port
> > > > + * It must be sync with I915_MAX_PORTS defined i915_drv.h
> > > > + * 5 should be enough as only HSW, BDW, SKL need such fix.
> > >
> > > You should probably add BUILD_BUG_ON(MAX_PORTS !=
> > I915_MAX_PORTS)
> > > somewhere near the loop above. Or at least change
> > I915_MAX_PORTS to
> > > ARRAY_SIZE(acomp->aud_sample_rate) in the loop to not run over
> > the array
> > > if MAX_PORTS gets out of sync.
> > >
> > > With that addressed one way or another, this is
> > >
> > > Reviewed-by: Jani Nikula <jani.nikula at intel.com>
> >
> > Libin, could you resubmit the patch with fixes Jani suggested?
> > Then I'm going to merge it to the existing topic/drm-sync-audio-rate
> > branch.
>
> OK, I will send it tomorrow.
>
> Regards,
> Libin
>
> >
> >
> > thanks,
> >
> > Takashi
More information about the Intel-gfx
mailing list