ASoC: qdsp6: q6apm: use dai link pcm id as pcm device number
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Wed, 28 Jun 2023 09:24:04 +0000 (10:24 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 30 Jun 2023 13:53:48 +0000 (14:53 +0100)
commitac192c1a54f9562efe6bac910e6e7aae7b5fbea3
tree28454a08ed5993348425af06992bea51a65787e5
parent85a61b1ce461a3f62f1019e5e6423c393c542bff
ASoC: qdsp6: q6apm: use dai link pcm id as pcm device number

For some reason we ended up with a setup without this flag.
This resulted in inconsistent sound card devices numbers which
 are also not starting as expected at dai_link->id.
 (Ex: MultiMedia1 pcm ended up with device number 4 instead of 0)

With this patch patch now the MultiMedia1 PCM ends up with device number 0
as expected.

[This is causing unstable numbering in userspace as other changes go in,
which in turn gets noticed by some userspace.  There's been multiple
values so we can't simply pick one and revert to it.  Do not backport
since it will introduce a change. -- broonie]

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20230628092404.13927-1-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/q6apm-dai.c