Skip to content

Commit 17e194b

Browse files
claudiubezneaAndrei Simion
authored andcommitted
ASoC: mchp-asrc: get rid of compilation warnings
Get rid of the following compilation warning: sound/soc/atmel/mchp-asrc.c: In function ‘mchp_asrc_hw_params’: sound/soc/atmel/mchp-asrc.c:1019:15: warning: variable ‘dsps_req’ set but not used [-Wunused-but-set-variable] unsigned int dsps_req = (channels + 1) / 2; ^~~~~~~~ Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> (cherry picked from linux-6.1-trunk/at91/sound) Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
1 parent 5e2a02b commit 17e194b

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

sound/soc/atmel/mchp-asrc.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,6 @@ static int mchp_asrc_hw_params(struct snd_pcm_substream *substream,
10201020
bool is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
10211021
u32 ratio;
10221022
unsigned int channels = params ? params_channels(params) : 0;
1023-
unsigned int dsps_req = (channels + 1) / 2;
10241023
u32 ch_conf = 0;
10251024
u32 ch_conf_mask = 0;
10261025
int ret;
@@ -1092,8 +1091,6 @@ static int mchp_asrc_hw_params(struct snd_pcm_substream *substream,
10921091
if (ret < 0)
10931092
goto __cleanup_bes;
10941093

1095-
dsps_req = (ret + 1) / 2;
1096-
10971094
if (!pcm->is_hostless) {
10981095
int period_size = snd_pcm_lib_period_bytes(substream);
10991096

0 commit comments

Comments
 (0)