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);
1718
1718
static int set_stream (struct snd_pcm_substream * substream ,
1719
1719
struct sdw_stream_runtime * sdw_stream )
1720
1720
{
1721
- struct snd_soc_pcm_runtime * rtd = substream -> private_data ;
1721
+ struct snd_soc_pcm_runtime * rtd = snd_soc_substream_to_rtd ( substream ) ;
1722
1722
struct snd_soc_dai * dai ;
1723
1723
int ret = 0 ;
1724
1724
int i ;
@@ -1771,7 +1771,7 @@ EXPORT_SYMBOL(sdw_alloc_stream);
1771
1771
int sdw_startup_stream (void * sdw_substream )
1772
1772
{
1773
1773
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 ) ;
1775
1775
struct sdw_stream_runtime * sdw_stream ;
1776
1776
char * name ;
1777
1777
int ret ;
@@ -1815,7 +1815,7 @@ EXPORT_SYMBOL(sdw_startup_stream);
1815
1815
void sdw_shutdown_stream (void * sdw_substream )
1816
1816
{
1817
1817
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 ) ;
1819
1819
struct sdw_stream_runtime * sdw_stream ;
1820
1820
struct snd_soc_dai * dai ;
1821
1821
You can’t perform that action at this time.
0 commit comments