All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: mengdong.lin@linux.intel.com, tiwai@suse.de,
	intel-gfx@lists.freedesktop.org, liam.r.girdwood@linux.intel.com,
	vinod.koul@intel.com, broonie@kernel.org,
	rakesh.a.ughreja@intel.com
Subject: Re: [RFC 00/15] HDMI Audio support on Atom w/o HDAUdio
Date: Sat, 5 Mar 2016 15:42:15 +0200	[thread overview]
Message-ID: <20160305134215.GZ10446@intel.com> (raw)
In-Reply-To: <1457146252-4577-1-git-send-email-pierre-louis.bossart@linux.intel.com>

On Fri, Mar 04, 2016 at 08:50:37PM -0600, Pierre-Louis Bossart wrote:
> When HDaudio is not enabled or fused-out, an alternate hardware
> interface can be used to provide audio data to the display/HDMI
> controller on Atom platforms.  The code to control this interface was
> never submitted upstream but has been used extensively in Android
> programs on Medfield, Clovertrail, Merrifield, Moorefield, Baytrail-T
> and CherryTrail-T, as well as the Baytrail Compute Stick w/ Ubuntu.

Not sure why you skirt around calling the thing by its name. It's
called LPE isn't it?

> Jesse Barnes and others at Intel suggested the code be posted on the
> intex-gfx mailing lists as an RFC for graphics and audio folks to start
> the conversation on how to support this interface in the mainline
> kernel. The initial patches used for the Baytrail Compute Stick were
> split to make them more readable, with changes to drm/i915 and sound/
> clearly separated out. A basic cleanup to make checkpatch happy was
> done but the code needs further updates (we know...). The code was
> rebased from 3.16 to drm/intel-nightly-build and tested on a Baytrail
> Compute Stick. CherryTrail changes will be added shortly.
> 
> The main feedback expected in this RFC is on the interaction between
> audio and display driver, specifically if we can wrap the interface
> control with the component framework already used between i915 and
> HDaudio. A short documentation was added to help explain how the
> hardware works.

Yes, using/extending the already existing audio component stuff was
my first though when I did a preliminary scan of the patches. I didn't
look too closely at what's needed hardware wise, so can't get into
details yet.

Some other peculiar things that caught my eye:
- adds some HDMI live status stuff etc. which we already have
- missing pipe C for CHV?
- no clue what that procfs/rpm patch was about

Anyway, I'll try to take a better look at it next week,

