Skip to content

Commit 0a131eb

Browse files
matrix-wsktiwai
authored andcommitted
ALSA: rme9652: remove unused parameter in macro
Parameter xindex is not used in macro HDSPM_TCO_LTC_FRAMES and HDSPM_TCO_VIDEO_INPUT_FORMAT,so just remove it to simplify the code. Signed-off-by: He Lugang <helugang@uniontech.com> Link: https://patch.msgid.link/F53E9F10DA24705D+20240907142854.17627-1-helugang@uniontech.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent b12891c commit 0a131eb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

sound/pci/rme9652/hdspm.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3083,7 +3083,7 @@ static int snd_hdspm_get_autosync_ref(struct snd_kcontrol *kcontrol,
30833083

30843084

30853085

3086-
#define HDSPM_TCO_VIDEO_INPUT_FORMAT(xname, xindex) \
3086+
#define HDSPM_TCO_VIDEO_INPUT_FORMAT(xname) \
30873087
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
30883088
.name = xname, \
30893089
.access = SNDRV_CTL_ELEM_ACCESS_READ |\
@@ -3129,7 +3129,7 @@ static int snd_hdspm_get_tco_video_input_format(struct snd_kcontrol *kcontrol,
31293129

31303130

31313131

3132-
#define HDSPM_TCO_LTC_FRAMES(xname, xindex) \
3132+
#define HDSPM_TCO_LTC_FRAMES(xname) \
31333133
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
31343134
.name = xname, \
31353135
.access = SNDRV_CTL_ELEM_ACCESS_READ |\
@@ -4630,8 +4630,8 @@ static const struct snd_kcontrol_new snd_hdspm_controls_tco[] = {
46304630
HDSPM_TCO_WORD_TERM("TCO Word Term", 0),
46314631
HDSPM_TCO_LOCK_CHECK("TCO Input Check", 11),
46324632
HDSPM_TCO_LOCK_CHECK("TCO LTC Valid", 12),
4633-
HDSPM_TCO_LTC_FRAMES("TCO Detected Frame Rate", 0),
4634-
HDSPM_TCO_VIDEO_INPUT_FORMAT("Video Input Format", 0)
4633+
HDSPM_TCO_LTC_FRAMES("TCO Detected Frame Rate"),
4634+
HDSPM_TCO_VIDEO_INPUT_FORMAT("Video Input Format")
46354635
};
46364636

46374637

0 commit comments

Comments
 (0)