mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
pcm: route: Don't handle no matching chmap as a serious error
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>
This commit is contained in:
parent
cbcc78031b
commit
5b72e3d530
1 changed files with 1 additions and 3 deletions
|
|
@ -940,10 +940,8 @@ static int find_matching_chmap(snd_pcm_t *spcm, snd_pcm_chmap_t *tt_chmap,
|
||||||
|
|
||||||
snd_pcm_free_chmaps(chmaps);
|
snd_pcm_free_chmaps(chmaps);
|
||||||
|
|
||||||
if (*found_chmap == NULL) {
|
if (*found_chmap == NULL)
|
||||||
SNDERR("Found no matching channel map");
|
SNDERR("Found no matching channel map");
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue