alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] snd-usb-audio: Skip un-parseable mixer units instead of erroring
@ 2012-04-14 16:19 Mark Hills
  2012-04-14 16:19 ` [PATCH 2/2] snd-usb-audio: Replace mixer for Electrix Ebox-44 Mark Hills
  2012-04-14 19:24 ` [PATCH 1/2] snd-usb-audio: Skip un-parseable mixer units instead of erroring Takashi Iwai
  0 siblings, 2 replies; 6+ messages in thread
From: Mark Hills @ 2012-04-14 16:19 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

Some interfaces reference endpoints which do not exists. To
accomodate these, do not fail completely, but skip over them.

This allows the Electrix Ebox-44 with earlier firmware to be
detected and used for audio.

Signed-off-by: Mark Hills <mark@pogo.org.uk>
---
 sound/usb/mixer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c
index ab23869..c374c72 100644
--- a/sound/usb/mixer.c
+++ b/sound/usb/mixer.c
@@ -1388,7 +1388,7 @@ static int parse_audio_mixer_unit(struct mixer_build *state, int unitid, void *r
 	for (pin = 0; pin < input_pins; pin++) {
 		err = parse_audio_unit(state, desc->baSourceID[pin]);
 		if (err < 0)
-			return err;
+			continue;
 		err = check_input_term(state, desc->baSourceID[pin], &iterm);
 		if (err < 0)
 			return err;
-- 
1.7.4.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-04-16  6:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-14 16:19 [PATCH 1/2] snd-usb-audio: Skip un-parseable mixer units instead of erroring Mark Hills
2012-04-14 16:19 ` [PATCH 2/2] snd-usb-audio: Replace mixer for Electrix Ebox-44 Mark Hills
2012-04-14 19:24 ` [PATCH 1/2] snd-usb-audio: Skip un-parseable mixer units instead of erroring Takashi Iwai
2012-04-14 20:38   ` Mark Hills
2012-04-15 13:41     ` Takashi Iwai
2012-04-16  6:30   ` Jassi Brar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).