mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-09 13:30:03 -05:00
pcm: return negative value in case of error
Signed-off-by: renu tyagi <renu.tyagi@samsung.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
5a0b992548
commit
f78ba070b3
1 changed files with 1 additions and 0 deletions
|
|
@ -2145,6 +2145,7 @@ static int snd_pcm_open_conf(snd_pcm_t **pcmp, const char *name,
|
||||||
if (err >= 0) {
|
if (err >= 0) {
|
||||||
if (snd_config_get_type(type_conf) != SND_CONFIG_TYPE_COMPOUND) {
|
if (snd_config_get_type(type_conf) != SND_CONFIG_TYPE_COMPOUND) {
|
||||||
SNDERR("Invalid type for PCM type %s definition", str);
|
SNDERR("Invalid type for PCM type %s definition", str);
|
||||||
|
err = -EINVAL;
|
||||||
goto _err;
|
goto _err;
|
||||||
}
|
}
|
||||||
snd_config_for_each(i, next, type_conf) {
|
snd_config_for_each(i, next, type_conf) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue