Skip to content

[stable-v2.2] Tools: Topology1: Fix topologies build with new alsa-lib#10611

Open
kv2019i wants to merge 1 commit intothesofproject:stable-v2.2from
kv2019i:stable-v2.2-pr10598-backport
Open

[stable-v2.2] Tools: Topology1: Fix topologies build with new alsa-lib#10611
kv2019i wants to merge 1 commit intothesofproject:stable-v2.2from
kv2019i:stable-v2.2-pr10598-backport

Conversation

@kv2019i
Copy link
Collaborator

@kv2019i kv2019i commented Mar 9, 2026

Backport of #10598

This patch fixes build error with alsa-lib commit 541427761292.

ALSA lib ops.c:47:(lookup_ops) [error.topology] wrong kcontrol ops value string ''

It impacts build of sof-mt8195-mt6359-max98390-rt5682-rtnr.tplg and sof-mt8195-mt6359-max98390-rt5682-google-aec-rtnr.tplg.

In the created .conf from m4 conversion, the value of put is an empty string in SectionControlBytes.

# control uses bespoke driver get/put/info ID for ext ops
extops."extctl" {
	#258 binds the mixer control to bytes get handlers
	get "258"
	put ""
}

The use of m4 macro CONTROLBYTES_OPS() requires three parameters while originally there was only two. All other usages of CONTROLBYTES_EXTOPS() in SOF are with 258, 258 as 2nd and 3rd parameters, so it is assumed it should be same for RTNR controls also.

(cherry picked from commit 8f98a4e)

This patch fixes build error with alsa-lib commit 541427761292.

ALSA lib ops.c:47:(lookup_ops) [error.topology] wrong kcontrol
ops value string ''

It impacts build of sof-mt8195-mt6359-max98390-rt5682-rtnr.tplg
and sof-mt8195-mt6359-max98390-rt5682-google-aec-rtnr.tplg.

In the created .conf from m4 conversion, the value of put is
an empty string in SectionControlBytes.

	# control uses bespoke driver get/put/info ID for ext ops
	extops."extctl" {
		thesofproject#258 binds the mixer control to bytes get handlers
		get "258"
		put ""
	}

The use of m4 macro CONTROLBYTES_OPS() requires three parameters
while originally there was only two. All other usages of
CONTROLBYTES_EXTOPS() in SOF are with 258, 258 as 2nd and 3rd
parameters, so it is assumed it should be same for RTNR
controls also.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
(cherry picked from commit 8f98a4e)
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
@kv2019i kv2019i requested a review from singalsu March 9, 2026 12:30
@kv2019i kv2019i requested a review from ranj063 as a code owner March 9, 2026 12:30
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.

2 participants