@@ -764,7 +764,7 @@ static int sof_ipc4_pcm_setup(struct snd_sof_dev *sdev, struct snd_sof_pcm *spcm
764
764
return 0 ;
765
765
}
766
766
767
- static void sof_ipc4_build_time_info (struct snd_sof_dev * sdev , struct snd_sof_pcm_stream * spcm )
767
+ static void sof_ipc4_build_time_info (struct snd_sof_dev * sdev , struct snd_sof_pcm_stream * sps )
768
768
{
769
769
struct sof_ipc4_copier * host_copier = NULL ;
770
770
struct sof_ipc4_copier * dai_copier = NULL ;
@@ -775,7 +775,7 @@ static void sof_ipc4_build_time_info(struct snd_sof_dev *sdev, struct snd_sof_pc
775
775
int i ;
776
776
777
777
/* find host & dai to locate info in memory window */
778
- for_each_dapm_widgets (spcm -> list , i , widget ) {
778
+ for_each_dapm_widgets (sps -> list , i , widget ) {
779
779
struct snd_sof_widget * swidget = widget -> dobj .private ;
780
780
781
781
if (!swidget )
@@ -795,7 +795,7 @@ static void sof_ipc4_build_time_info(struct snd_sof_dev *sdev, struct snd_sof_pc
795
795
return ;
796
796
}
797
797
798
- info = spcm -> private ;
798
+ info = sps -> private ;
799
799
info -> host_copier = host_copier ;
800
800
info -> dai_copier = dai_copier ;
801
801
info -> llp_offset = offsetof(struct sof_ipc4_fw_registers , llp_gpdma_reading_slots ) +
@@ -864,7 +864,7 @@ static int sof_ipc4_pcm_hw_params(struct snd_soc_component *component,
864
864
865
865
static int sof_ipc4_get_stream_start_offset (struct snd_sof_dev * sdev ,
866
866
struct snd_pcm_substream * substream ,
867
- struct snd_sof_pcm_stream * stream ,
867
+ struct snd_sof_pcm_stream * sps ,
868
868
struct sof_ipc4_timestamp_info * time_info )
869
869
{
870
870
struct sof_ipc4_copier * host_copier = time_info -> host_copier ;
@@ -918,7 +918,7 @@ static int sof_ipc4_pcm_pointer(struct snd_soc_component *component,
918
918
struct sof_ipc4_timestamp_info * time_info ;
919
919
struct sof_ipc4_llp_reading_slot llp ;
920
920
snd_pcm_uframes_t head_cnt , tail_cnt ;
921
- struct snd_sof_pcm_stream * stream ;
921
+ struct snd_sof_pcm_stream * sps ;
922
922
u64 dai_cnt , host_cnt , host_ptr ;
923
923
struct snd_sof_pcm * spcm ;
924
924
int ret ;
@@ -927,8 +927,8 @@ static int sof_ipc4_pcm_pointer(struct snd_soc_component *component,
927
927
if (!spcm )
928
928
return - EOPNOTSUPP ;
929
929
930
- stream = & spcm -> stream [substream -> stream ];
931
- time_info = stream -> private ;
930
+ sps = & spcm -> stream [substream -> stream ];
931
+ time_info = sps -> private ;
932
932
if (!time_info )
933
933
return - EOPNOTSUPP ;
934
934
@@ -938,7 +938,7 @@ static int sof_ipc4_pcm_pointer(struct snd_soc_component *component,
938
938
* the statistics is complete. And it will not change after the first initiailization.
939
939
*/
940
940
if (time_info -> stream_start_offset == SOF_IPC4_INVALID_STREAM_POSITION ) {
941
- ret = sof_ipc4_get_stream_start_offset (sdev , substream , stream , time_info );
941
+ ret = sof_ipc4_get_stream_start_offset (sdev , substream , sps , time_info );
942
942
if (ret < 0 )
943
943
return - EOPNOTSUPP ;
944
944
}
@@ -1030,15 +1030,15 @@ static snd_pcm_sframes_t sof_ipc4_pcm_delay(struct snd_soc_component *component,
1030
1030
{
1031
1031
struct snd_soc_pcm_runtime * rtd = snd_soc_substream_to_rtd (substream );
1032
1032
struct sof_ipc4_timestamp_info * time_info ;
1033
- struct snd_sof_pcm_stream * stream ;
1033
+ struct snd_sof_pcm_stream * sps ;
1034
1034
struct snd_sof_pcm * spcm ;
1035
1035
1036
1036
spcm = snd_sof_find_spcm_dai (component , rtd );
1037
1037
if (!spcm )
1038
1038
return 0 ;
1039
1039
1040
- stream = & spcm -> stream [substream -> stream ];
1041
- time_info = stream -> private ;
1040
+ sps = & spcm -> stream [substream -> stream ];
1041
+ time_info = sps -> private ;
1042
1042
/*
1043
1043
* Report the stored delay value calculated in the pointer callback.
1044
1044
* In the unlikely event that the calculation was skipped/aborted, the
0 commit comments