Skip to content

Conversation

@juimonen
Copy link

@juimonen juimonen commented Sep 8, 2020

This PR is experimenting with having multiple different type controls
in a single widget. So add enum control and test iir with simultaneous
enum and byte control.

Jaska Uimonen added 3 commits September 8, 2020 17:09
Add m4 macros to generate enumerated control. Usage is similar to mixer
and bytes control except enumerated values are specified using separate
text section.

Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
Add additional enum control to dmic iir pipeline.

Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
Add switch cases and debug messages for enum control to iir.

Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
@juimonen
Copy link
Author

juimonen commented Sep 8, 2020

btw, I think this needs latest and greatest alsa-lib (it has enum control patches on top)

related driver PR:
thesofproject/linux#2423

@lgirdwood
Copy link
Member

@juimonen looks good, I guess we can roll this out to demux after v1.6

@juimonen
Copy link
Author

juimonen commented Sep 9, 2020

@lgirdwood, yes after 1.6...

@lgirdwood lgirdwood added this to the v1.7 milestone Sep 10, 2020
define(DEF_EQIIR_COEF, concat(`eqiir_coef_', PIPELINE_ID))
define(DEF_EQIIR_PRIV, concat(`eqiir_priv_', PIPELINE_ID))

define(DEF_EQIIR_ENUM, concat(`eqiir_enum_', PIPELINE_ID))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor, this could be undefined in the end of macro.

DEF_EQIIR_PRIV)

# EQ enum list
CONTROLENUM_LIST(eq_preset, LIST(` ', `"preset1"', `"preset2"'))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be better as DEF_EQ_PRESET with pipeline number appended to eq_preset_. The enum items count seems to grow with number of instances.

@lgirdwood
Copy link
Member

@juimonen ping - would like to merge for v1.7

@lgirdwood
Copy link
Member

@juimonen ping - maybe for v1.8 ?

@juimonen
Copy link
Author

@lgirdwood this was the first experiment with enums (with existing component like iir, didn't have beamformer then). Enum stuff is handled in other PR's, so I'll close this for now. If enums are needed for eq's, we can add later.

@juimonen juimonen closed this Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants