public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: Jerome Anand <jerome.anand@intel.com>,
	intel-gfx@lists.freedesktop.org, alsa-devel@alsa-project.org
Cc: tiwai@suse.de, broonie@kernel.org, rakesh.a.ughreja@intel.com
Subject: Re: [alsa-devel] [PATCH V2 3/7] ALSA: add shell for Intel HDMI LPE audio driver
Date: Fri, 6 Jan 2017 14:33:16 -0600	[thread overview]
Message-ID: <83fac6e1-8dd8-375d-40b0-4e2a3939f0e7@linux.intel.com> (raw)
In-Reply-To: <20170107012109.25744-4-jerome.anand@intel.com>

Minor misses here as well.

On 1/6/17 7:21 PM, Jerome Anand wrote:
> On Baytrail and Cherrytrail, HDaudio may be fused out or disabled
> by the BIOS. This driver enables an alternate path to the i915
> display registers and DMA.
>
> Although there is no hardware path between i915 display and LPE/SST
> audio clusters, this HDMI capability is referred to in the documentation
> as "HDMI LPE Audio" so we keep the name for consistency. There is no
> hardware path or control dependencies with the LPE/SST DSP functionality.
>
> The hdmi-lpe-audio driver will be probed when the i915 driver creates
> a child platform device.
>
> Since this driver is neither SoC nor PCI, a new x86 folder is added
>
> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> Signed-off-by: Jerome Anand <jerome.anand@intel.com>

Change the commit title to remove 'shell', e.g. 'add BYT/CHT-T HDMI LPE 
audio driver' and mention that indirect calls will be removed later (to 
help with DP integration)


> diff --git a/sound/x86/Kconfig b/sound/x86/Kconfig
> new file mode 100644
> index 0000000..e9297d0
> --- /dev/null
> +++ b/sound/x86/Kconfig
> @@ -0,0 +1,16 @@
> +menuconfig SND_X86
> +	tristate "X86 sound devices"
> +	---help---
> +
> +	  X86 sound devices that don't fall under SoC or PCI categories
> +
> +if SND_X86
> +
> +config HDMI_LPE_AUDIO
> +	tristate "HDMI audio without HDaudio on Intel Atom platforms"
> +	depends on DRM_I915
> +	default n
> +	help
> +	 Choose this option to support HDMI LPE Audio mode
> +
> +endif	# SND_X86
> diff --git a/sound/x86/Makefile b/sound/x86/Makefile
> new file mode 100644
> index 0000000..baa6333
> --- /dev/null
> +++ b/sound/x86/Makefile
> @@ -0,0 +1,6 @@
> +ccflags-y += -Idrivers/gpu/drm/i915

from Takashi: Is it just for intel_lpe_audio.h?  Then rather put 
intel_lpe_audio.h to include/drm.
JA: OK

> +
> +snd-hdmi-lpe-audio-objs += \
> +	intel_hdmi_lpe_audio.o
> +
> +obj-$(CONFIG_HDMI_LPE_AUDIO) += snd-hdmi-lpe-audio.o
> diff --git a/sound/x86/intel_hdmi_lpe_audio.c b/sound/x86/intel_hdmi_lpe_audio.c
> new file mode 100644
> index 0000000..61347ab
> --- /dev/null
> +++ b/sound/x86/intel_hdmi_lpe_audio.c
> @@ -0,0 +1,623 @@
> +/*
> + *  intel_hdmi_lpe_audio.c - Intel HDMI LPE audio driver for Atom platforms
> + *
> + *  Copyright (C) 2016 Intel Corp
> + *  Authors:
> + *		Jerome Anand <jerome.anand@intel.com>
> + *		Aravind Siddappaji <aravindx.siddappaji@intel.com>
> + *  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> + *
> + *  This program is free software; you can redistribute it and/or modify
> + *  it under the terms of the GNU General Public License as published by
> + *  the Free Software Foundation; version 2 of the License.
> + *
> + *  This program is distributed in the hope that it will be useful, but
> + *  WITHOUT ANY WARRANTY; without even the implied warranty of
> + *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
> + *  General Public License for more details.
> + *
> + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> + */
> +
> +#define pr_fmt(fmt)	"hdmi_lpe_audio: " fmt

 From Takashi: Better to use dev_*() variant.
JA: OK

> +static inline int hdmi_get_eld(void *eld)
> +{
> +	memcpy(eld, (void *)&hlpe_eld, sizeof(hlpe_eld));
> +
> +	{
> +		int i;
> +		uint8_t *eld_data = (uint8_t *)&hlpe_eld;
> +
> +		pr_debug("hdmi_get_eld:\n{{");
> +
> +		for (i = 0; i < sizeof(hlpe_eld); i++)
> +			pr_debug("0x%x, ", eld_data[i]);
> +
> +		pr_debug("}}\n");
> +	}
> +	return 0;

 From Takashi: There is a hexdump debug print helper, too.
JA: OK


_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2017-01-06 20:33 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-07  1:21 [PATCH V2 0/7] Add support for Legacy HDMI audio drivers Jerome Anand
2017-01-06 13:53 ` ✓ Fi.CI.BAT: success for Add support for Legacy HDMI audio drivers (rev3) Patchwork
2017-01-07  1:21 ` [PATCH V2 1/7] drm/i915: setup bridge for HDMI LPE audio driver Jerome Anand
2017-01-06 20:12   ` [alsa-devel] " Pierre-Louis Bossart
2017-01-07  4:45     ` Anand, Jerome
2017-01-07  1:21 ` [PATCH V2 2/7] drm/i915: Add support for audio driver notifications Jerome Anand
2017-01-06 20:20   ` [alsa-devel] " Pierre-Louis Bossart
2017-01-07  4:52     ` Anand, Jerome
2017-01-07  1:21 ` [PATCH V2 3/7] ALSA: add shell for Intel HDMI LPE audio driver Jerome Anand
2017-01-06 20:33   ` Pierre-Louis Bossart [this message]
2017-01-07  4:56     ` [alsa-devel] " Anand, Jerome
2017-01-07  1:21 ` [PATCH V2 4/7] ALSA: x86: hdmi: Add audio support for BYT and CHT Jerome Anand
2017-01-07  1:21 ` [PATCH V2 5/7] ALSA: x86: hdmi: Improve position reporting Jerome Anand
2017-01-06 20:39   ` [alsa-devel] " Pierre-Louis Bossart
2017-01-07  4:58     ` Anand, Jerome
2017-01-07  1:21 ` [PATCH V2 6/7] ALSA: x86: hdmi: Fixup some monitor Jerome Anand
2017-01-06 20:40   ` [alsa-devel] " Pierre-Louis Bossart
2017-01-07  1:21 ` [PATCH V2 7/7] ALSA: x86: hdmi: continue playback even when display resolution changes Jerome Anand
2017-01-06 20:43   ` [alsa-devel] " Pierre-Louis Bossart
2017-01-07  4:58     ` Anand, Jerome

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=83fac6e1-8dd8-375d-40b0-4e2a3939f0e7@linux.intel.com \
    --to=pierre-louis.bossart@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jerome.anand@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox