]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Revert "pcm: route: Don't handle no matching chmap as a serious error"
authorTakashi Iwai <tiwai@suse.de>
Wed, 19 Mar 2014 09:54:08 +0000 (10:54 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 19 Mar 2014 09:55:52 +0000 (10:55 +0100)
This reverts commit 5b72e3d5305930bffc300aa4f2545ba95992c144.

With the previous fixes, it's no longer needed as a workaround for
regression with PulseAudio.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_route.c

index 599fc3eb48e28d3c35699dcddbd226b2af763a50..49567ea1e3eb338ac88ef31083e329b7b8d5969c 100644 (file)
@@ -943,8 +943,10 @@ 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;
 }