Skip to content

Fix topologies build with latest ALSA in stable-v1.9 - #5632

Merged
lgirdwood merged 5 commits into
thesofproject:stable-v1.9from
marc-hb:fix-tplg-1.9
Apr 1, 2022
Merged

lgirdwood merged 5 commits into
thesofproject:stable-v1.9from
marc-hb:fix-tplg-1.9

Conversation

@marc-hb

@marc-hb marc-hb commented Apr 1, 2022 •

Copy link
Copy Markdown
Collaborator

Cherry-picks with almost no conflict, just a minor conflict for 3e1c160 caused by the lack of 113a49d f41010d

brentlu and others added 5 commits April 1, 2022 03:46
The demux routing matrix and config are removed for two reasons: 1.
the config 'demux_priv_1' is hardcoded for pipeline 1 only. 2. other
m4 file with demux compoenet like pipe-volume-demux-playback has the
matrix and config defined in the topology file.

The topology which implement this pipeline should define the routing
matrx and config named as 'demux_priv_<pipeline id>' before including
this m4 file.

Signed-off-by: Brent Lu <brent.lu@intel.com>
(cherry picked from commit 771c2bb)
When the string fields left empty, the alsa topology parser treats
SND_CONFIG_TYPE_STRING type config as -EINVAL, so set defauls values.

Signed-off-by: Yong Zhi <yong.zhi@intel.com>
(cherry picked from commit 47b159f)
The string parser in alsa-lib is sensitive to these now. So fix it.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
(cherry picked from commit db04155)
The recent changes to the string parser in alsa-lib cause the topology
builds to break for some topologies. Avoid adding a newline for the bytes
data for the MUXDEMUX config by introducing a new macro for creating lists
without new lines between items.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
(cherry picked from commit 3e1c160)
Remove the extra space to make the topology build with upstream
alsa-lib.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
(cherry picked from commit fcfd5d6)
@marc-hb
marc-hb marked this pull request as ready for review April 1, 2022 03:57
@marc-hb marc-hb mentioned this pull request Apr 1, 2022
marc-hb added a commit to marc-hb/sof that referenced this pull request Apr 1, 2022
This removes two layers of indirection when trying to find what fails.
The lack of this proved especially painful when working on thesofproject#5632 and
similar backports.

Also move outputs to a subdirectory by default. No change when invoked
from CMake which does not use the default output directory.

Also show the exact m4 and alsatplg commands run when not using XARGS
parallelization. Again this is critical when something fails.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>

@kv2019i kv2019i left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hmm, didn't @juimonen already do this backport? Anyways, still looks good.

@lgirdwood
lgirdwood merged commit b538e0b into thesofproject:stable-v1.9 Apr 1, 2022
@marc-hb
marc-hb requested a review from juimonen April 1, 2022 14:25
@marc-hb
marc-hb deleted the fix-tplg-1.9 branch April 1, 2022 21:27
lgirdwood pushed a commit that referenced this pull request Apr 2, 2022
This removes two layers of indirection when trying to find what fails.
The lack of this proved especially painful when working on #5632 and
similar backports.

Also move outputs to a subdirectory by default. No change when invoked
from CMake which does not use the default output directory.

Also show the exact m4 and alsatplg commands run when not using XARGS
parallelization. Again this is critical when something fails.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
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.

6 participants