drm/nouveau/disp/gt215: Fix HDA ELD handling (thus, HDMI audio) on gt215
authorAlastair Bridgewater <alastair.bridgewater@gmail.com>
Wed, 11 Jan 2017 20:47:18 +0000 (15:47 -0500)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 31 Jan 2017 10:05:25 +0000 (20:05 +1000)
commitd347583a39e2df609a9e40c835f72d3614665b53
tree1a5587b79ced2c30611af8768313bbbfea0a6a60
parentd72498ca2cbcf15e5038b184a95f061bca21e820
drm/nouveau/disp/gt215: Fix HDA ELD handling (thus, HDMI audio) on gt215

Store the ELD correctly, not just enough copies of the first byte
to pad out the given ELD size.

Signed-off-by: Alastair Bridgewater <alastair.bridgewater@gmail.com>
Fixes: 120b0c39c756 ("drm/nv50-/disp: audit and version SOR_HDA_ELD method")
Cc: stable@vger.kernel.org # v3.17+
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/disp/hdagt215.c