[PATCH 0/1] fix priv->dai_props indexing
From: Laurentiu Mihalcea
Date: Tue Jan 14 2025 - 13:44:00 EST
From: Laurentiu Mihalcea <laurentiu.mihalcea@xxxxxxx>
Fix priv->dai_props indexing in simple-card-utils.c by introducing
a new macro: runtime_simple_priv_to_props() that can be used when
dealing with PCM runtime data as rtd->id may be invalid.
Changes since RFC:
- added comment that should help clarify when the new macro
should be used
- Link to RFC: https://lore.kernel.org/lkml/20241220151213.2462-1-laurentiumihalcea111@xxxxxxxxx/
Laurentiu Mihalcea (1):
ASoC: simple-card-utils: fix priv->dai_props indexing
include/sound/simple_card_utils.h | 7 +++++++
sound/soc/generic/simple-card-utils.c | 10 +++++-----
2 files changed, 12 insertions(+), 5 deletions(-)
--
2.34.1