[PATCH 00/11] ASoC: hdac_hdmi: Add multichannel support

2016-04-12 Thread Subhransu S. Prusty
On Tue, Apr 12, 2016 at 06:54:35AM +0100, Mark Brown wrote: > On Tue, Apr 12, 2016 at 07:43:59AM +0200, Takashi Iwai wrote: > > > But the problem is more complicated because you're changing drm stuff, > > too. This is usually managed in drm tree. So this cross over three > > different trees. >

[PATCH 02/11] drm/edid: Add API to get speaker allocation

2016-04-12 Thread Subhransu S. Prusty
Signed-off-by: Subhransu S. Prusty Signed-off-by: Vinod Koul Cc: Jani Nikula Cc: David Airlie Cc: dri-devel at lists.freedesktop.org Cc: Daniel Vetter --- include/drm/drm_edid.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/drm/drm_edid.h b/include/drm/drm_edid.h index

[PATCH 00/11] ASoC: hdac_hdmi: Add multichannel support

2016-04-12 Thread Subhransu S. Prusty
;s with Mark's Ack Takashi/Mark, please decide how you guys want this to be merged. Cc: Jani Nikula Cc: David Airlie Cc: dri-devel at lists.freedesktop.org Cc: Daniel Vetter Subhransu S. Prusty (11): ASoC: Intel: Skylake: Fix ibs/obs calc for non-integral sampling rates drm/edid: Add AP

[PATCH v6 08/15] drm/edid: Add API to help find connection type

2016-02-12 Thread 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 connected. Signed-off-by: Subhransu S. Prusty Signed-off-by: Vinod Koul Reviewed-by: Jani Nikula Cc: David Airlie Cc: dri-devel at

[PATCH v6 00/15] ASoC: hdac_hdmi: Add DP & notification support

2016-02-12 Thread Subhransu S. Prusty
: hdac_hdmi: Add PM support Ramesh Babu (1): ASoC: hdac_hdmi: Fix to keep codec power active during enumeration. Subhransu S. Prusty (12): 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

[PATCH v5 08/14] drm/edid: Add API to help find connection type

2016-01-30 Thread 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 Signed-off-by: Vinod Koul Reviewed-by: Jani Nikula Cc: David Airlie Cc: dri-devel at

[PATCH v5 00/14] ASoC: hdac_hdmi: Add DP & notification support

2016-01-30 Thread Subhransu S. Prusty
. Subhransu S. Prusty (11): 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 cvts ASoC: hdac_hdmi: Create widget/route based on nodes

[PATCH v4 REPOST 10/14] drm/edid: Add API to help find connection type

2016-01-04 Thread 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 Signed-off-by: Vinod Koul Reviewed-by: Jani Nikula Cc: David Airlie Cc: dri-devel at

[PATCH v4 REPOST 00/14] ASoC: hdac_hdmi: Add DP & notification support

2016-01-04 Thread Subhransu S. Prusty
enable device configuration in hw_params Ramesh Babu (1): ASoC: hdac_hdmi: Fix to keep display active while enumerating codec Subhransu S. Prusty (11): 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

[PATCH v4 10/14] drm/edid: Add API to help find connection type

2015-12-09 Thread 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 Signed-off-by: Vinod Koul Reviewed-by: Jani Nikula Cc: David Airlie Cc: dri-devel at

[PATCH v4 00/14] ASoC: hdac_hdmi: Add DP & notification support

2015-12-09 Thread Subhransu S. Prusty
active while enumerating codec Subhransu S. Prusty (11): 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

[PATCH v3 00/15] ASoC: hdac_hdmi: Add DP & notification support

2015-12-08 Thread Subhransu S. Prusty
On Mon, Dec 07, 2015 at 08:12:00PM +, 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 >

[PATCH v3 10/15] drm/edid: Add API to help find connection type

2015-12-08 Thread 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 Signed-off-by: Vinod Koul Cc: David Airlie Cc: dri-devel at lists.freedesktop.org Cc

[PATCH v3 00/15] ASoC: hdac_hdmi: Add DP & notification support

2015-12-08 Thread Subhransu S. Prusty
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

