You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[ALSA] Clean up with common snd_ctl_boolean_*_info callbacks
Clean up codes using the new common snd_ctl_boolean_*_info() callbacks. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
This commit is contained in:
committed by
Jaroslav Kysela
parent
b9ed4f2b68
commit
a5ce88909d
+1
-2
@@ -201,8 +201,7 @@ int snd_soc_info_volsw(struct snd_kcontrol *kcontrol,
|
|||||||
struct snd_ctl_elem_info *uinfo);
|
struct snd_ctl_elem_info *uinfo);
|
||||||
int snd_soc_info_volsw_ext(struct snd_kcontrol *kcontrol,
|
int snd_soc_info_volsw_ext(struct snd_kcontrol *kcontrol,
|
||||||
struct snd_ctl_elem_info *uinfo);
|
struct snd_ctl_elem_info *uinfo);
|
||||||
int snd_soc_info_bool_ext(struct snd_kcontrol *kcontrol,
|
#define snd_soc_info_bool_ext snd_ctl_boolean_mono
|
||||||
struct snd_ctl_elem_info *uinfo);
|
|
||||||
int snd_soc_get_volsw(struct snd_kcontrol *kcontrol,
|
int snd_soc_get_volsw(struct snd_kcontrol *kcontrol,
|
||||||
struct snd_ctl_elem_value *ucontrol);
|
struct snd_ctl_elem_value *ucontrol);
|
||||||
int snd_soc_put_volsw(struct snd_kcontrol *kcontrol,
|
int snd_soc_put_volsw(struct snd_kcontrol *kcontrol,
|
||||||
|
|||||||
@@ -297,15 +297,7 @@ static struct snd_kcontrol_new capture_source_control = {
|
|||||||
.put = onyx_snd_capture_source_put,
|
.put = onyx_snd_capture_source_put,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int onyx_snd_mute_info(struct snd_kcontrol *kcontrol,
|
#define onyx_snd_mute_info snd_ctl_boolean_stereo_info
|
||||||
struct snd_ctl_elem_info *uinfo)
|
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 2;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int onyx_snd_mute_get(struct snd_kcontrol *kcontrol,
|
static int onyx_snd_mute_get(struct snd_kcontrol *kcontrol,
|
||||||
struct snd_ctl_elem_value *ucontrol)
|
struct snd_ctl_elem_value *ucontrol)
|
||||||
@@ -359,15 +351,7 @@ static struct snd_kcontrol_new mute_control = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static int onyx_snd_single_bit_info(struct snd_kcontrol *kcontrol,
|
#define onyx_snd_single_bit_info snd_ctl_boolean_mono_info
|
||||||
struct snd_ctl_elem_info *uinfo)
|
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 1;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define FLAG_POLARITY_INVERT 1
|
#define FLAG_POLARITY_INVERT 1
|
||||||
#define FLAG_SPDIFLOCK 2
|
#define FLAG_SPDIFLOCK 2
|
||||||
|
|||||||
@@ -272,15 +272,7 @@ static struct snd_kcontrol_new volume_control = {
|
|||||||
.put = tas_snd_vol_put,
|
.put = tas_snd_vol_put,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int tas_snd_mute_info(struct snd_kcontrol *kcontrol,
|
#define tas_snd_mute_info snd_ctl_boolean_stereo_info
|
||||||
struct snd_ctl_elem_info *uinfo)
|
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 2;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int tas_snd_mute_get(struct snd_kcontrol *kcontrol,
|
static int tas_snd_mute_get(struct snd_kcontrol *kcontrol,
|
||||||
struct snd_ctl_elem_value *ucontrol)
|
struct snd_ctl_elem_value *ucontrol)
|
||||||
@@ -431,15 +423,7 @@ static struct snd_kcontrol_new drc_range_control = {
|
|||||||
.put = tas_snd_drc_range_put,
|
.put = tas_snd_drc_range_put,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int tas_snd_drc_switch_info(struct snd_kcontrol *kcontrol,
|
#define tas_snd_drc_switch_info snd_ctl_boolean_mono_info
|
||||||
struct snd_ctl_elem_info *uinfo)
|
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 1;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int tas_snd_drc_switch_get(struct snd_kcontrol *kcontrol,
|
static int tas_snd_drc_switch_get(struct snd_kcontrol *kcontrol,
|
||||||
struct snd_ctl_elem_value *ucontrol)
|
struct snd_ctl_elem_value *ucontrol)
|
||||||
|
|||||||
@@ -582,15 +582,7 @@ static int layouts_list_items;
|
|||||||
* make the fabric handle all the card stuff, etc... */
|
* make the fabric handle all the card stuff, etc... */
|
||||||
static struct layout_dev *layout_device;
|
static struct layout_dev *layout_device;
|
||||||
|
|
||||||
static int control_info(struct snd_kcontrol *kcontrol,
|
#define control_info snd_ctl_boolean_mono_info
|
||||||
struct snd_ctl_elem_info *uinfo)
|
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 1;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define AMP_CONTROL(n, description) \
|
#define AMP_CONTROL(n, description) \
|
||||||
static int n##_control_get(struct snd_kcontrol *kcontrol, \
|
static int n##_control_get(struct snd_kcontrol *kcontrol, \
|
||||||
|
|||||||
@@ -510,15 +510,7 @@ static const DECLARE_TLV_DB_SCALE(db_scale_dummy, -4500, 30, 0);
|
|||||||
.get = snd_dummy_capsrc_get, .put = snd_dummy_capsrc_put, \
|
.get = snd_dummy_capsrc_get, .put = snd_dummy_capsrc_put, \
|
||||||
.private_value = addr }
|
.private_value = addr }
|
||||||
|
|
||||||
static int snd_dummy_capsrc_info(struct snd_kcontrol *kcontrol,
|
#define snd_dummy_capsrc_info snd_ctl_boolean_stereo_info
|
||||||
struct snd_ctl_elem_info *uinfo)
|
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 2;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int snd_dummy_capsrc_get(struct snd_kcontrol *kcontrol,
|
static int snd_dummy_capsrc_get(struct snd_kcontrol *kcontrol,
|
||||||
struct snd_ctl_elem_value *ucontrol)
|
struct snd_ctl_elem_value *ucontrol)
|
||||||
|
|||||||
@@ -440,15 +440,7 @@ static void mts64_write_midi(struct mts64 *mts, u8 c,
|
|||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
|
||||||
/* SMPTE Switch */
|
/* SMPTE Switch */
|
||||||
static int snd_mts64_ctl_smpte_switch_info(struct snd_kcontrol *kctl,
|
#define snd_mts64_ctl_smpte_switch_info snd_ctl_boolean_mono_info
|
||||||
struct snd_ctl_elem_info *uinfo)
|
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 1;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int snd_mts64_ctl_smpte_switch_get(struct snd_kcontrol* kctl,
|
static int snd_mts64_ctl_smpte_switch_get(struct snd_kcontrol* kctl,
|
||||||
struct snd_ctl_elem_value *uctl)
|
struct snd_ctl_elem_value *uctl)
|
||||||
|
|||||||
@@ -647,14 +647,7 @@ static int vx_audio_monitor_put(struct snd_kcontrol *kcontrol, struct snd_ctl_el
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int vx_audio_sw_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
|
#define vx_audio_sw_info snd_ctl_boolean_stereo_info
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 2;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int vx_audio_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
|
static int vx_audio_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
|
||||||
{
|
{
|
||||||
@@ -865,14 +858,7 @@ static int vx_peak_meter_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int vx_saturation_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
|
#define vx_saturation_info snd_ctl_boolean_stereo_info
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 2;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int vx_saturation_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
|
static int vx_saturation_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -200,15 +200,7 @@ static int snd_ak4114_in_error_get(struct snd_kcontrol *kcontrol,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int snd_ak4114_in_bit_info(struct snd_kcontrol *kcontrol,
|
#define snd_ak4114_in_bit_info snd_ctl_boolean_mono_info
|
||||||
struct snd_ctl_elem_info *uinfo)
|
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 1;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int snd_ak4114_in_bit_get(struct snd_kcontrol *kcontrol,
|
static int snd_ak4114_in_bit_get(struct snd_kcontrol *kcontrol,
|
||||||
struct snd_ctl_elem_value *ucontrol)
|
struct snd_ctl_elem_value *ucontrol)
|
||||||
|
|||||||
@@ -181,15 +181,7 @@ static int snd_ak4117_in_error_get(struct snd_kcontrol *kcontrol,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int snd_ak4117_in_bit_info(struct snd_kcontrol *kcontrol,
|
#define snd_ak4117_in_bit_info snd_ctl_boolean_mono_info
|
||||||
struct snd_ctl_elem_info *uinfo)
|
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 1;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int snd_ak4117_in_bit_get(struct snd_kcontrol *kcontrol,
|
static int snd_ak4117_in_bit_get(struct snd_kcontrol *kcontrol,
|
||||||
struct snd_ctl_elem_value *ucontrol)
|
struct snd_ctl_elem_value *ucontrol)
|
||||||
|
|||||||
@@ -463,15 +463,7 @@ static int snd_akm4xxx_deemphasis_put(struct snd_kcontrol *kcontrol,
|
|||||||
return change;
|
return change;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ak4xxx_switch_info(struct snd_kcontrol *kcontrol,
|
#define ak4xxx_switch_info snd_ctl_boolean_mono_info
|
||||||
struct snd_ctl_elem_info *uinfo)
|
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 1;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int ak4xxx_switch_get(struct snd_kcontrol *kcontrol,
|
static int ak4xxx_switch_get(struct snd_kcontrol *kcontrol,
|
||||||
struct snd_ctl_elem_value *ucontrol)
|
struct snd_ctl_elem_value *ucontrol)
|
||||||
|
|||||||
@@ -140,15 +140,7 @@ static int pt2258_stereo_volume_put(struct snd_kcontrol *kcontrol,
|
|||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int pt2258_switch_info(struct snd_kcontrol *kcontrol,
|
#define pt2258_switch_info snd_ctl_boolean_mono_info
|
||||||
struct snd_ctl_elem_info *uinfo)
|
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 1;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int pt2258_switch_get(struct snd_kcontrol *kcontrol,
|
static int pt2258_switch_get(struct snd_kcontrol *kcontrol,
|
||||||
struct snd_ctl_elem_value *ucontrol)
|
struct snd_ctl_elem_value *ucontrol)
|
||||||
|
|||||||
@@ -142,15 +142,7 @@ static int snd_tea6330t_put_master_volume(struct snd_kcontrol *kcontrol,
|
|||||||
.info = snd_tea6330t_info_master_switch, \
|
.info = snd_tea6330t_info_master_switch, \
|
||||||
.get = snd_tea6330t_get_master_switch, .put = snd_tea6330t_put_master_switch }
|
.get = snd_tea6330t_get_master_switch, .put = snd_tea6330t_put_master_switch }
|
||||||
|
|
||||||
static int snd_tea6330t_info_master_switch(struct snd_kcontrol *kcontrol,
|
#define snd_tea6330t_info_master_switch snd_ctl_boolean_stereo_info
|
||||||
struct snd_ctl_elem_info *uinfo)
|
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 2;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int snd_tea6330t_get_master_switch(struct snd_kcontrol *kcontrol,
|
static int snd_tea6330t_get_master_switch(struct snd_kcontrol *kcontrol,
|
||||||
struct snd_ctl_elem_value *ucontrol)
|
struct snd_ctl_elem_value *ucontrol)
|
||||||
|
|||||||
+2
-16
@@ -1071,14 +1071,7 @@ static int snd_es18xx_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem
|
|||||||
return (snd_es18xx_mixer_bits(chip, 0x1c, 0x07, val) != val) || retVal;
|
return (snd_es18xx_mixer_bits(chip, 0x1c, 0x07, val) != val) || retVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int snd_es18xx_info_spatializer_enable(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
|
#define snd_es18xx_info_spatializer_enable snd_ctl_boolean_mono_info
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 1;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int snd_es18xx_get_spatializer_enable(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
|
static int snd_es18xx_get_spatializer_enable(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
|
||||||
{
|
{
|
||||||
@@ -1120,14 +1113,7 @@ static int snd_es18xx_get_hw_volume(struct snd_kcontrol *kcontrol, struct snd_ct
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int snd_es18xx_info_hw_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
|
#define snd_es18xx_info_hw_switch snd_ctl_boolean_stereo_info
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 2;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int snd_es18xx_get_hw_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
|
static int snd_es18xx_get_hw_switch(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -36,14 +36,7 @@
|
|||||||
.get = snd_gf1_get_single, .put = snd_gf1_put_single, \
|
.get = snd_gf1_get_single, .put = snd_gf1_put_single, \
|
||||||
.private_value = shift | (invert << 8) }
|
.private_value = shift | (invert << 8) }
|
||||||
|
|
||||||
static int snd_gf1_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
|
#define snd_gf1_info_single snd_ctl_boolean_mono_info
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 1;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int snd_gf1_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
|
static int snd_gf1_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -242,14 +242,7 @@ static int aci_setvalue(struct snd_miro * miro, unsigned char index, int value)
|
|||||||
* MIXER part
|
* MIXER part
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int snd_miro_info_capture(struct snd_kcontrol *kcontrol,
|
#define snd_miro_info_capture snd_ctl_boolean_mono_info
|
||||||
struct snd_ctl_elem_info *uinfo)
|
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 1;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int snd_miro_get_capture(struct snd_kcontrol *kcontrol,
|
static int snd_miro_get_capture(struct snd_kcontrol *kcontrol,
|
||||||
struct snd_ctl_elem_value *ucontrol)
|
struct snd_ctl_elem_value *ucontrol)
|
||||||
@@ -344,14 +337,7 @@ static int snd_miro_put_preamp(struct snd_kcontrol *kcontrol,
|
|||||||
return change;
|
return change;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int snd_miro_info_amp(struct snd_kcontrol *kcontrol,
|
#define snd_miro_info_amp snd_ctl_boolean_mono_info
|
||||||
struct snd_ctl_elem_info *uinfo)
|
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 1;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int snd_miro_get_amp(struct snd_kcontrol *kcontrol,
|
static int snd_miro_get_amp(struct snd_kcontrol *kcontrol,
|
||||||
struct snd_ctl_elem_value *ucontrol)
|
struct snd_ctl_elem_value *ucontrol)
|
||||||
|
|||||||
@@ -979,14 +979,7 @@ static int snd_sb_csp_restart(struct snd_sb_csp * p)
|
|||||||
* QSound mixer control for PCM
|
* QSound mixer control for PCM
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int snd_sb_qsound_switch_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
|
#define snd_sb_qsound_switch_info snd_ctl_boolean_mono_info
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 1;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int snd_sb_qsound_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
|
static int snd_sb_qsound_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1880,14 +1880,7 @@ static int patch_ad1981b(struct snd_ac97 *ac97)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int snd_ac97_ad1888_lohpsel_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
|
#define snd_ac97_ad1888_lohpsel_info snd_ctl_boolean_mono_info
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 1;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int snd_ac97_ad1888_lohpsel_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
|
static int snd_ac97_ad1888_lohpsel_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
|
||||||
{
|
{
|
||||||
@@ -2186,15 +2179,7 @@ static int patch_ad1985(struct snd_ac97 * ac97)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int snd_ac97_ad1986_bool_info(struct snd_kcontrol *kcontrol,
|
#define snd_ac97_ad1986_bool_info snd_ctl_boolean_mono_info
|
||||||
struct snd_ctl_elem_info *uinfo)
|
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 1;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int snd_ac97_ad1986_lososel_get(struct snd_kcontrol *kcontrol,
|
static int snd_ac97_ad1986_lososel_get(struct snd_kcontrol *kcontrol,
|
||||||
struct snd_ctl_elem_value *ucontrol)
|
struct snd_ctl_elem_value *ucontrol)
|
||||||
|
|||||||
@@ -1804,15 +1804,7 @@ static int __devinit snd_ali_build_pcms(struct snd_ali *codec)
|
|||||||
.info = snd_ali5451_spdif_info, .get = snd_ali5451_spdif_get, \
|
.info = snd_ali5451_spdif_info, .get = snd_ali5451_spdif_get, \
|
||||||
.put = snd_ali5451_spdif_put, .private_value = value}
|
.put = snd_ali5451_spdif_put, .private_value = value}
|
||||||
|
|
||||||
static int snd_ali5451_spdif_info(struct snd_kcontrol *kcontrol,
|
#define snd_ali5451_spdif_info snd_ctl_boolean_mono_info
|
||||||
struct snd_ctl_elem_info *uinfo)
|
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 1;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int snd_ali5451_spdif_get(struct snd_kcontrol *kcontrol,
|
static int snd_ali5451_spdif_get(struct snd_kcontrol *kcontrol,
|
||||||
struct snd_ctl_elem_value *ucontrol)
|
struct snd_ctl_elem_value *ucontrol)
|
||||||
|
|||||||
@@ -728,15 +728,7 @@ static void vortex_Eqlzr_shutdown(vortex_t * vortex)
|
|||||||
/* ALSA interface */
|
/* ALSA interface */
|
||||||
|
|
||||||
/* Control interface */
|
/* Control interface */
|
||||||
static int
|
#define snd_vortex_eqtoggle_info snd_ctl_boolean_mono_info
|
||||||
snd_vortex_eqtoggle_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
|
|
||||||
{
|
|
||||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
uinfo->count = 1;
|
|
||||||
uinfo->value.integer.min = 0;
|
|
||||||
uinfo->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
snd_vortex_eqtoggle_get(struct snd_kcontrol *kcontrol,
|
snd_vortex_eqtoggle_get(struct snd_kcontrol *kcontrol,
|
||||||
|
|||||||
+1
-9
@@ -569,15 +569,7 @@ static struct snd_kcontrol_new snd_bt87x_capture_volume = {
|
|||||||
.put = snd_bt87x_capture_volume_put,
|
.put = snd_bt87x_capture_volume_put,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int snd_bt87x_capture_boost_info(struct snd_kcontrol *kcontrol,
|
#define snd_bt87x_capture_boost_info snd_ctl_boolean_mono_info
|
||||||
struct snd_ctl_elem_info *info)
|
|
||||||
{
|
|
||||||
info->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
|
|
||||||
info->count = 1;
|
|
||||||
info->value.integer.min = 0;
|
|
||||||
info->value.integer.max = 1;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int snd_bt87x_capture_boost_get(struct snd_kcontrol *kcontrol,
|
static int snd_bt87x_capture_boost_get(struct snd_kcontrol *kcontrol,
|
||||||
struct snd_ctl_elem_value *value)
|
struct snd_ctl_elem_value *value)
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user