-
由 Jani Nikula 提交于
The Baseline_ELD_Len field does not include ELD Header Block size. From High Definition Audio Specification, Revision 1.0a: The header block is a fixed size of 4 bytes. The baseline block is variable size in multiple of 4 bytes, and its size is defined in the header block Baseline_ELD_Len field (in number of DWords). Do not include the header size in Baseline_ELD_Len field. Fix all known users of eld[2]. While at it, switch to DIV_ROUND_UP instead of open coding it. Signed-off-by: NJani Nikula <jani.nikula@intel.com> Acked-by: NBen Skeggs <bskeggs@redhat.com> Reviewed-by: NRodrigo Vivi <rodrigo.vivi@intel.com> Acked-by: NDave Airlie <airlied@linux.ie> [danvet: Fix compile fail in nouveau.] Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
938fd8aa