@@ -296,7 +296,7 @@ int simple_util_startup(struct snd_pcm_substream *substream)
296
296
{
297
297
struct snd_soc_pcm_runtime * rtd = snd_soc_substream_to_rtd (substream );
298
298
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 );
300
300
struct simple_util_dai * dai ;
301
301
unsigned int fixed_sysclk = 0 ;
302
302
int i1 , i2 , i ;
@@ -357,7 +357,7 @@ void simple_util_shutdown(struct snd_pcm_substream *substream)
357
357
{
358
358
struct snd_soc_pcm_runtime * rtd = snd_soc_substream_to_rtd (substream );
359
359
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 );
361
361
struct simple_util_dai * dai ;
362
362
int i ;
363
363
@@ -448,7 +448,7 @@ int simple_util_hw_params(struct snd_pcm_substream *substream,
448
448
struct simple_util_dai * pdai ;
449
449
struct snd_soc_dai * sdai ;
450
450
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 );
452
452
unsigned int mclk , mclk_fs = 0 ;
453
453
int i , ret ;
454
454
@@ -517,7 +517,7 @@ int simple_util_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
517
517
struct snd_pcm_hw_params * params )
518
518
{
519
519
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 );
521
521
struct simple_util_data * data = & dai_props -> adata ;
522
522
struct snd_interval * rate = hw_param_interval (params , SNDRV_PCM_HW_PARAM_RATE );
523
523
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,
628
628
int simple_util_dai_init (struct snd_soc_pcm_runtime * rtd )
629
629
{
630
630
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 );
632
632
struct simple_util_dai * dai ;
633
633
int i , ret ;
634
634
0 commit comments