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>
This commit is contained in:
Srinivas Kandagatla 2023-06-28 10:24:04 +01:00 committed by Mark Brown
parent 85a61b1ce4
commit ac192c1a54
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
1 changed files with 1 additions and 0 deletions

View File

@ -840,6 +840,7 @@ static const struct snd_soc_component_driver q6apm_fe_dai_component = {
.pointer = q6apm_dai_pointer, .pointer = q6apm_dai_pointer,
.trigger = q6apm_dai_trigger, .trigger = q6apm_dai_trigger,
.compress_ops = &q6apm_dai_compress_ops, .compress_ops = &q6apm_dai_compress_ops,
.use_dai_pcm_id = true,
}; };
static int q6apm_dai_probe(struct platform_device *pdev) static int q6apm_dai_probe(struct platform_device *pdev)