Skip to content

topology2: add missing num_audio_formats for gain#5975

Closed
aiChaoSONG wants to merge 1 commit intomainfrom
fix_gain
Closed

topology2: add missing num_audio_formats for gain#5975
aiChaoSONG wants to merge 1 commit intomainfrom
fix_gain

Conversation

@aiChaoSONG
Copy link
Collaborator

The default class level num_audio_formats for gain is
removed in 773a05a,
which causes gain widget num_audio_formats parsing issue
in the kernel for topology with below two pipelines:

  • dai-copier-gain-mixin-capture
  • host-copier-gain-mixin-playback

This patch adds num_audio_formats for gain widget in
above two pipelines.

Signed-off-by: Chao Song chao.song@linux.intel.com

The default class level num_audio_formats for gain is
removed in 773a05a,
which causes gain widget num_audio_formats parsing issue
in the kernel for topology with below two pipelines:
  - dai-copier-gain-mixin-capture
  - host-copier-gain-mixin-playback

This patch adds num_audio_formats for gain widget in
above two pipelines.

Signed-off-by: Chao Song <chao.song@linux.intel.com>
@aiChaoSONG
Copy link
Collaborator Author

@ranj063 It is very flexible to write a topology, so each developer has his/her own flavor, can we make a list of basic principles or coding styles for topology? so we can avoid fix like this PR.

@XiaoyunWu6666
Copy link
Contributor

validated that this can make cavs-mixin-mixout-hda.tplg work on multiple HDA platforms

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.

Would be nice if the parser could count stuff like this ?

@aiChaoSONG
Copy link
Collaborator Author

Would be nice if the parser could count stuff like this ?

No, we have first to know how many formats are there, and then parse these formats. the array length has to be known first.

@aiChaoSONG
Copy link
Collaborator Author

Duplicated with #5971, close

@aiChaoSONG aiChaoSONG closed this Jul 1, 2022
@aiChaoSONG aiChaoSONG deleted the fix_gain branch August 24, 2022 01:47
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.

4 participants