Skip to content
This repository was archived by the owner on Jan 17, 2019. It is now read-only.

EQ: Fix an integer type bug in IIR coefficients blob packer#107

Merged
lgirdwood merged 1 commit intothesofproject:masterfrom
singalsu:eq_iir_fix_assign_integer_type
Oct 15, 2018
Merged

EQ: Fix an integer type bug in IIR coefficients blob packer#107
lgirdwood merged 1 commit intothesofproject:masterfrom
singalsu:eq_iir_fix_assign_integer_type

Conversation

@singalsu
Copy link
Copy Markdown
Collaborator

This patch adds explicit conversion to signed int32 type for response to
channels indices in assign_response and filter coefficients. The bug was
visible if trying to activate in IIR blob the per channel filter bypass
by having a negative value (-1) in any of channel assigns. Octave assumed
the type to be unsigned and produced wrong configuration bytes.

The filter coefficients are already integer type from previous
quantization code in the conversion process. However it does not hurt to
have extra safety to avoid similar issue as assign.

Signed-off-by: Seppo Ingalsuo seppo.ingalsuo@linux.intel.com

This patch adds explicit conversion to signed int32 type for response to
channels indices in assign_response and filter coefficients. The bug was
visible if trying to activate in IIR blob the per channel filter bypass
by having a negative value (-1) in any of channel assigns. Octave assumed
the type to be unsigned and produced wrong configuration bytes.

The filter coefficients are already integer type from previous
quantization code in the conversion process. However it does not hurt to
have extra safety to avoid similar issue as assign.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
@singalsu singalsu requested a review from lgirdwood October 15, 2018 07:56
@lgirdwood lgirdwood merged commit 06a42dd into thesofproject:master Oct 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants