All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pcm: route: Don't handle no matching chmap as a serious error
@ 2014-03-18 14:27 Takashi Iwai
  2014-03-18 16:19 ` David Henningsson
  0 siblings, 1 reply; 7+ messages in thread
From: Takashi Iwai @ 2014-03-18 14:27 UTC (permalink / raw)
  To: alsa-devel; +Cc: David Henningsson

When find_matching_chmap() returns an error for the non-matching
chmap, the caller, snd_pcm_route_open(), also returns an error
although it shouldn't be handled as the fatal error.  This results in
the probe error with PulseAudio and it gives no real output in the
end.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 src/pcm/pcm_route.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/pcm/pcm_route.c b/src/pcm/pcm_route.c
index ab17fa78be2c..ac11bdc8adfd 100644
--- a/src/pcm/pcm_route.c
+++ b/src/pcm/pcm_route.c
@@ -940,10 +940,8 @@ static int find_matching_chmap(snd_pcm_t *spcm, snd_pcm_chmap_t *tt_chmap,
 
 	snd_pcm_free_chmaps(chmaps);
 
-	if (*found_chmap == NULL) {
+	if (*found_chmap == NULL)
 		SNDERR("Found no matching channel map");
-		return -EINVAL;
-	}
 	return 0;
 }
 
-- 
1.9.0

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

end of thread, other threads:[~2014-03-19 13:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-18 14:27 [PATCH] pcm: route: Don't handle no matching chmap as a serious error Takashi Iwai
2014-03-18 16:19 ` David Henningsson
2014-03-18 16:34   ` Takashi Iwai
2014-03-18 22:13     ` David Henningsson
2014-03-19  9:57       ` Takashi Iwai
2014-03-19 12:10         ` David Henningsson
2014-03-19 13:17           ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.