File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1718,7 +1718,7 @@ EXPORT_SYMBOL(sdw_deprepare_stream);
17181718static int set_stream (struct snd_pcm_substream * substream ,
17191719 struct sdw_stream_runtime * sdw_stream )
17201720{
1721- struct snd_soc_pcm_runtime * rtd = substream -> private_data ;
1721+ struct snd_soc_pcm_runtime * rtd = snd_soc_substream_to_rtd ( substream ) ;
17221722 struct snd_soc_dai * dai ;
17231723 int ret = 0 ;
17241724 int i ;
@@ -1771,7 +1771,7 @@ EXPORT_SYMBOL(sdw_alloc_stream);
17711771int sdw_startup_stream (void * sdw_substream )
17721772{
17731773 struct snd_pcm_substream * substream = sdw_substream ;
1774- struct snd_soc_pcm_runtime * rtd = substream -> private_data ;
1774+ struct snd_soc_pcm_runtime * rtd = snd_soc_substream_to_rtd ( substream ) ;
17751775 struct sdw_stream_runtime * sdw_stream ;
17761776 char * name ;
17771777 int ret ;
@@ -1815,7 +1815,7 @@ EXPORT_SYMBOL(sdw_startup_stream);
18151815void sdw_shutdown_stream (void * sdw_substream )
18161816{
18171817 struct snd_pcm_substream * substream = sdw_substream ;
1818- struct snd_soc_pcm_runtime * rtd = substream -> private_data ;
1818+ struct snd_soc_pcm_runtime * rtd = snd_soc_substream_to_rtd ( substream ) ;
18191819 struct sdw_stream_runtime * sdw_stream ;
18201820 struct snd_soc_dai * dai ;
18211821
You can’t perform that action at this time.
0 commit comments