Skip to content

Commit

Permalink
ALSA: rme9652: remove unused parameter in macro
Browse files Browse the repository at this point in the history
[ Upstream commit 0a131eb8551da832e3c04b385305f7d79e5edb89 ]

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 <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
[ Backport from v6.12-rc1 ]
Signed-off-by: WangYuli <[email protected]>
  • Loading branch information
matrix-wsk authored and Avenger-285714 committed Oct 18, 2024
1 parent 074034b commit 0fb4eb3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sound/pci/rme9652/hdspm.c
Original file line number Diff line number Diff line change
Expand Up @@ -3083,7 +3083,7 @@ static int snd_hdspm_get_autosync_ref(struct snd_kcontrol *kcontrol,



#define HDSPM_TCO_VIDEO_INPUT_FORMAT(xname, xindex) \
#define HDSPM_TCO_VIDEO_INPUT_FORMAT(xname) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
.name = xname, \
.access = SNDRV_CTL_ELEM_ACCESS_READ |\
Expand Down Expand Up @@ -3129,7 +3129,7 @@ static int snd_hdspm_get_tco_video_input_format(struct snd_kcontrol *kcontrol,



#define HDSPM_TCO_LTC_FRAMES(xname, xindex) \
#define HDSPM_TCO_LTC_FRAMES(xname) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
.name = xname, \
.access = SNDRV_CTL_ELEM_ACCESS_READ |\
Expand Down Expand Up @@ -4630,8 +4630,8 @@ static const struct snd_kcontrol_new snd_hdspm_controls_tco[] = {
HDSPM_TCO_WORD_TERM("TCO Word Term", 0),
HDSPM_TCO_LOCK_CHECK("TCO Input Check", 11),
HDSPM_TCO_LOCK_CHECK("TCO LTC Valid", 12),
HDSPM_TCO_LTC_FRAMES("TCO Detected Frame Rate", 0),
HDSPM_TCO_VIDEO_INPUT_FORMAT("Video Input Format", 0)
HDSPM_TCO_LTC_FRAMES("TCO Detected Frame Rate"),
HDSPM_TCO_VIDEO_INPUT_FORMAT("Video Input Format")
};


Expand Down

0 comments on commit 0fb4eb3

Please sign in to comment.