>
> 
> The first two patches fix issues that were identified during the
> rebase process and could be merged without waiting for the interface
> to be reworked.
> 
> Comments welcome!
> 
> David Henningsson (2):
>   hdmi_audio: Improve position reporting
>   hdmi_audio: Fixup some monitor
> 
> Pierre-Louis Bossart (10):
>   drm: i915: fix inversion of definitions for LPE_PIPE_A/B
>   drm: i915: remove intel_hdmi variable declaration
>   Doc: sound: add description of Atom HDMI audio interface
>   drm/i915: Add headers for non-HDAudio HDMI interface
>   drm/i915: changes for non-HDAudio HDMI interface
>   drm/i915: power-related changes non-HDAudio HDMI interface
>   drm/i915: Add API code for non-HDAudio HDMI interface
>   drm/i915: enable non-HDAudio HDMI interface Makefile
>   ALSA: Intel: Atom: add Atom non-HDAudio HDMI interface
>   add dependency on PM_RUNTIME
> 
> Toyo Abe (3):
>   hdmi_audio: Fix mishandling of AUD_HDMI_STATUS_v2 register.
>   i915: Enable LPE_PIPEA_Interrupt.
>   i915: Fix typo in comment.
> 
>  Documentation/sound/alsa/Atom-hdmi-audio.txt |  241 +++
>  drivers/gpu/drm/i915/Makefile                |    4 +-
>  drivers/gpu/drm/i915/hdmi_audio_if.c         |  410 ++++++
>  drivers/gpu/drm/i915/hdmi_audio_if.h         |  122 ++
>  drivers/gpu/drm/i915/i915_drv.h              |   31 +
>  drivers/gpu/drm/i915/i915_irq.c              |   87 ++
>  drivers/gpu/drm/i915/i915_reg.h              |   11 +-
>  drivers/gpu/drm/i915/i915_rpm.c              |  476 ++++++
>  drivers/gpu/drm/i915/intel_display.c         |    8 +
>  drivers/gpu/drm/i915/intel_drv.h             |   11 +
>  drivers/gpu/drm/i915/intel_hdmi.c            |  185 ++-
>  drivers/gpu/drm/i915/intel_pm.c              |   53 +
>  sound/Kconfig                                |    9 +
>  sound/Makefile                               |    1 +
>  sound/hdmi_audio/Makefile                    |    9 +
>  sound/hdmi_audio/intel_mid_hdmi_audio.c      | 2039 ++++++++++++++++++++++++++
>  sound/hdmi_audio/intel_mid_hdmi_audio.h      |  740 ++++++++++
>  sound/hdmi_audio/intel_mid_hdmi_audio_if.c   |  514 +++++++
>  18 files changed, 4946 insertions(+), 5 deletions(-)
>  create mode 100644 Documentation/sound/alsa/Atom-hdmi-audio.txt
>  create mode 100644 drivers/gpu/drm/i915/hdmi_audio_if.c
>  create mode 100644 drivers/gpu/drm/i915/hdmi_audio_if.h
>  create mode 100644 drivers/gpu/drm/i915/i915_rpm.c
>  create mode 100644 sound/hdmi_audio/Makefile
>  create mode 100644 sound/hdmi_audio/intel_mid_hdmi_audio.c
>  create mode 100644 sound/hdmi_audio/intel_mid_hdmi_audio.h
>  create mode 100644 sound/hdmi_audio/intel_mid_hdmi_audio_if.c
> 
> -- 
> 1.9.1
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  parent reply	other threads:[~2016-03-05 13:42 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-05  2:50 [RFC 00/15] HDMI Audio support on Atom w/o HDAUdio Pierre-Louis Bossart
2016-03-05  2:50 ` [RFC 01/15] drm: i915: fix inversion of definitions for LPE_PIPE_A/B Pierre-Louis Bossart
2016-03-05 13:27   ` Ville Syrjälä
2016-03-07 18:00     ` Pierre-Louis Bossart
2016-03-05  2:50 ` [RFC 02/15] drm: i915: remove intel_hdmi variable declaration Pierre-Louis Bossart
2016-03-10 17:34   ` Ville Syrjälä
2016-03-11 17:08     ` Pierre-Louis Bossart
2016-03-05  2:50 ` [RFC 03/15] Doc: sound: add description of Atom HDMI audio interface Pierre-Louis Bossart
2016-03-05  2:50 ` [RFC 04/15] drm/i915: Add headers for non-HDAudio HDMI interface Pierre-Louis Bossart
2016-03-10 17:54   ` Ville Syrjälä
2016-03-10 18:00   ` Ville Syrjälä
2016-03-11 17:27     ` Pierre-Louis Bossart
2016-03-11 19:09       ` Ville Syrjälä
2016-03-14  9:04         ` Daniel Vetter
2016-03-14 14:20           ` Ville Syrjälä
2016-03-15  8:35             ` Daniel Vetter
2016-03-15 13:30               ` Ville Syrjälä
2016-03-16 16:43                 ` Ville Syrjälä
2016-03-21  8:35                   ` Daniel Vetter
2016-03-15  8:36           ` Daniel Vetter
2016-03-14 15:13         ` Pierre-Louis Bossart
2016-03-14 15:21           ` Ville Syrjälä
2016-03-14 15:30             ` Ville Syrjälä
2016-03-14 17:27               ` Pierre-Louis Bossart
2016-03-15  8:39                 ` Daniel Vetter
2016-03-15 13:35                   ` Ville Syrjälä
2016-03-15 13:43                     ` Daniel Vetter
2016-03-15 16:21                     ` Vinod Koul
2016-03-15 21:14                       ` Pierre-Louis Bossart
2016-03-16  3:09                         ` Vinod Koul
2016-03-05  2:50 ` [RFC 05/15] drm/i915: changes " Pierre-Louis Bossart
2016-03-05  2:50 ` [RFC 06/15] drm/i915: power-related changes " Pierre-Louis Bossart
2016-03-05  2:50 ` [RFC 07/15] drm/i915: Add API code for " Pierre-Louis Bossart
2016-03-05  2:50 ` [RFC 08/15] drm/i915: enable non-HDAudio HDMI interface Makefile Pierre-Louis Bossart
2016-03-05  2:50 ` [RFC 09/15] ALSA: Intel: Atom: add Atom non-HDAudio HDMI interface Pierre-Louis Bossart
2016-03-05  2:50 ` [RFC 10/15] add dependency on PM_RUNTIME Pierre-Louis Bossart
2016-03-05  2:50 ` [RFC 11/15] hdmi_audio: Improve position reporting Pierre-Louis Bossart
2016-03-05  2:50 ` [RFC 12/15] hdmi_audio: Fixup some monitor Pierre-Louis Bossart
2016-03-05  2:50 ` [RFC 13/15] hdmi_audio: Fix mishandling of AUD_HDMI_STATUS_v2 register Pierre-Louis Bossart
2016-03-05  2:50 ` [RFC 14/15] i915: Enable LPE_PIPEA_Interrupt Pierre-Louis Bossart
2016-03-05  2:50 ` [RFC 15/15] i915: Fix typo in comment Pierre-Louis Bossart
2016-03-05 13:42 ` Ville Syrjälä [this message]
2016-03-07 17:54   ` [RFC 00/15] HDMI Audio support on Atom w/o HDAUdio Pierre-Louis Bossart
2016-03-07 18:02     ` Ville Syrjälä
2016-03-07 18:12       ` Pierre-Louis Bossart
2016-03-07 18:29         ` Ville Syrjälä
2016-03-07 12:04 ` ✗ Fi.CI.BAT: failure for " Patchwork

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=20160305134215.GZ10446@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=broonie@kernel.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=liam.r.girdwood@linux.intel.com \
    --cc=mengdong.lin@linux.intel.com \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=rakesh.a.ughreja@intel.com \
    --cc=tiwai@suse.de \
    --cc=vinod.koul@intel.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 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.