Skip to content

Commit 742e622

Browse files
morimotobroonie
authored andcommitted
ASoC: generic: switch to use rtd->id from rtd->num
Now rtd->num is renamed to rtd->id. Let's switch. Signed-off-by: Kuninori Morimoto <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 970a874 commit 742e622

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sound/soc/generic/simple-card-utils.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ int simple_util_startup(struct snd_pcm_substream *substream)
296296
{
297297
struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
298298
struct simple_util_priv *priv = snd_soc_card_get_drvdata(rtd->card);
299-
struct simple_dai_props *props = simple_priv_to_props(priv, rtd->num);
299+
struct simple_dai_props *props = simple_priv_to_props(priv, rtd->id);
300300
struct simple_util_dai *dai;
301301
unsigned int fixed_sysclk = 0;
302302
int i1, i2, i;
@@ -357,7 +357,7 @@ void simple_util_shutdown(struct snd_pcm_substream *substream)
357357
{
358358
struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
359359
struct simple_util_priv *priv = snd_soc_card_get_drvdata(rtd->card);
360-
struct simple_dai_props *props = simple_priv_to_props(priv, rtd->num);
360+
struct simple_dai_props *props = simple_priv_to_props(priv, rtd->id);
361361
struct simple_util_dai *dai;
362362
int i;
363363

@@ -448,7 +448,7 @@ int simple_util_hw_params(struct snd_pcm_substream *substream,
448448
struct simple_util_dai *pdai;
449449
struct snd_soc_dai *sdai;
450450
struct simple_util_priv *priv = snd_soc_card_get_drvdata(rtd->card);
451-
struct simple_dai_props *props = simple_priv_to_props(priv, rtd->num);
451+
struct simple_dai_props *props = simple_priv_to_props(priv, rtd->id);
452452
unsigned int mclk, mclk_fs = 0;
453453
int i, ret;
454454

@@ -517,7 +517,7 @@ int simple_util_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
517517
struct snd_pcm_hw_params *params)
518518
{
519519
struct simple_util_priv *priv = snd_soc_card_get_drvdata(rtd->card);
520-
struct simple_dai_props *dai_props = simple_priv_to_props(priv, rtd->num);
520+
struct simple_dai_props *dai_props = simple_priv_to_props(priv, rtd->id);
521521
struct simple_util_data *data = &dai_props->adata;
522522
struct snd_interval *rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE);
523523
struct snd_interval *channels = hw_param_interval(params, SNDRV_PCM_HW_PARAM_CHANNELS);
@@ -628,7 +628,7 @@ static int simple_init_for_codec2codec(struct snd_soc_pcm_runtime *rtd,
628628
int simple_util_dai_init(struct snd_soc_pcm_runtime *rtd)
629629
{
630630
struct simple_util_priv *priv = snd_soc_card_get_drvdata(rtd->card);
631-
struct simple_dai_props *props = simple_priv_to_props(priv, rtd->num);
631+
struct simple_dai_props *props = simple_priv_to_props(priv, rtd->id);
632632
struct simple_util_dai *dai;
633633
int i, ret;
634634

0 commit comments

Comments
 (0)