* [PATCH] ALSA: usb-audio: add MAYA44 USB+ mixer control names [not found] ` <CAKfvqMWBgeJb_sMJdmb0cYcq2qD8UocfEyGY1B-BKERjAXpY7A@mail.gmail.com> @ 2015-06-03 9:36 ` Clemens Ladisch 2015-06-03 12:02 ` Takashi Iwai 2015-06-03 9:36 ` [PATCH] ALSA: usb-audio: fix missing input volume controls in MAYA44 USB(+) Clemens Ladisch 1 sibling, 1 reply; 4+ messages in thread From: Clemens Ladisch @ 2015-06-03 9:36 UTC (permalink / raw) To: Takashi Iwai; +Cc: alsa-devel, nightmixes Add mixer control names for the ESI Maya44 USB+ (which appears to be identical width the AudioTrak Maya44 USB). Reported-by: nightmixes <nightmixes@gmail.com> Signed-off-by: Clemens Ladisch <clemens@ladisch.de> --- a/sound/usb/mixer_maps.c +++ b/sound/usb/mixer_maps.c @@ -437,6 +437,11 @@ static struct usbmix_ctl_map usbmix_ctl_ .map = ebox44_map, }, { + /* MAYA44 USB+ */ + .id = USB_ID(0x2573, 0x0008), + .map = maya44_map, + }, + { /* KEF X300A */ .id = USB_ID(0x27ac, 0x1000), .map = scms_usb3318_map, ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ALSA: usb-audio: add MAYA44 USB+ mixer control names 2015-06-03 9:36 ` [PATCH] ALSA: usb-audio: add MAYA44 USB+ mixer control names Clemens Ladisch @ 2015-06-03 12:02 ` Takashi Iwai 0 siblings, 0 replies; 4+ messages in thread From: Takashi Iwai @ 2015-06-03 12:02 UTC (permalink / raw) To: Clemens Ladisch; +Cc: alsa-devel, nightmixes At Wed, 03 Jun 2015 11:36:42 +0200, Clemens Ladisch wrote: > > Add mixer control names for the ESI Maya44 USB+ (which appears to be > identical width the AudioTrak Maya44 USB). > > Reported-by: nightmixes <nightmixes@gmail.com> > Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Applied, thanks. Takashi > --- a/sound/usb/mixer_maps.c > +++ b/sound/usb/mixer_maps.c > @@ -437,6 +437,11 @@ static struct usbmix_ctl_map usbmix_ctl_ > .map = ebox44_map, > }, > { > + /* MAYA44 USB+ */ > + .id = USB_ID(0x2573, 0x0008), > + .map = maya44_map, > + }, > + { > /* KEF X300A */ > .id = USB_ID(0x27ac, 0x1000), > .map = scms_usb3318_map, > ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] ALSA: usb-audio: fix missing input volume controls in MAYA44 USB(+) [not found] ` <CAKfvqMWBgeJb_sMJdmb0cYcq2qD8UocfEyGY1B-BKERjAXpY7A@mail.gmail.com> 2015-06-03 9:36 ` [PATCH] ALSA: usb-audio: add MAYA44 USB+ mixer control names Clemens Ladisch @ 2015-06-03 9:36 ` Clemens Ladisch 2015-06-03 12:02 ` Takashi Iwai 1 sibling, 1 reply; 4+ messages in thread From: Clemens Ladisch @ 2015-06-03 9:36 UTC (permalink / raw) To: Takashi Iwai; +Cc: alsa-devel, nightmixes The driver worked around an error in the MAYA44 USB(+)'s mixer unit descriptor by aborting before parsing the missing field. However, aborting parsing too early prevented parsing of the other units connected to this unit, so the capture mixer controls would be missing. Fix this by moving the check for this descriptor error after the parsing of the unit's input pins. Reported-by: nightmixes <nightmixes@gmail.com> Tested-by: nightmixes <nightmixes@gmail.com> Signed-off-by: Clemens Ladisch <clemens@ladisch.de> --- a/sound/usb/mixer.c +++ b/sound/usb/mixer.c @@ -1583,18 +1583,15 @@ static int parse_audio_mixer_unit(struct unitid); return -EINVAL; } - /* no bmControls field (e.g. Maya44) -> ignore */ - if (desc->bLength <= 10 + input_pins) { - usb_audio_dbg(state->chip, "MU %d has no bmControls field\n", - unitid); - return 0; - } num_ins = 0; ich = 0; for (pin = 0; pin < input_pins; pin++) { err = parse_audio_unit(state, desc->baSourceID[pin]); if (err < 0) + continue; + /* no bmControls field (e.g. Maya44) -> ignore */ + if (desc->bLength <= 10 + input_pins) continue; err = check_input_term(state, desc->baSourceID[pin], &iterm); if (err < 0) ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ALSA: usb-audio: fix missing input volume controls in MAYA44 USB(+) 2015-06-03 9:36 ` [PATCH] ALSA: usb-audio: fix missing input volume controls in MAYA44 USB(+) Clemens Ladisch @ 2015-06-03 12:02 ` Takashi Iwai 0 siblings, 0 replies; 4+ messages in thread From: Takashi Iwai @ 2015-06-03 12:02 UTC (permalink / raw) To: Clemens Ladisch; +Cc: alsa-devel, nightmixes At Wed, 03 Jun 2015 11:36:51 +0200, Clemens Ladisch wrote: > > The driver worked around an error in the MAYA44 USB(+)'s mixer unit > descriptor by aborting before parsing the missing field. However, > aborting parsing too early prevented parsing of the other units > connected to this unit, so the capture mixer controls would be missing. > > Fix this by moving the check for this descriptor error after the parsing > of the unit's input pins. > > Reported-by: nightmixes <nightmixes@gmail.com> > Tested-by: nightmixes <nightmixes@gmail.com> > Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Applied, thanks. Takashi > > --- a/sound/usb/mixer.c > +++ b/sound/usb/mixer.c > @@ -1583,18 +1583,15 @@ static int parse_audio_mixer_unit(struct > unitid); > return -EINVAL; > } > - /* no bmControls field (e.g. Maya44) -> ignore */ > - if (desc->bLength <= 10 + input_pins) { > - usb_audio_dbg(state->chip, "MU %d has no bmControls field\n", > - unitid); > - return 0; > - } > > num_ins = 0; > ich = 0; > for (pin = 0; pin < input_pins; pin++) { > err = parse_audio_unit(state, desc->baSourceID[pin]); > if (err < 0) > + continue; > + /* no bmControls field (e.g. Maya44) -> ignore */ > + if (desc->bLength <= 10 + input_pins) > continue; > err = check_input_term(state, desc->baSourceID[pin], &iterm); > if (err < 0) > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-03 12:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAKfvqMUuD4ywuKktwko4DxgKpX1+vTCYHkngPXxKBjHNnmt_iw@mail.gmail.com>
[not found] ` <5552F162.8000309@googlemail.com>
[not found] ` <CAKfvqMVEWGDUUh4e0i9fEsbhBQyYPuzqs3xAQKA_FuZYtPuigg@mail.gmail.com>
[not found] ` <CAKfvqMVQHt157QmE5Fx=NV_U0i_JdH6UKtNXfcGaNvJNEW9M4Q@mail.gmail.com>
[not found] ` <CAKfvqMW9P-_fzx86c=bM_cD0sd93hsnaLuGwWRgKmPpEFLP7Ww@mail.gmail.com>
[not found] ` <CAKfvqMUJ+JDJoSWL5WjLugMoSN3FFbD0AFTJJ2-nW-dsgjLtdg@mail.gmail.com>
[not found] ` <5559AD0A.6060709@googlemail.com>
[not found] ` <CAKfvqMUA=CvfEETYWEESWs7xh3GiDgbjXHaAnx0UkpUxpBn_NA@mail.gmail.com>
[not found] ` <CAKfvqMV0xm0_fGs7=qEmjyE6p4Wf-xO0r3x7BuRbzo15h+pjew@mail.gmail.com>
[not found] ` <555C4A38.7030005@googlemail.com>
[not found] ` <CAKfvqMUPGMiukizZqSN5nY_OR3_ur6FF44GVcGmiQWNTMc8-1A@mail.gmail.com>
[not found] ` <555D840D.1060000@googlemail.com>
[not found] ` <CAKfvqMXWFNK3XvK8A9JY5xFnyQqw4C77D61JZb6xOqT92yDpug@mail.gmail.com>
[not found] ` <CAKfvqMUf7ET5KLAvYXNU2haLyeyBL Wd+3O_O2_O_84HUV+zgkg@mail.gmail.com>
[not found] ` <555EDCB4.8040507@googlemail.com>
[not found] ` <CAKfvqMWBgeJb_sMJdmb0cYcq2qD8UocfEyGY1B-BKERjAXpY7A@mail.gmail.com>
2015-06-03 9:36 ` [PATCH] ALSA: usb-audio: add MAYA44 USB+ mixer control names Clemens Ladisch
2015-06-03 12:02 ` Takashi Iwai
2015-06-03 9:36 ` [PATCH] ALSA: usb-audio: fix missing input volume controls in MAYA44 USB(+) Clemens Ladisch
2015-06-03 12:02 ` Takashi Iwai
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox