|
@@ -136,21 +136,6 @@ struct usb_mixer_elem_info {
|
|
u8 initialized;
|
|
u8 initialized;
|
|
};
|
|
};
|
|
|
|
|
|
-
|
|
|
|
-enum {
|
|
|
|
- USB_FEATURE_NONE = 0,
|
|
|
|
- USB_FEATURE_MUTE = 1,
|
|
|
|
- USB_FEATURE_VOLUME,
|
|
|
|
- USB_FEATURE_BASS,
|
|
|
|
- USB_FEATURE_MID,
|
|
|
|
- USB_FEATURE_TREBLE,
|
|
|
|
- USB_FEATURE_GEQ,
|
|
|
|
- USB_FEATURE_AGC,
|
|
|
|
- USB_FEATURE_DELAY,
|
|
|
|
- USB_FEATURE_BASSBOOST,
|
|
|
|
- USB_FEATURE_LOUDNESS
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
enum {
|
|
enum {
|
|
USB_MIXER_BOOLEAN,
|
|
USB_MIXER_BOOLEAN,
|
|
USB_MIXER_INV_BOOLEAN,
|
|
USB_MIXER_INV_BOOLEAN,
|
|
@@ -954,7 +939,7 @@ static void build_feature_ctl(struct mixer_build *state, unsigned char *desc,
|
|
|
|
|
|
control++; /* change from zero-based to 1-based value */
|
|
control++; /* change from zero-based to 1-based value */
|
|
|
|
|
|
- if (control == USB_FEATURE_GEQ) {
|
|
|
|
|
|
+ if (control == UAC_GRAPHIC_EQUALIZER_CONTROL) {
|
|
/* FIXME: not supported yet */
|
|
/* FIXME: not supported yet */
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -1001,8 +986,8 @@ static void build_feature_ctl(struct mixer_build *state, unsigned char *desc,
|
|
kctl->id.name, sizeof(kctl->id.name));
|
|
kctl->id.name, sizeof(kctl->id.name));
|
|
|
|
|
|
switch (control) {
|
|
switch (control) {
|
|
- case USB_FEATURE_MUTE:
|
|
|
|
- case USB_FEATURE_VOLUME:
|
|
|
|
|
|
+ case UAC_MUTE_CONTROL:
|
|
|
|
+ case UAC_VOLUME_CONTROL:
|
|
/* determine the control name. the rule is:
|
|
/* determine the control name. the rule is:
|
|
* - if a name id is given in descriptor, use it.
|
|
* - if a name id is given in descriptor, use it.
|
|
* - if the connected input can be determined, then use the name
|
|
* - if the connected input can be determined, then use the name
|
|
@@ -1029,9 +1014,9 @@ static void build_feature_ctl(struct mixer_build *state, unsigned char *desc,
|
|
len = append_ctl_name(kctl, " Playback");
|
|
len = append_ctl_name(kctl, " Playback");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- append_ctl_name(kctl, control == USB_FEATURE_MUTE ?
|
|
|
|
|
|
+ append_ctl_name(kctl, control == UAC_MUTE_CONTROL ?
|
|
" Switch" : " Volume");
|
|
" Switch" : " Volume");
|
|
- if (control == USB_FEATURE_VOLUME) {
|
|
|
|
|
|
+ if (control == UAC_VOLUME_CONTROL) {
|
|
kctl->tlv.c = mixer_vol_tlv;
|
|
kctl->tlv.c = mixer_vol_tlv;
|
|
kctl->vd[0].access |=
|
|
kctl->vd[0].access |=
|
|
SNDRV_CTL_ELEM_ACCESS_TLV_READ |
|
|
SNDRV_CTL_ELEM_ACCESS_TLV_READ |
|
|
@@ -1120,7 +1105,7 @@ static int parse_audio_feature_unit(struct mixer_build *state, int unitid, void
|
|
snd_printk(KERN_INFO
|
|
snd_printk(KERN_INFO
|
|
"usbmixer: master volume quirk for PCM2702 chip\n");
|
|
"usbmixer: master volume quirk for PCM2702 chip\n");
|
|
/* disable non-functional volume control */
|
|
/* disable non-functional volume control */
|
|
- master_bits &= ~(1 << (USB_FEATURE_VOLUME - 1));
|
|
|
|
|
|
+ master_bits &= ~UAC_FU_VOLUME;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
if (channels > 0)
|
|
if (channels > 0)
|