mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
ASoC: mediatek: Drop __force casts
Now that the bitwise parameter definitions are gone for PCM parameters, we don't have to cast with ugly __force prefix. Simply drop those superfluous casts. Acked-by: Mark Brown <broonie@kernel.org> Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20260812060557.80445-14-tiwai@suse.de
This commit is contained in:
parent
4effed8fe6
commit
9543539d7c
|
|
@ -172,7 +172,7 @@ static int mt8183_i2s_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|||
{
|
||||
/* fix BE i2s format to S32_LE, clean param mask first */
|
||||
snd_mask_reset_range(hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT),
|
||||
0, (__force unsigned int)SNDRV_PCM_FORMAT_LAST);
|
||||
0, SNDRV_PCM_FORMAT_LAST);
|
||||
|
||||
params_set_format(params, SNDRV_PCM_FORMAT_S32_LE);
|
||||
|
||||
|
|
@ -184,7 +184,7 @@ static int mt8183_rt1015_i2s_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|||
{
|
||||
/* fix BE i2s format to S24_LE, clean param mask first */
|
||||
snd_mask_reset_range(hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT),
|
||||
0, (__force unsigned int)SNDRV_PCM_FORMAT_LAST);
|
||||
0, SNDRV_PCM_FORMAT_LAST);
|
||||
|
||||
params_set_format(params, SNDRV_PCM_FORMAT_S24_LE);
|
||||
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ static int mt8183_i2s_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|||
|
||||
/* fix BE i2s format to S32_LE, clean param mask first */
|
||||
snd_mask_reset_range(hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT),
|
||||
0, (__force unsigned int)SNDRV_PCM_FORMAT_LAST);
|
||||
0, SNDRV_PCM_FORMAT_LAST);
|
||||
|
||||
params_set_format(params, SNDRV_PCM_FORMAT_S32_LE);
|
||||
return 0;
|
||||
|
|
@ -112,7 +112,7 @@ static int mt8183_rt1015_i2s_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|||
|
||||
/* fix BE i2s format to S24_LE, clean param mask first */
|
||||
snd_mask_reset_range(hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT),
|
||||
0, (__force unsigned int)SNDRV_PCM_FORMAT_LAST);
|
||||
0, SNDRV_PCM_FORMAT_LAST);
|
||||
|
||||
params_set_format(params, SNDRV_PCM_FORMAT_S24_LE);
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -387,7 +387,7 @@ static int mt8186_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|||
|
||||
/* clean param mask first */
|
||||
snd_mask_reset_range(hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT),
|
||||
0, (__force unsigned int)SNDRV_PCM_FORMAT_LAST);
|
||||
0, SNDRV_PCM_FORMAT_LAST);
|
||||
|
||||
params_set_format(params, fmt);
|
||||
|
||||
|
|
|
|||
|
|
@ -623,7 +623,7 @@ static int mt8188_dptx_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|||
{
|
||||
/* fix BE i2s format to 32bit, clean param mask first */
|
||||
snd_mask_reset_range(hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT),
|
||||
0, (__force unsigned int)SNDRV_PCM_FORMAT_LAST);
|
||||
0, SNDRV_PCM_FORMAT_LAST);
|
||||
|
||||
params_set_format(params, SNDRV_PCM_FORMAT_S32_LE);
|
||||
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ static int mt8189_dptx_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|||
|
||||
/* fix BE i2s format to 32bit, clean param mask first */
|
||||
snd_mask_reset_range(hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT),
|
||||
0, (__force unsigned int)SNDRV_PCM_FORMAT_LAST);
|
||||
0, SNDRV_PCM_FORMAT_LAST);
|
||||
|
||||
params_set_format(params, SNDRV_PCM_FORMAT_S32_LE);
|
||||
|
||||
|
|
|
|||
|
|
@ -382,7 +382,7 @@ static int mt8192_i2s_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|||
{
|
||||
/* fix BE i2s format to S24_LE, clean param mask first */
|
||||
snd_mask_reset_range(hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT),
|
||||
0, (__force unsigned int)SNDRV_PCM_FORMAT_LAST);
|
||||
0, SNDRV_PCM_FORMAT_LAST);
|
||||
|
||||
params_set_format(params, SNDRV_PCM_FORMAT_S24_LE);
|
||||
|
||||
|
|
|
|||
|
|
@ -387,7 +387,7 @@ static int mt8195_dptx_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|||
{
|
||||
/* fix BE i2s format to S24_LE, clean param mask first */
|
||||
snd_mask_reset_range(hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT),
|
||||
0, (__force unsigned int)SNDRV_PCM_FORMAT_LAST);
|
||||
0, SNDRV_PCM_FORMAT_LAST);
|
||||
|
||||
params_set_format(params, SNDRV_PCM_FORMAT_S24_LE);
|
||||
|
||||
|
|
@ -650,7 +650,7 @@ static int mt8195_etdm_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|||
{
|
||||
/* fix BE i2s format to S24_LE, clean param mask first */
|
||||
snd_mask_reset_range(hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT),
|
||||
0, (__force unsigned int)SNDRV_PCM_FORMAT_LAST);
|
||||
0, SNDRV_PCM_FORMAT_LAST);
|
||||
|
||||
params_set_format(params, SNDRV_PCM_FORMAT_S24_LE);
|
||||
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ static int mt8196_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
|
|||
|
||||
/* fix BE i2s format to 32bit, clean param mask first */
|
||||
snd_mask_reset_range(hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT),
|
||||
0, (__force unsigned int)SNDRV_PCM_FORMAT_LAST);
|
||||
0, SNDRV_PCM_FORMAT_LAST);
|
||||
|
||||
params_set_format(params, SNDRV_PCM_FORMAT_S32_LE);
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user