@@ -1627,7 +1627,6 @@ static void sof_ipc3_widget_free_comp_dai(struct snd_sof_widget *swidget)
16271627static int sof_ipc3_route_setup (struct snd_sof_dev * sdev , struct snd_sof_route * sroute )
16281628{
16291629 struct sof_ipc_pipe_comp_connect connect ;
1630- struct sof_ipc_reply reply ;
16311630 int ret ;
16321631
16331632 connect .hdr .size = sizeof (connect );
@@ -1640,7 +1639,7 @@ static int sof_ipc3_route_setup(struct snd_sof_dev *sdev, struct snd_sof_route *
16401639 sroute -> sink_widget -> widget -> name );
16411640
16421641 /* send ipc */
1643- ret = sof_ipc_tx_message (sdev -> ipc , & connect , sizeof (connect ), & reply , sizeof ( reply ));
1642+ ret = sof_ipc_tx_message_no_reply (sdev -> ipc , & connect , sizeof (connect ));
16441643 if (ret < 0 )
16451644 dev_err (sdev -> dev , "%s: route %s -> %s failed\n" , __func__ ,
16461645 sroute -> src_widget -> widget -> name , sroute -> sink_widget -> widget -> name );
@@ -1789,15 +1788,14 @@ static int sof_ipc3_control_free(struct snd_sof_dev *sdev, struct snd_sof_contro
17891788 fcomp .id = scontrol -> comp_id ;
17901789
17911790 /* send IPC to the DSP */
1792- return sof_ipc_tx_message (sdev -> ipc , & fcomp , sizeof (fcomp ), NULL , 0 );
1791+ return sof_ipc_tx_message_no_reply (sdev -> ipc , & fcomp , sizeof (fcomp ));
17931792}
17941793
17951794/* send pcm params ipc */
17961795static int sof_ipc3_keyword_detect_pcm_params (struct snd_sof_widget * swidget , int dir )
17971796{
17981797 struct snd_soc_component * scomp = swidget -> scomp ;
17991798 struct snd_sof_dev * sdev = snd_soc_component_get_drvdata (scomp );
1800- struct sof_ipc_pcm_params_reply ipc_params_reply ;
18011799 struct snd_pcm_hw_params * params ;
18021800 struct sof_ipc_pcm_params pcm ;
18031801 struct snd_sof_pcm * spcm ;
@@ -1841,8 +1839,7 @@ static int sof_ipc3_keyword_detect_pcm_params(struct snd_sof_widget *swidget, in
18411839 }
18421840
18431841 /* send IPC to the DSP */
1844- ret = sof_ipc_tx_message (sdev -> ipc , & pcm , sizeof (pcm ),
1845- & ipc_params_reply , sizeof (ipc_params_reply ));
1842+ ret = sof_ipc_tx_message_no_reply (sdev -> ipc , & pcm , sizeof (pcm ));
18461843 if (ret < 0 )
18471844 dev_err (scomp -> dev , "%s: PCM params failed for %s\n" , __func__ ,
18481845 swidget -> widget -> name );
@@ -1856,7 +1853,6 @@ static int sof_ipc3_keyword_detect_trigger(struct snd_sof_widget *swidget, int c
18561853 struct snd_soc_component * scomp = swidget -> scomp ;
18571854 struct snd_sof_dev * sdev = snd_soc_component_get_drvdata (scomp );
18581855 struct sof_ipc_stream stream ;
1859- struct sof_ipc_reply reply ;
18601856 int ret ;
18611857
18621858 /* set IPC stream params */
@@ -1865,7 +1861,7 @@ static int sof_ipc3_keyword_detect_trigger(struct snd_sof_widget *swidget, int c
18651861 stream .comp_id = swidget -> comp_id ;
18661862
18671863 /* send IPC to the DSP */
1868- ret = sof_ipc_tx_message (sdev -> ipc , & stream , sizeof (stream ), & reply , sizeof ( reply ));
1864+ ret = sof_ipc_tx_message_no_reply (sdev -> ipc , & stream , sizeof (stream ));
18691865 if (ret < 0 )
18701866 dev_err (scomp -> dev , "%s: Failed to trigger %s\n" , __func__ , swidget -> widget -> name );
18711867
@@ -1982,7 +1978,6 @@ static int sof_ipc3_widget_bind_event(struct snd_soc_component *scomp,
19821978static int sof_ipc3_complete_pipeline (struct snd_sof_dev * sdev , struct snd_sof_widget * swidget )
19831979{
19841980 struct sof_ipc_pipe_ready ready ;
1985- struct sof_ipc_reply reply ;
19861981 int ret ;
19871982
19881983 dev_dbg (sdev -> dev , "tplg: complete pipeline %s id %d\n" ,
@@ -1993,7 +1988,7 @@ static int sof_ipc3_complete_pipeline(struct snd_sof_dev *sdev, struct snd_sof_w
19931988 ready .hdr .cmd = SOF_IPC_GLB_TPLG_MSG | SOF_IPC_TPLG_PIPE_COMPLETE ;
19941989 ready .comp_id = swidget -> comp_id ;
19951990
1996- ret = sof_ipc_tx_message (sdev -> ipc , & ready , sizeof (ready ), & reply , sizeof ( reply ));
1991+ ret = sof_ipc_tx_message_no_reply (sdev -> ipc , & ready , sizeof (ready ));
19971992 if (ret < 0 )
19981993 return ret ;
19991994
@@ -2009,7 +2004,6 @@ static int sof_ipc3_widget_free(struct snd_sof_dev *sdev, struct snd_sof_widget
20092004 },
20102005 .id = swidget -> comp_id ,
20112006 };
2012- struct sof_ipc_reply reply ;
20132007 int ret ;
20142008
20152009 if (!swidget -> private )
@@ -2029,8 +2023,7 @@ static int sof_ipc3_widget_free(struct snd_sof_dev *sdev, struct snd_sof_widget
20292023 break ;
20302024 }
20312025
2032- ret = sof_ipc_tx_message (sdev -> ipc , & ipc_free , sizeof (ipc_free ),
2033- & reply , sizeof (reply ));
2026+ ret = sof_ipc_tx_message_no_reply (sdev -> ipc , & ipc_free , sizeof (ipc_free ));
20342027 if (ret < 0 )
20352028 dev_err (sdev -> dev , "failed to free widget %s\n" , swidget -> widget -> name );
20362029
@@ -2044,7 +2037,6 @@ static int sof_ipc3_dai_config(struct snd_sof_dev *sdev, struct snd_sof_widget *
20442037 struct snd_sof_dai * dai = swidget -> private ;
20452038 struct sof_dai_private_data * private ;
20462039 struct sof_ipc_dai_config * config ;
2047- struct sof_ipc_reply reply ;
20482040 int ret = 0 ;
20492041
20502042 if (!dai || !dai -> private ) {
@@ -2118,8 +2110,7 @@ static int sof_ipc3_dai_config(struct snd_sof_dev *sdev, struct snd_sof_widget *
21182110
21192111 /* only send the IPC if the widget is set up in the DSP */
21202112 if (swidget -> use_count > 0 ) {
2121- ret = sof_ipc_tx_message (sdev -> ipc , config , config -> hdr .size ,
2122- & reply , sizeof (reply ));
2113+ ret = sof_ipc_tx_message_no_reply (sdev -> ipc , config , config -> hdr .size );
21232114 if (ret < 0 )
21242115 dev_err (sdev -> dev , "Failed to set dai config for %s\n" , dai -> name );
21252116
@@ -2132,7 +2123,6 @@ static int sof_ipc3_dai_config(struct snd_sof_dev *sdev, struct snd_sof_widget *
21322123
21332124static int sof_ipc3_widget_setup (struct snd_sof_dev * sdev , struct snd_sof_widget * swidget )
21342125{
2135- struct sof_ipc_comp_reply reply ;
21362126 int ret ;
21372127
21382128 if (!swidget -> private )
@@ -2146,26 +2136,23 @@ static int sof_ipc3_widget_setup(struct snd_sof_dev *sdev, struct snd_sof_widget
21462136 struct sof_dai_private_data * dai_data = dai -> private ;
21472137 struct sof_ipc_comp * comp = & dai_data -> comp_dai -> comp ;
21482138
2149- ret = sof_ipc_tx_message (sdev -> ipc , dai_data -> comp_dai ,
2150- comp -> hdr .size , & reply , sizeof (reply ));
2139+ ret = sof_ipc_tx_message_no_reply (sdev -> ipc , dai_data -> comp_dai , comp -> hdr .size );
21512140 break ;
21522141 }
21532142 case snd_soc_dapm_scheduler :
21542143 {
21552144 struct sof_ipc_pipe_new * pipeline ;
21562145
21572146 pipeline = swidget -> private ;
2158- ret = sof_ipc_tx_message (sdev -> ipc , pipeline , sizeof (* pipeline ),
2159- & reply , sizeof (reply ));
2147+ ret = sof_ipc_tx_message_no_reply (sdev -> ipc , pipeline , sizeof (* pipeline ));
21602148 break ;
21612149 }
21622150 default :
21632151 {
21642152 struct sof_ipc_cmd_hdr * hdr ;
21652153
21662154 hdr = swidget -> private ;
2167- ret = sof_ipc_tx_message (sdev -> ipc , swidget -> private , hdr -> size ,
2168- & reply , sizeof (reply ));
2155+ ret = sof_ipc_tx_message_no_reply (sdev -> ipc , swidget -> private , hdr -> size );
21692156 break ;
21702157 }
21712158 }
0 commit comments