Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,8 @@ static struct snd_soc_pcm_runtime *soc_new_pcm_runtime(
*/
rtd->card = card;
rtd->dai_link = dai_link;
rtd->id = card->num_rtd++;
if (!rtd->dai_link->no_pcm)
rtd->id = card->num_rtd++;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the patch which needs to be fixed is
8b12da9 ("ASoC: cleanup function parameter for rtd and its id")

before this patch the rtd->dai_link->id was passed as PCM index to soc_new_pcm(), but after it the rtd->id is used and this can be the route of the problem?

rtd->pmdown_time = pmdown_time; /* default power off timeout */

/* see for_each_card_rtds */
Expand Down
Loading