<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Audio not routing to external display Samsung 4K U28D590 when connected over USB type-c"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=109968">109968</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Audio not routing to external display Samsung 4K U28D590 when connected over USB type-c
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>DRI git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DRM/Intel
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>chintan.m.patel@intel.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=143625" name="attach_143625" title="Non working audio with Samsung 4K Series D model">attachment 143625</a> <a href="attachment.cgi?id=143625&action=edit" title="Non working audio with Samsung 4K Series D model">[details]</a></span>
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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>