[PATCH v2 05/14] ALSA: pcm: Add DRM helper to set constraint for format

2015-12-05 Thread Subhransu S. Prusty
On Sat, Dec 05, 2015 at 09:12:34AM +0100, Takashi Iwai wrote: > On Sat, 05 Dec 2015 12:27:03 +0100, > Subhransu S. Prusty wrote: > > > > On Fri, Dec 04, 2015 at 06:59:19AM +0100, Takashi Iwai wrote: > > > On Fri, 04 Dec 2015 12:08:26 +0100, > > > Subhransu S. P

[PATCH v2 05/14] ALSA: pcm: Add DRM helper to set constraint for format

2015-12-05 Thread Subhransu S. Prusty
On Fri, Dec 04, 2015 at 06:59:19AM +0100, Takashi Iwai wrote: > On Fri, 04 Dec 2015 12:08:26 +0100, > Subhransu S. Prusty wrote: > > > > On Thu, Dec 03, 2015 at 04:57:14PM +0100, Takashi Iwai wrote: > > > On Thu, 03 Dec 2015 22:08:53 +0100, >

[PATCH v2 05/14] ALSA: pcm: Add DRM helper to set constraint for format

2015-12-04 Thread Subhransu S. Prusty
On Thu, Dec 03, 2015 at 04:57:14PM +0100, Takashi Iwai wrote: > On Thu, 03 Dec 2015 22:08:53 +0100, > Subhransu S. Prusty wrote: > > > > Setting the constraint format based on ELD was missing bit in > > the sound/core pcm drm. Added with this patch. > > No, you

[PATCH v2 12/14] ASoC: hdac_hdmi: Add infoframe support for dp audio

2015-12-04 Thread Subhransu S. Prusty
On Thu, Dec 03, 2015 at 05:13:16PM +, Daniel Stone wrote: > Hi Subhransu, > > On 3 December 2015 at 21:09, Subhransu S. Prusty > wrote: > > + if (conn_type == DRM_ELD_CONN_TYPE_HDMI) { > > + hdmi_audio_infoframe_init(&frame); > > + >

[PATCH v2 11/14] drm/edid: Add API to help find connection type

2015-12-04 Thread Subhransu S. Prusty
On Thu, Dec 03, 2015 at 05:16:34PM +0100, Takashi Iwai wrote: > On Thu, 03 Dec 2015 22:08:59 +0100, > Subhransu S. Prusty wrote: > > > > To fill the audio infoframe it is required to identify the > > connection type as DP or HDMI. This patch adds an API which > &

[PATCH v2 04/14] ASoC: hdac_hdmi: Add hotplug notification and read eld

2015-12-04 Thread Subhransu S. Prusty
On Thu, Dec 03, 2015 at 04:51:37PM +0100, Takashi Iwai wrote: > On Thu, 03 Dec 2015 22:08:52 +0100, > Subhransu S. Prusty wrote: > > > > This patch uses i915 component framework to register for hotplug > > notification. And once it identifies valid pin sense and valid eld

[PATCH v2 03/14] ASoC: hdac_hdmi - Use list to add pins and converters

2015-12-04 Thread Subhransu S. Prusty
On Thu, Dec 03, 2015 at 04:44:55PM +0100, Takashi Iwai wrote: > On Thu, 03 Dec 2015 22:08:51 +0100, > Subhransu S. Prusty wrote: > > static int hdac_hdmi_dev_remove(struct hdac_ext_device *edev) > > { > > + struct hdac_hdmi_priv *hdmi = edev->private_data; > &

[PATCH v2 14/14] ASoC: hdac_hdmi: Fix to keep display active while enumerating codec

2015-12-04 Thread Subhransu S. Prusty
From: Ramesh Babu The display power reference count is decremented with the first explicit call to pm_runtime_suspend. Otherwise the display power reference count is balanced with runtime resume/suspend. Rest of the time it is kept off. Signed-off-by: Ramesh Babu Signed-off-by: Subhransu S

[PATCH v2 13/14] ASoC: hdac_hdmi: Add codec suspend/resume handler

2015-12-04 Thread Subhransu S. Prusty
From: Jeeja KP Need to add enabling of all pins and DP1.2 feature again after resume. Also during the device in suspended state ELD notify callback is not processed. So add ELD check for all pins here. Signed-off-by: Jeeja KP Signed-off-by: Subhransu S. Prusty Signed-off-by: Vinod Koul

[PATCH v2 12/14] ASoC: hdac_hdmi: Add infoframe support for dp audio

2015-12-04 Thread Subhransu S. Prusty
This uses the get_conn_type API added in the previous patch to identify the type of display connected and fills the infoframe accordingly. Signed-off-by: Subhransu S. Prusty Signed-off-by: Vinod Koul --- sound/soc/codecs/hdac_hdmi.c | 68 ++-- 1 file

[PATCH v2 11/14] drm/edid: Add API to help find connection type

2015-12-04 Thread 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 Signed-off-by: Vinod Koul Cc: David Airlie Cc: dri-devel at lists.freedesktop.org Cc

[PATCH v2 10/14] ASoC: hdac_hdmi: Assign pin for stream based on dapm connection

2015-12-04 Thread Subhransu S. Prusty
be a hardware behavior. So querying of the connection list is removed from pin initialization and used in selecting the pin for a dai map. Signed-off-by: Subhransu S. Prusty Signed-off-by: Vinod Koul --- sound/soc/codecs/hdac_hdmi.c | 208 +++ 1 file

[PATCH v2 09/14] ASoC: hdac_hdmi: Create widget/route based on nodes enumerated

2015-12-04 Thread Subhransu S. Prusty
appropriate mux inputs to enable correct port. In the process to support the above changes widget/route fill APIs are updated to take all required parameters. Signed-off-by: Subhransu S. Prusty Signed-off-by: Vinod Koul --- sound/soc/codecs/hdac_hdmi.c | 224

[PATCH v2 08/14] ASoC: hdac_hdmi - create dais based on number of streams

2015-12-04 Thread Subhransu S. Prusty
A stream is mapped to a converter. So based on the converters queried, dais are created. The streams can be dynamically routed to any converter. For now it is mapped statically. The dynamic mapping of stream to converter will be added when required. Signed-off-by: Subhransu S. Prusty Signed-off

[PATCH v2 07/14] ASoC: hdac_hdmi: Enable DP1.2 and all converters/pins

2015-12-04 Thread Subhransu S. Prusty
By default only one converter and pin widget are enabled. A vendor widget required to be configured to enable all the widgets of the codec. As we are enabling the DP support enable the DP1.2 feature as well. The changes below are copied from patch_hdmi.c Signed-off-by: Subhransu S. Prusty

[PATCH v2 06/14] ASoC: hdac_hdmi: Apply constraints based on ELD

2015-12-04 Thread Subhransu S. Prusty
Uses the drm eld core framework to apply rate, channel and format constraint. Even though the channel constraint is based on ELD, infoframe is set with stereo only. Multichannel support will be added later. Signed-off-by: Subhransu S. Prusty Signed-off-by: Vinod Koul --- sound/soc/codecs

[PATCH v2 05/14] ALSA: pcm: Add DRM helper to set constraint for format

2015-12-04 Thread Subhransu S. Prusty
Setting the constraint format based on ELD was missing bit in the sound/core pcm drm. Added with this patch. Signed-off-by: Subhransu S. Prusty Signed-off-by: Vinod Koul --- sound/core/pcm_drm_eld.c | 42 +- 1 file changed, 41 insertions(+), 1 deletion

[PATCH v2 04/14] ASoC: hdac_hdmi: Add hotplug notification and read eld

2015-12-04 Thread Subhransu S. Prusty
uot;) Signed-off-by: Subhransu S. Prusty Signed-off-by: Vinod Koul --- sound/soc/codecs/hdac_hdmi.c | 214 +-- 1 file changed, 207 insertions(+), 7 deletions(-) diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c index 31ab37b..65796ce 10

[PATCH v2 03/14] ASoC: hdac_hdmi - Use list to add pins and converters

2015-12-04 Thread Subhransu S. Prusty
in dynamically select and route. Fix the dai map as well to use the pin/cvt from list. Not enabling all dai maps for now. Signed-off-by: Subhransu S. Prusty Signed-off-by: Vinod Koul --- sound/soc/codecs/hdac_hdmi.c | 154 +-- 1 file changed, 106

[PATCH v2 02/14] ASoC: hdac_hdmi: Fix to warn instead of err for no connected nids

2015-12-04 Thread Subhransu S. Prusty
It is possible that some pin widget may return with no converter connected. So don't throw error if none are found to be connected. Instead print a warning and continue. Signed-off-by: Subhransu S. Prusty Signed-off-by: Vinod Koul --- sound/soc/codecs/hdac_hdmi.c | 10 ++ 1

[PATCH v2 01/14] ASoC: hdac_hdmi: Fix to check num nodes correctly

2015-12-04 Thread Subhransu S. Prusty
7;t fix the issue completely. It's also a failure if no sub nodes found for an afg node. So modify the return condition appropriately. Cc: Dan Carpenter Signed-off-by: Subhransu S. Prusty Signed-off-by: Vinod Koul --- sound/soc/codecs/hdac_hdmi.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH v2 00/14] ASoC: hdac_hdmi: Add DP & notification support

2015-12-04 Thread Subhransu S. Prusty
log updated for display power fix. - Updated DRM helper APIs and the caller Jeeja KP (1): ASoC: hdac_hdmi: Add codec suspend/resume handler Ramesh Babu (1): ASoC: hdac_hdmi: Fix to keep display active while enumerating codec Subhransu S. Prusty (12): ASoC: hdac_hdmi: Fix to check

[alsa-devel] [PATCH 12/15] drm/edid: Add API to help find connection type

2015-12-03 Thread Subhransu S. Prusty
On Thu, Dec 03, 2015 at 12:21:42PM +0100, Thierry Reding wrote: > On Thu, Dec 03, 2015 at 01:09:16PM +0200, Jani Nikula wrote: > > On Thu, 03 Dec 2015, "Subhransu S. Prusty" > intel.com> wrote: > > > On Wed, Dec 02, 2015 at 06:07:01PM +0100, Thierry Reding wrote:

[alsa-devel] [PATCH 12/15] drm/edid: Add API to help find connection type

2015-12-03 Thread Subhransu S. Prusty
On Wed, Dec 02, 2015 at 06:07:01PM +0100, Thierry Reding wrote: > On Wed, Dec 02, 2015 at 11:53:02AM +0200, Jani Nikula wrote: > > On Tue, 01 Dec 2015, "Subhransu S. Prusty" > intel.com> wrote: > > > To fill the audio infoframe it is required to identify the c

[PATCH 12/15] drm/edid: Add API to help find connection type

2015-12-02 Thread Subhransu S. Prusty
On Wed, Dec 02, 2015 at 11:53:02AM +0200, Jani Nikula wrote: > On Tue, 01 Dec 2015, "Subhransu S. Prusty" > wrote: > > To fill the audio infoframe it is required to identify the connection type > > as DP or HDMI. So parse the required bits in ELD to find the connect

[PATCH 12/15] drm/edid: Add API to help find connection type

2015-12-01 Thread Subhransu S. Prusty
To fill the audio infoframe it is required to identify the connection type as DP or HDMI. So parse the required bits in ELD to find the connection type. Signed-off-by: Subhransu S. Prusty Signed-off-by: Vinod Koul Cc: David Airlie Cc: dri-devel at lists.freedesktop.org Cc: Daniel Vetter

[PATCH 00/15] ASoC: hdac_hdmi: Add DP & notification support

2015-12-01 Thread Subhransu S. Prusty
sound trees Jeeja KP (1): ASoC: hdac_hdmi: Add codec suspend/resume handler Ramesh Babu (1): ASoC: hdac_hdmi: Keep display active while enumerating codec Subhransu S. Prusty (13): ASoC: hdac_hdmi: Fix to check num nodes correctly ASoC: hdac_hdmi: Fix to warn instead of err for no