diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-05-18 20:43:35 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-05-18 20:43:35 +0200 |
commit | f93bbe083cb785140c6df6e8ebaf882ccf1a5bed (patch) | |
tree | e26cbca68da7ffffd9cd7e67458e8c9ec1f840d9 | |
parent | 5c05a42d8a008439285fec9b3b082ed30006f951 (diff) | |
download | hardware_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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |