msm: mdss: dp: fix parity byte calculation
Fix the parity byte calculation for Audio SDP's that are sent to the sink during audio playback. If the input data for the parity byte calculation is only a byte in length, then the shift operation must only take the first two nibbles of the byte. CRs-Fixed: 1076516 Change-Id: Ib686a9aa5198c8e1b30cf37bb3d9c8b259d5fd84 Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
This commit is contained in:
parent
bc41dd07f8
commit
15a1ac8898
1 changed files with 2 additions and 1 deletions
|
@ -605,8 +605,9 @@ static u8 mdss_dp_calculate_parity_byte(u32 data)
|
|||
u8 iData = 0;
|
||||
u8 i = 0;
|
||||
u8 parityByte;
|
||||
u8 num_byte = (data & 0xFF00) > 0 ? 8 : 2;
|
||||
|
||||
for (i = 0; i < 8; i++) {
|
||||
for (i = 0; i < num_byte; i++) {
|
||||
iData = (data >> i*4) & 0xF;
|
||||
|
||||
ci = iData ^ x1;
|
||||
|
|
Loading…
Add table
Reference in a new issue