<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 - SAD counting bug inintel/linux-4.0.4/drivers/gpu/drm/drm_edid.c"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94197">94197</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>SAD counting bug inintel/linux-4.0.4/drivers/gpu/drm/drm_edid.c
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </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>artur999555@gmail.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=121817" name="attach_121817" title="EDID captured from Krell using OpenELEC/Kodi instructions">attachment 121817</a> <a href="attachment.cgi?id=121817&action=edit" title="EDID captured from Krell using OpenELEC/Kodi instructions">[details]</a></span>
EDID captured from Krell using OpenELEC/Kodi instructions

I have a Krell Foundation non-4K which has a strange EDID.  It does not have
one audio block with multiple SAD within it as do Marantz receivers but rather
it has several audio blocks, one after another.

When I connect the Foundation to an Asrock Beebox running OpenELEC the ELD data
structure ends up with only one element.

I think that is because of these lines of code starting at line 3157 in
intel/linux-4.0.4/drivers/gpu/drm/drm_edid.c

 case AUDIO_BLOCK:
 /* Audio Data Block, contains SADs */
 sad_count = dbl / 3;
 if (dbl >= 1)
     memcpy(eld + 20 + mnl, &db[1], dbl);
 break;

For the Krell, the sad_count would need to be incremented instead of just set
to the value from the EDID.  I do not know how this code would keep all the
audio blocks in such a fashion.

Now, if you tell me that the Foundation is doing this incorrectly I am more
than willing to report that to Krell. ;-)

Krill Foundation manual:
<a href="http://krellonline.com/downloads/FoundationProcessorOwnersReference_web.pdf">http://krellonline.com/downloads/FoundationProcessorOwnersReference_web.pdf</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>