* Re: [PATCH v3 00/15] ASoC: hdac_hdmi: Add DP & notification support
2015-12-07 21:17 [PATCH v3 00/15] ASoC: hdac_hdmi: Add DP & notification support Subhransu S. Prusty
@ 2015-12-07 20:12 ` Mark Brown
2015-12-08 11:24 ` Subhransu S. Prusty
[not found] ` <1449523469-4395-1-git-send-email-subhransu.s.prusty@intel.com>
1 sibling, 1 reply; 5+ messages in thread
From: Mark Brown @ 2015-12-07 20:12 UTC (permalink / raw)
To: Subhransu S. Prusty
Cc: alsa-devel, tiwai, David Airlie, lgirdwood, dri-devel,
patches.audio, Daniel Vetter
[-- Attachment #1.1: Type: text/plain, Size: 401 bytes --]
On Tue, Dec 08, 2015 at 02:47:58AM +0530, Subhransu S. Prusty wrote:
> This patch series adds DP audio and hotplug notification support.
Not related to the code but there seems to be something wrong with the
time configuration on your system which is causing all your patches to
be submitted quite a few hours in the future which confuses time based
mailbox sorting - might be worth looking at that.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v3 00/15] ASoC: hdac_hdmi: Add DP & notification support
@ 2015-12-07 21:17 Subhransu S. Prusty
2015-12-07 20:12 ` Mark Brown
[not found] ` <1449523469-4395-1-git-send-email-subhransu.s.prusty@intel.com>
0 siblings, 2 replies; 5+ messages in thread
From: Subhransu S. Prusty @ 2015-12-07 21:17 UTC (permalink / raw)
To: alsa-devel
Cc: lgirdwood, dri-devel, patches.audio, broonie, Daniel Vetter,
Subhransu S. Prusty
This patch series adds DP audio and hotplug notification support.
On Skylake two DP ports are available and to enable DP on both
ports all pins need to be enabled.
There is a special vendor widget which need to be programmed to
enable all pins and converters. This series adds hotplug
notification, read/set constraint based on ELD, enable all
pin/cvts, DP1.2, programs the audio infoframe for DP. There is a
one to one mapping between converter and stream, so the dais are
created based on the no of streams supported on hdmi codec. Even
though cvts can be mapped dynamically to the streams, currently
it is statically mapped as simultaneous playback on both DP and
HDMI is not supported as of now.
Pin muxes and controls are created dynamically to map converter
to pin widget. So at run time specific pin is mapped to the dai
based on the control selected (based on the display type DP/HDMI
connected).
Finally the DP audio infoframe programming is added to support
the DP feature.
Also with hotplug notification support, ELD is read and
capabilities are set for rate, formats and channels. drm_eld
sound/core framework is updated to limit the formats based on
ELD.
There are few fixes one fixing the static checker warning and
other one not to fail if no connection list is found for a pin
widget.
Pls note, the 10th patch is adding a small macro for getting
connection type in drm header, we have CCed drm folks on that and
this one. Pls ack so that we can have this series merged thru
sound trees
changes in v3:
- Addressed review comments
- Use of list_for_each_entry_safe for node deletion.
- Moved the format constraint based on ELD to driver
- Fix constant as per kernel doc for connection type in
drm helper
- Fix dp infoframe
- Add hotplug event reporting to user space
- Move device configuration from dai startup to hw_params
as the user space can keep the device open always.
Jeeja KP (2):
ASoC: hdac_hdmi: Add codec suspend/resume handler
ASoC: hdac_hdmi: Fix to enable device configuration in hw_params
Ramesh Babu (1):
ASoC: hdac_hdmi: Fix to keep display active while enumerating codec
Subhransu S. Prusty (12):
ASoC: hdac_hdmi: Fix to check num nodes correctly
ASoC: hdac_hdmi: Fix to warn instead of err for no connected nids
ASoC: hdac_hdmi: Use list to add pins and converters
ASoC: hdac_hdmi: Add hotplug notification and read eld
ASoC: hdac_hdmi: Apply constraints based on ELD
ASoC: hdac_hdmi: Enable DP1.2 and all converters/pins
ASoC: hdac_hdmi: create dais based on number of streams
ASoC: hdac_hdmi: Create widget/route based on nodes enumerated
ASoC: hdac_hdmi: Assign pin for stream based on dapm connection
drm/edid: Add API to help find connection type
ASoC: hdac_hdmi: Add infoframe support for dp audio
ASoC: hdac_hdmi: Add jack reporting for user space
include/drm/drm_edid.h | 12 +
sound/soc/codecs/Kconfig | 1 +
sound/soc/codecs/hdac_hdmi.c | 1101 +++++++++++++++++++++++++++++++++++-------
3 files changed, 936 insertions(+), 178 deletions(-)
--
1.9.1
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v3 10/15] drm/edid: Add API to help find connection type
[not found] ` <1449523469-4395-1-git-send-email-subhransu.s.prusty@intel.com>
@ 2015-12-07 21:24 ` Subhransu S. Prusty
2015-12-08 14:01 ` Jani Nikula
0 siblings, 1 reply; 5+ messages in thread
From: Subhransu S. Prusty @ 2015-12-07 21:24 UTC (permalink / raw)
To: alsa-devel
Cc: lgirdwood, dri-devel, patches.audio, broonie, Daniel Vetter,
Vinod Koul, Subhransu S. Prusty
To fill the audio infoframe it is required to identify the
connection type as DP or HDMI. This patch adds an API which
parses ELD and returns the display type of connected.
Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Cc: David Airlie <airlied@linux.ie>
Cc: dri-devel@lists.freedesktop.org
Cc: Daniel Vetter <daniel.vetter@intel.com>
---
include/drm/drm_edid.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/include/drm/drm_edid.h b/include/drm/drm_edid.h
index 2af9769..8c537a0 100644
--- a/include/drm/drm_edid.h
+++ b/include/drm/drm_edid.h
@@ -403,6 +403,18 @@ static inline int drm_eld_size(const uint8_t *eld)
return DRM_ELD_HEADER_BLOCK_SIZE + eld[DRM_ELD_BASELINE_ELD_LEN] * 4;
}
+/**
+ * drm_eld_get_conn_type - Get device type hdmi/dp connected
+ * @eld: pointer to an eld memory structure
+ *
+ * The caller need to use %DRM_ELD_CONN_TYPE_HDMI or %DRM_ELD_CONN_TYPE_DP to
+ * identify the display type connected.
+ */
+static inline u8 drm_eld_get_conn_type(const uint8_t *eld)
+{
+ return eld[DRM_ELD_SAD_COUNT_CONN_TYPE] & DRM_ELD_CONN_TYPE_MASK;
+}
+
struct edid *drm_do_get_edid(struct drm_connector *connector,
int (*get_edid_block)(void *data, u8 *buf, unsigned int block,
size_t len),
--
1.9.1
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v3 00/15] ASoC: hdac_hdmi: Add DP & notification support
2015-12-07 20:12 ` Mark Brown
@ 2015-12-08 11:24 ` Subhransu S. Prusty
0 siblings, 0 replies; 5+ messages in thread
From: Subhransu S. Prusty @ 2015-12-08 11:24 UTC (permalink / raw)
To: Mark Brown; +Cc: alsa-devel, lgirdwood, dri-devel, patches.audio, Daniel Vetter
On Mon, Dec 07, 2015 at 08:12:00PM +0000, Mark Brown wrote:
> On Tue, Dec 08, 2015 at 02:47:58AM +0530, Subhransu S. Prusty wrote:
> > This patch series adds DP audio and hotplug notification support.
>
> Not related to the code but there seems to be something wrong with the
> time configuration on your system which is causing all your patches to
> be submitted quite a few hours in the future which confuses time based
> mailbox sorting - might be worth looking at that.
Sorry about that. Will fix it.
--
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3 10/15] drm/edid: Add API to help find connection type
2015-12-07 21:24 ` [PATCH v3 10/15] drm/edid: Add API to help find connection type Subhransu S. Prusty
@ 2015-12-08 14:01 ` Jani Nikula
0 siblings, 0 replies; 5+ messages in thread
From: Jani Nikula @ 2015-12-08 14:01 UTC (permalink / raw)
To: alsa-devel
Cc: patches.audio, lgirdwood, dri-devel, Vinod Koul, broonie,
Daniel Vetter, Subhransu S. Prusty
On Mon, 07 Dec 2015, "Subhransu S. Prusty" <subhransu.s.prusty@intel.com> wrote:
> To fill the audio infoframe it is required to identify the
> connection type as DP or HDMI. This patch adds an API which
> parses ELD and returns the display type of connected.
>
> Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
> Cc: David Airlie <airlied@linux.ie>
> Cc: dri-devel@lists.freedesktop.org
> Cc: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> ---
> include/drm/drm_edid.h | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/include/drm/drm_edid.h b/include/drm/drm_edid.h
> index 2af9769..8c537a0 100644
> --- a/include/drm/drm_edid.h
> +++ b/include/drm/drm_edid.h
> @@ -403,6 +403,18 @@ static inline int drm_eld_size(const uint8_t *eld)
> return DRM_ELD_HEADER_BLOCK_SIZE + eld[DRM_ELD_BASELINE_ELD_LEN] * 4;
> }
>
> +/**
> + * drm_eld_get_conn_type - Get device type hdmi/dp connected
> + * @eld: pointer to an eld memory structure
> + *
> + * The caller need to use %DRM_ELD_CONN_TYPE_HDMI or %DRM_ELD_CONN_TYPE_DP to
> + * identify the display type connected.
> + */
> +static inline u8 drm_eld_get_conn_type(const uint8_t *eld)
> +{
> + return eld[DRM_ELD_SAD_COUNT_CONN_TYPE] & DRM_ELD_CONN_TYPE_MASK;
> +}
> +
> struct edid *drm_do_get_edid(struct drm_connector *connector,
> int (*get_edid_block)(void *data, u8 *buf, unsigned int block,
> size_t len),
--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-12-08 14:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-07 21:17 [PATCH v3 00/15] ASoC: hdac_hdmi: Add DP & notification support Subhransu S. Prusty
2015-12-07 20:12 ` Mark Brown
2015-12-08 11:24 ` Subhransu S. Prusty
[not found] ` <1449523469-4395-1-git-send-email-subhransu.s.prusty@intel.com>
2015-12-07 21:24 ` [PATCH v3 10/15] drm/edid: Add API to help find connection type Subhransu S. Prusty
2015-12-08 14:01 ` Jani Nikula
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox