Commit f27a64f9 authored by Adrian Knoth's avatar Adrian Knoth Committed by Takashi Iwai

ALSA: hdspm - Fix coding style in CTL_ELEM macros

checkpatch.pl discourages the use of spaces at the beginning of lines.
Some of the CTL_ELEM defines were not properly indented.

This patch replaces the leading spaces by tabs. No functionality is
changed, the commit is purely cosmetic.
Signed-off-by: default avatarAdrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 930f4ff0
...@@ -2005,14 +2005,14 @@ static int hdspm_get_system_sample_rate(struct hdspm *hdspm) ...@@ -2005,14 +2005,14 @@ static int hdspm_get_system_sample_rate(struct hdspm *hdspm)
#define HDSPM_SYSTEM_SAMPLE_RATE(xname, xindex) \ #define HDSPM_SYSTEM_SAMPLE_RATE(xname, xindex) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \ { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
.name = xname, \ .name = xname, \
.index = xindex, \ .index = xindex, \
.access = SNDRV_CTL_ELEM_ACCESS_READWRITE |\ .access = SNDRV_CTL_ELEM_ACCESS_READWRITE |\
SNDRV_CTL_ELEM_ACCESS_VOLATILE, \ SNDRV_CTL_ELEM_ACCESS_VOLATILE, \
.info = snd_hdspm_info_system_sample_rate, \ .info = snd_hdspm_info_system_sample_rate, \
.put = snd_hdspm_put_system_sample_rate, \ .put = snd_hdspm_put_system_sample_rate, \
.get = snd_hdspm_get_system_sample_rate \ .get = snd_hdspm_get_system_sample_rate \
} }
static int snd_hdspm_info_system_sample_rate(struct snd_kcontrol *kcontrol, static int snd_hdspm_info_system_sample_rate(struct snd_kcontrol *kcontrol,
...@@ -2464,7 +2464,7 @@ static int snd_hdspm_put_clock_source(struct snd_kcontrol *kcontrol, ...@@ -2464,7 +2464,7 @@ static int snd_hdspm_put_clock_source(struct snd_kcontrol *kcontrol,
#define HDSPM_PREF_SYNC_REF(xname, xindex) \ #define HDSPM_PREF_SYNC_REF(xname, xindex) \
{.iface = SNDRV_CTL_ELEM_IFACE_MIXER, \ { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
.name = xname, \ .name = xname, \
.index = xindex, \ .index = xindex, \
.access = SNDRV_CTL_ELEM_ACCESS_READWRITE |\ .access = SNDRV_CTL_ELEM_ACCESS_READWRITE |\
...@@ -2800,12 +2800,12 @@ static int snd_hdspm_put_pref_sync_ref(struct snd_kcontrol *kcontrol, ...@@ -2800,12 +2800,12 @@ static int snd_hdspm_put_pref_sync_ref(struct snd_kcontrol *kcontrol,
#define HDSPM_AUTOSYNC_REF(xname, xindex) \ #define HDSPM_AUTOSYNC_REF(xname, xindex) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \ { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
.name = xname, \ .name = xname, \
.index = xindex, \ .index = xindex, \
.access = SNDRV_CTL_ELEM_ACCESS_READ, \ .access = SNDRV_CTL_ELEM_ACCESS_READ, \
.info = snd_hdspm_info_autosync_ref, \ .info = snd_hdspm_info_autosync_ref, \
.get = snd_hdspm_get_autosync_ref, \ .get = snd_hdspm_get_autosync_ref, \
} }
static int hdspm_autosync_ref(struct hdspm *hdspm) static int hdspm_autosync_ref(struct hdspm *hdspm)
...@@ -2889,12 +2889,12 @@ static int snd_hdspm_get_autosync_ref(struct snd_kcontrol *kcontrol, ...@@ -2889,12 +2889,12 @@ static int snd_hdspm_get_autosync_ref(struct snd_kcontrol *kcontrol,
#define HDSPM_LINE_OUT(xname, xindex) \ #define HDSPM_LINE_OUT(xname, xindex) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \ { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
.name = xname, \ .name = xname, \
.index = xindex, \ .index = xindex, \
.info = snd_hdspm_info_line_out, \ .info = snd_hdspm_info_line_out, \
.get = snd_hdspm_get_line_out, \ .get = snd_hdspm_get_line_out, \
.put = snd_hdspm_put_line_out \ .put = snd_hdspm_put_line_out \
} }
static int hdspm_line_out(struct hdspm * hdspm) static int hdspm_line_out(struct hdspm * hdspm)
...@@ -2946,12 +2946,12 @@ static int snd_hdspm_put_line_out(struct snd_kcontrol *kcontrol, ...@@ -2946,12 +2946,12 @@ static int snd_hdspm_put_line_out(struct snd_kcontrol *kcontrol,
#define HDSPM_TX_64(xname, xindex) \ #define HDSPM_TX_64(xname, xindex) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \ { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
.name = xname, \ .name = xname, \
.index = xindex, \ .index = xindex, \
.info = snd_hdspm_info_tx_64, \ .info = snd_hdspm_info_tx_64, \
.get = snd_hdspm_get_tx_64, \ .get = snd_hdspm_get_tx_64, \
.put = snd_hdspm_put_tx_64 \ .put = snd_hdspm_put_tx_64 \
} }
static int hdspm_tx_64(struct hdspm * hdspm) static int hdspm_tx_64(struct hdspm * hdspm)
...@@ -3002,12 +3002,12 @@ static int snd_hdspm_put_tx_64(struct snd_kcontrol *kcontrol, ...@@ -3002,12 +3002,12 @@ static int snd_hdspm_put_tx_64(struct snd_kcontrol *kcontrol,
#define HDSPM_C_TMS(xname, xindex) \ #define HDSPM_C_TMS(xname, xindex) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \ { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
.name = xname, \ .name = xname, \
.index = xindex, \ .index = xindex, \
.info = snd_hdspm_info_c_tms, \ .info = snd_hdspm_info_c_tms, \
.get = snd_hdspm_get_c_tms, \ .get = snd_hdspm_get_c_tms, \
.put = snd_hdspm_put_c_tms \ .put = snd_hdspm_put_c_tms \
} }
static int hdspm_c_tms(struct hdspm * hdspm) static int hdspm_c_tms(struct hdspm * hdspm)
...@@ -3058,12 +3058,12 @@ static int snd_hdspm_put_c_tms(struct snd_kcontrol *kcontrol, ...@@ -3058,12 +3058,12 @@ static int snd_hdspm_put_c_tms(struct snd_kcontrol *kcontrol,
#define HDSPM_SAFE_MODE(xname, xindex) \ #define HDSPM_SAFE_MODE(xname, xindex) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \ { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
.name = xname, \ .name = xname, \
.index = xindex, \ .index = xindex, \
.info = snd_hdspm_info_safe_mode, \ .info = snd_hdspm_info_safe_mode, \
.get = snd_hdspm_get_safe_mode, \ .get = snd_hdspm_get_safe_mode, \
.put = snd_hdspm_put_safe_mode \ .put = snd_hdspm_put_safe_mode \
} }
static int hdspm_safe_mode(struct hdspm * hdspm) static int hdspm_safe_mode(struct hdspm * hdspm)
...@@ -3114,12 +3114,12 @@ static int snd_hdspm_put_safe_mode(struct snd_kcontrol *kcontrol, ...@@ -3114,12 +3114,12 @@ static int snd_hdspm_put_safe_mode(struct snd_kcontrol *kcontrol,
#define HDSPM_EMPHASIS(xname, xindex) \ #define HDSPM_EMPHASIS(xname, xindex) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \ { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
.name = xname, \ .name = xname, \
.index = xindex, \ .index = xindex, \
.info = snd_hdspm_info_emphasis, \ .info = snd_hdspm_info_emphasis, \
.get = snd_hdspm_get_emphasis, \ .get = snd_hdspm_get_emphasis, \
.put = snd_hdspm_put_emphasis \ .put = snd_hdspm_put_emphasis \
} }
static int hdspm_emphasis(struct hdspm * hdspm) static int hdspm_emphasis(struct hdspm * hdspm)
...@@ -3170,12 +3170,12 @@ static int snd_hdspm_put_emphasis(struct snd_kcontrol *kcontrol, ...@@ -3170,12 +3170,12 @@ static int snd_hdspm_put_emphasis(struct snd_kcontrol *kcontrol,
#define HDSPM_DOLBY(xname, xindex) \ #define HDSPM_DOLBY(xname, xindex) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \ { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
.name = xname, \ .name = xname, \
.index = xindex, \ .index = xindex, \
.info = snd_hdspm_info_dolby, \ .info = snd_hdspm_info_dolby, \
.get = snd_hdspm_get_dolby, \ .get = snd_hdspm_get_dolby, \
.put = snd_hdspm_put_dolby \ .put = snd_hdspm_put_dolby \
} }
static int hdspm_dolby(struct hdspm * hdspm) static int hdspm_dolby(struct hdspm * hdspm)
...@@ -3226,12 +3226,12 @@ static int snd_hdspm_put_dolby(struct snd_kcontrol *kcontrol, ...@@ -3226,12 +3226,12 @@ static int snd_hdspm_put_dolby(struct snd_kcontrol *kcontrol,
#define HDSPM_PROFESSIONAL(xname, xindex) \ #define HDSPM_PROFESSIONAL(xname, xindex) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \ { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
.name = xname, \ .name = xname, \
.index = xindex, \ .index = xindex, \
.info = snd_hdspm_info_professional, \ .info = snd_hdspm_info_professional, \
.get = snd_hdspm_get_professional, \ .get = snd_hdspm_get_professional, \
.put = snd_hdspm_put_professional \ .put = snd_hdspm_put_professional \
} }
static int hdspm_professional(struct hdspm * hdspm) static int hdspm_professional(struct hdspm * hdspm)
...@@ -3281,12 +3281,12 @@ static int snd_hdspm_put_professional(struct snd_kcontrol *kcontrol, ...@@ -3281,12 +3281,12 @@ static int snd_hdspm_put_professional(struct snd_kcontrol *kcontrol,
} }
#define HDSPM_INPUT_SELECT(xname, xindex) \ #define HDSPM_INPUT_SELECT(xname, xindex) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \ { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
.name = xname, \ .name = xname, \
.index = xindex, \ .index = xindex, \
.info = snd_hdspm_info_input_select, \ .info = snd_hdspm_info_input_select, \
.get = snd_hdspm_get_input_select, \ .get = snd_hdspm_get_input_select, \
.put = snd_hdspm_put_input_select \ .put = snd_hdspm_put_input_select \
} }
static int hdspm_input_select(struct hdspm * hdspm) static int hdspm_input_select(struct hdspm * hdspm)
...@@ -3353,12 +3353,12 @@ static int snd_hdspm_put_input_select(struct snd_kcontrol *kcontrol, ...@@ -3353,12 +3353,12 @@ static int snd_hdspm_put_input_select(struct snd_kcontrol *kcontrol,
#define HDSPM_DS_WIRE(xname, xindex) \ #define HDSPM_DS_WIRE(xname, xindex) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \ { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
.name = xname, \ .name = xname, \
.index = xindex, \ .index = xindex, \
.info = snd_hdspm_info_ds_wire, \ .info = snd_hdspm_info_ds_wire, \
.get = snd_hdspm_get_ds_wire, \ .get = snd_hdspm_get_ds_wire, \
.put = snd_hdspm_put_ds_wire \ .put = snd_hdspm_put_ds_wire \
} }
static int hdspm_ds_wire(struct hdspm * hdspm) static int hdspm_ds_wire(struct hdspm * hdspm)
...@@ -3425,12 +3425,12 @@ static int snd_hdspm_put_ds_wire(struct snd_kcontrol *kcontrol, ...@@ -3425,12 +3425,12 @@ static int snd_hdspm_put_ds_wire(struct snd_kcontrol *kcontrol,
#define HDSPM_QS_WIRE(xname, xindex) \ #define HDSPM_QS_WIRE(xname, xindex) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \ { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
.name = xname, \ .name = xname, \
.index = xindex, \ .index = xindex, \
.info = snd_hdspm_info_qs_wire, \ .info = snd_hdspm_info_qs_wire, \
.get = snd_hdspm_get_qs_wire, \ .get = snd_hdspm_get_qs_wire, \
.put = snd_hdspm_put_qs_wire \ .put = snd_hdspm_put_qs_wire \
} }
static int hdspm_qs_wire(struct hdspm * hdspm) static int hdspm_qs_wire(struct hdspm * hdspm)
...@@ -3597,15 +3597,15 @@ static int snd_hdspm_put_madi_speedmode(struct snd_kcontrol *kcontrol, ...@@ -3597,15 +3597,15 @@ static int snd_hdspm_put_madi_speedmode(struct snd_kcontrol *kcontrol,
} }
#define HDSPM_MIXER(xname, xindex) \ #define HDSPM_MIXER(xname, xindex) \
{ .iface = SNDRV_CTL_ELEM_IFACE_HWDEP, \ { .iface = SNDRV_CTL_ELEM_IFACE_HWDEP, \
.name = xname, \ .name = xname, \
.index = xindex, \ .index = xindex, \
.device = 0, \ .device = 0, \
.access = SNDRV_CTL_ELEM_ACCESS_READWRITE | \ .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | \
SNDRV_CTL_ELEM_ACCESS_VOLATILE, \ SNDRV_CTL_ELEM_ACCESS_VOLATILE, \
.info = snd_hdspm_info_mixer, \ .info = snd_hdspm_info_mixer, \
.get = snd_hdspm_get_mixer, \ .get = snd_hdspm_get_mixer, \
.put = snd_hdspm_put_mixer \ .put = snd_hdspm_put_mixer \
} }
static int snd_hdspm_info_mixer(struct snd_kcontrol *kcontrol, static int snd_hdspm_info_mixer(struct snd_kcontrol *kcontrol,
...@@ -3704,12 +3704,12 @@ static int snd_hdspm_put_mixer(struct snd_kcontrol *kcontrol, ...@@ -3704,12 +3704,12 @@ static int snd_hdspm_put_mixer(struct snd_kcontrol *kcontrol,
*/ */
#define HDSPM_PLAYBACK_MIXER \ #define HDSPM_PLAYBACK_MIXER \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \ { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
.access = SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_WRITE | \ .access = SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_WRITE | \
SNDRV_CTL_ELEM_ACCESS_VOLATILE, \ SNDRV_CTL_ELEM_ACCESS_VOLATILE, \
.info = snd_hdspm_info_playback_mixer, \ .info = snd_hdspm_info_playback_mixer, \
.get = snd_hdspm_get_playback_mixer, \ .get = snd_hdspm_get_playback_mixer, \
.put = snd_hdspm_put_playback_mixer \ .put = snd_hdspm_put_playback_mixer \
} }
static int snd_hdspm_info_playback_mixer(struct snd_kcontrol *kcontrol, static int snd_hdspm_info_playback_mixer(struct snd_kcontrol *kcontrol,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment