-
Notifications
You must be signed in to change notification settings - Fork 349
eq_fir/irr: refine eq_fir/iir verify() functions #2414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eq_fir/irr: refine eq_fir/iir verify() functions #2414
Conversation
We do not have to rewrite source/sink frame_fmt. It has been set in eq_iir_verify_params() function. Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
We do not have to rewrite source/sink frame_fmt. It has been set in eq_fir_verify_params() function. Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
eq_fir component is not able to change stream format, so we should invoke comp_verify_function() with flag equal to 0. Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
ddc7755 to
f37ebb5
Compare
|
I have a question to decide how important is it to preserve format conversion capability in IIR. If we have pipeline like this DAI (DMIC, 32 bit) --> IIR ---> host (16 bit) Where would the conversion from 32 bits to 16 bits happen if we would remove the capability from IIR? If DAI would convert to 16 bits and IIR would run in 16 -> 16 bits mode the quality would not be as good. I made the conversion capability into IIR to be able to get higher quality 16 bit output from DMIC than bare-HW can provide. Also thanks for the fix! I'll review tomorrow. |
lgirdwood
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@singalsu wont merge until you are happy.
|
@singalsu |
|
Thanks for explanation, then it makes sense to keep the capability. |
|
@bkokoszx can you check internal CI. Seems to be down. |
We should check whether we can support frame_fmt conversion due to source and sink buffer frame_fmt's. If not, we should overwrite sink (playback) and source (capture) with pcm frame_fmt and not make any conversion (sink and source frame_fmt will be equal). Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
f37ebb5 to
650e166
Compare
This commit refines eq_fir/irr verify() functions:
so we should invoke comp_verify_function() with flag
equal to 0.
support frame_fmt conversion due to source and sink
buffer frame_fmt's. If not, we should overwrite sink (playback)
and source (capture) with pcm frame_fmt and not make any
conversion (sink and source frame_fmt will be equal).
Fixes #2401