Bug 109968 - Audio not routing to external display Samsung 4K U28D590 when connected over USB type-c
Summary: Audio not routing to external display Samsung 4K U28D590 when connected over ...
Status: NEW
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
Hardware: x86-64 (AMD64) other
: high normal
Assignee: Filip Kaczmarski
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: Triaged, ReadyForDev
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-11 18:22 UTC by Chintan Patel
Modified: 2019-08-27 10:53 UTC (History)
3 users (show)

See Also:
i915 platform: CFL
i915 features: display/audio, display/USB-C


Attachments
Non working audio with Samsung 4K Series D model (44.40 KB, text/plain)
2019-03-11 18:22 UTC, Chintan Patel
no flags Details
Working audio with Samsung 4k Series E model (27.17 KB, text/plain)
2019-03-11 18:23 UTC, Chintan Patel
no flags Details
Logs of failure case without adding any delay. (340.22 KB, text/plain)
2019-03-12 20:19 UTC, Jairaj Arava
no flags Details
Logs of working case that has the delay. (339.33 KB, text/plain)
2019-03-12 20:21 UTC, Jairaj Arava
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chintan Patel 2019-03-11 18:22:58 UTC
Created attachment 143625 [details]
Non working audio with Samsung 4K Series D model

Connecting Samsung Monitor 4K display(U28D590) to Chromebook (WHL), audio doesn't route to display (same device and monitor works fine with HDMI ). Connection type is USB Type-C to DP. Audio drivers are legacy HD Audio and graphics is i915. 

Issue only happens with this particular monitor U28D590 and not happening on Samsung 4K U28E590, Dell or any other monitor(as far as I know).
 
I have also read edid after connection and it shows "Audio Data Block"
evtest is also passes.

Issue is not reprodcible after adding 5 sec delay: 

diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gpu/drm/i915/intel_audio.c
index ee3ca2de983b..9c794968bb2a 100644
--- a/drivers/gpu/drm/i915/intel_audio.c
+++ b/drivers/gpu/drm/i915/intel_audio.c
@@ -26,7 +26,7 @@
#include <drm/i915_component.h>
#include <drm/intel_lpe_audio.h>
#include "intel_drv.h"
-
+#include<linux/delay.h>
#include <drm/drmP.h>
#include <drm/drm_edid.h>
#include "i915_drv.h"
@@ -456,7 +456,8 @@ static void hsw_audio_codec_enable(struct intel_encoder *encoder,
        const u8 *eld = connector->eld;
        u32 tmp;
        int len, i;
-
+       mdelay(5000);
        DRM_DEBUG_KMS("Enable audio codec on pipe %c, %u bytes ELD\n",
                      pipe_name(pipe), drm_eld_size(eld));

Important Observations:
1. Same monitor U28D590 works fine on Windows or any other chromebook.
2. Tried on different platforms with Legacy –HDA (no dsp), issue is reproducible
3. If above mentioned delay is less than 5 sec, issue is reproducible.
4. Issue reproducible with drm-tip; 78b288a16a32 drm-tip: 2019y-03m-08d-19h-11m-52s UTC integration manifest
Comment 1 Chintan Patel 2019-03-11 18:23:30 UTC
Created attachment 143626 [details]
Working audio with Samsung 4k Series E model
Comment 2 Lakshmi 2019-03-12 08:07:01 UTC
Chintan, Can you please add full dmesg log from boot?
Comment 3 Jairaj Arava 2019-03-12 20:19:39 UTC
Created attachment 143636 [details]
Logs of failure case without adding any delay.

Attached the logs in the non-working case.
Comment 4 Jairaj Arava 2019-03-12 20:21:11 UTC
Created attachment 143637 [details]
Logs of working case that has the delay.
Comment 5 Chintan Patel 2019-03-14 17:31:42 UTC
Hi lakshmi, 

Jairaj uploaded full drm logs. 

Once important observation worth to mentioned is audio routing works fine through type-c via aplay command.
Comment 6 Lakshmi 2019-07-13 17:32:44 UTC
Update:
Waiting for the response from audio team. If there is any update here, I will post the information here.
Comment 7 Lakshmi 2019-07-16 08:32:37 UTC
Assigning this issue to Filip to get feedback related to this bug.
Comment 8 Lakshmi 2019-08-27 10:53:52 UTC
@Filip, any updates here?
As a high priority bug this issue needs an update at least once in a week.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.