[alsa-devel] [PATCH 2/8] firmware: Sigma: Skip header during CRC generation

Mike Frysinger vapier at gentoo.org
Thu Nov 24 18:21:57 CET 2011


On Thursday 24 November 2011 07:48:21 Lars-Peter Clausen wrote:
> The firmware header is not part of the CRC, so skip it. Otherwise the
> firmware will be rejected due to non-matching CRCs.

that's because you didn't compare to the right value ;).  include the CRC -> 
compare to 0.  omit the CRC -> compare to the CRC value.

including the CRC and doing a compare to 0 would probably make for slightly 
smaller code ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20111124/5e611d7b/attachment-0001.sig 


More information about the Alsa-devel mailing list