Skip to content
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

Tools: Topology2: Add widget class IGO NR #8450

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

singalsu
Copy link
Collaborator

@singalsu singalsu commented Nov 6, 2023

No description provided.

@singalsu singalsu marked this pull request as ready for review November 8, 2023 08:34
Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

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

@@ -0,0 +1,91 @@
#
#
# A generic IGO_NR component. All attributes defined herein are namespaced
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest add full name of IGO_NR in a place, let everyone know what exactly IGO_NR is.

Copy link
Contributor

Choose a reason for hiding this comment

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

@singalsu , are you adding full name for IGO_NR?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep, I will update this simple PR next. Don't approve yet.

}
Object.Base.ops.1 {
name "ctl"
info "volsw"
Copy link
Contributor

Choose a reason for hiding this comment

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

add comment for what "volsw" is, for all abbreviation names that not so obvious to know the meanning.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@ranj063 @jsarha Do you know where this info is used? This has been "volsw" in all switch controls I've seen, so I've just repeated it. The control name for user space is defined elsewhere. Does the user see somehow this info text?

Copy link
Contributor

Choose a reason for hiding this comment

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

The legal values are "volsw", "volsw_sx" and "volsw_xr_sx", and the value describes the kcontrol type of the mixer. It somehow describes how the mixer values are interpreted. The relevant functions are implemented in sound/soc/soc-ops.c, but I can not immediately say what is the relevant difference, or find any piece of documentation describing it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks @jsarha I'll check if I can understand what they are and add a comment. This has not been clear to me either, I've just copied working topology examples from others.

Copy link
Collaborator Author

@singalsu singalsu Dec 12, 2023

Choose a reason for hiding this comment

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

Volsw is the single (mono) or double (stereo) mixer control. The _sx version is for use where signed values can be both sides of zero. _xr_sx is some multi-register to single combine control. I'll add some comment but it's not going to be well descriptive. E.g. ALSA documentation is not describing these, only lists the operations names @jsarha mentioned above.

@lgirdwood lgirdwood added this to the v2.8 milestone Nov 13, 2023
@kv2019i kv2019i modified the milestones: v2.8, v2.9 Nov 24, 2023
This patch allows to build topologies to use the IGO NR
component.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This patch adds build of hda-generic development topologies to
test IGO NR component with all s16/s24/s32 formats.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
@lgirdwood
Copy link
Member

@btian1 @jsarha good for you now, if so pls approve.

@kv2019i kv2019i merged commit e5da161 into thesofproject:main Dec 19, 2023
40 of 44 checks passed
@singalsu singalsu deleted the tplg2_igonr_add branch January 4, 2024 10:35
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.

5 participants