Skip to content

audio: volume: drop CONFIG_COMP_PEAK_VOL guards - #9960

Merged
dbaluta merged 1 commit into
thesofproject:mainfrom
LaurentiuM1234:fix/volume_ifdef_guards
Apr 7, 2025
Merged

dbaluta merged 1 commit into
thesofproject:mainfrom
LaurentiuM1234:fix/volume_ifdef_guards

Conversation

@LaurentiuM1234

@LaurentiuM1234 LaurentiuM1234 commented Apr 7, 2025 •

Copy link
Copy Markdown
Contributor

Commit fcfcb07 ("llext: remove unneeded data and functions")
introduced some "ifdef" guards that make the volume component unusable
unless "CONFIG_COMP_GAIN" or "CONFIG_COMP_PEAK_VOL" is enabled. This
change in behavior results in the following error on the firmware side:

<ERROR_MSG>

ipc: get_drv(): the provided UUID (b77e677e41885ff4a8fb14af8286bfbd)
doesn't match to any driver!

</ERROR_MSG>

for an i.MX platform using the volume component with "CONFIG_COMP_GAIN=n"
and "CONFIG_COMP_PEAK_VOL=n".

Based on the Kconfig description, "CONFIG_COMP_GAIN" refers to the gain
component, while "CONFIG_COMP_PEAK_VOL" refers to (snippet taken from the
volume Kconfig): "This option enables reporting to host peak vol regs.".

This description implies that "CONFIG_COMP_PEAK_VOL" doesn't manage the
component itself. This is further reinforced by the fact that, previously,
using the peak volume component without the "CONFIG_COMP_PEAK_VOL" config
enabled worked fine.

As such, drop all of the "CONFIG_COMP_PEAK_VOL" "ifdef" guards that were
introduced by the aforementioned commit.

Fixes fcfcb07 ("llext: remove unneeded data and functions")
Signed-off-by: Laurentiu Mihalcea [email protected]

@LaurentiuM1234
LaurentiuM1234 marked this pull request as ready for review April 7, 2025 11:17
Commit fcfcb07 ("llext: remove unneeded data and functions")
introduced some "ifdef" guards that make the volume component unusable
unless "CONFIG_COMP_GAIN" or "CONFIG_COMP_PEAK_VOL" is enabled. This
change in behavior results in the following error on the firmware side:

<ERROR_MSG>

<err> ipc: get_drv(): the provided UUID (b77e677e41885ff4a8fb14af8286bfbd)
doesn't match to any driver!

</ERROR_MSG>

for an i.MX platform using the volume component with "CONFIG_COMP_GAIN=n"
and "CONFIG_COMP_PEAK_VOL=n".

Based on the Kconfig description, "CONFIG_COMP_GAIN" refers to the gain
component, while "CONFIG_COMP_PEAK_VOL" refers to (snippet taken from the
volume Kconfig): "This option enables reporting to host peak vol regs.".

This description implies that "CONFIG_COMP_PEAK_VOL" doesn't manage the
component itself. This is further reinforced by the fact that, previously,
using the peak volume component without the "CONFIG_COMP_PEAK_VOL" config
enabled worked fine.

As such, drop all of the "CONFIG_COMP_PEAK_VOL" "ifdef" guards that were
introduced by the aforementioned commit.

Fixes fcfcb07 ("llext: remove unneeded data and functions")
Signed-off-by: Laurentiu Mihalcea <[email protected]>
@dbaluta dbaluta self-assigned this Apr 7, 2025
@lgirdwood

Copy link
Copy Markdown
Member

@singalsu pls review

@singalsu

singalsu commented Apr 7, 2025

Copy link
Copy Markdown
Collaborator

Works OK here, thanks!

@dbaluta
dbaluta merged commit 8e2bd77 into thesofproject:main Apr 7, 2025
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