summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-05-18 20:43:35 +0200
committerPaul Kocialkowski <contact@paulk.fr>2013-05-18 20:43:35 +0200
commitf93bbe083cb785140c6df6e8ebaf882ccf1a5bed (patch)
treee26cbca68da7ffffd9cd7e67458e8c9ec1f840d9
parent5c05a42d8a008439285fec9b3b082ed30006f951 (diff)
downloadhardware_tinyalsa-audio-f93bbe083cb785140c6df6e8ebaf882ccf1a5bed.zip
hardware_tinyalsa-audio-f93bbe083cb785140c6df6e8ebaf882ccf1a5bed.tar.gz
hardware_tinyalsa-audio-f93bbe083cb785140c6df6e8ebaf882ccf1a5bed.tar.bz2
Mixer: Set the next elements routes when one failed
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rw-r--r--mixer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mixer.c b/mixer.c
index 9608083..e77feb5 100644
--- a/mixer.c
+++ b/mixer.c
@@ -783,17 +783,18 @@ int tinyalsa_mixer_set_route_list(struct tinyalsa_mixer *mixer, struct list_head
rc = tinyalsa_mixer_set_route_ctrl(mixer, mixer_data);
if(rc < 0) {
LOGE("Unable to set control!");
- return -1;
+ goto list_continue;
}
}
} else if(mixer_data->type == MIXER_DATA_TYPE_WRITE) {
rc = tinyalsa_mixer_set_route_write(mixer, mixer_data);
if(rc < 0) {
LOGE("Unable to write!");
- return -1;
+ goto list_continue;
}
}
+list_continue:
if(list->next != NULL)
list = list->next;
else