diff options
author | Tanu Kaskinen <tanu.kaskinen@digia.com> | 2011-03-11 13:38:05 +0200 |
---|---|---|
committer | Tanu Kaskinen <tanu.kaskinen@digia.com> | 2011-03-11 13:38:05 +0200 |
commit | 00a05a82729c03e4ec521460f928ef540e302a6f (patch) | |
tree | 5e5bbc1287a4a11c622c0150e21379939aef5517 | |
parent | 983d4c238da96e4ca12283f51ccd0b6bd7005592 (diff) |
alsa-mixer: Add a default case for a switch, so that the compiler won't complain about unhandled cases.
-rw-r--r-- | src/modules/alsa/alsa-mixer.c | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c index 340e0635..9a7e045a 100644 --- a/src/modules/alsa/alsa-mixer.c +++ b/src/modules/alsa/alsa-mixer.c @@ -1243,21 +1243,23 @@ static int check_required(pa_alsa_element *e, snd_mixer_elem_t *me) { if (e->required_any != PA_ALSA_REQUIRED_IGNORE) { switch (e->required_any) { - case PA_ALSA_REQUIRED_VOLUME: - e->path->req_any_present |= (e->volume_use != PA_ALSA_VOLUME_IGNORE); - break; - case PA_ALSA_REQUIRED_SWITCH: - e->path->req_any_present |= (e->switch_use != PA_ALSA_SWITCH_IGNORE); - break; - case PA_ALSA_REQUIRED_ENUMERATION: - e->path->req_any_present |= (e->enumeration_use != PA_ALSA_ENUMERATION_IGNORE); - break; - case PA_ALSA_REQUIRED_ANY: - e->path->req_any_present |= - (e->volume_use != PA_ALSA_VOLUME_IGNORE) || - (e->switch_use != PA_ALSA_SWITCH_IGNORE) || - (e->enumeration_use != PA_ALSA_ENUMERATION_IGNORE); - break; + case PA_ALSA_REQUIRED_VOLUME: + e->path->req_any_present |= (e->volume_use != PA_ALSA_VOLUME_IGNORE); + break; + case PA_ALSA_REQUIRED_SWITCH: + e->path->req_any_present |= (e->switch_use != PA_ALSA_SWITCH_IGNORE); + break; + case PA_ALSA_REQUIRED_ENUMERATION: + e->path->req_any_present |= (e->enumeration_use != PA_ALSA_ENUMERATION_IGNORE); + break; + case PA_ALSA_REQUIRED_ANY: + e->path->req_any_present |= + (e->volume_use != PA_ALSA_VOLUME_IGNORE) || + (e->switch_use != PA_ALSA_SWITCH_IGNORE) || + (e->enumeration_use != PA_ALSA_ENUMERATION_IGNORE); + break; + default: + pa_assert_not_reached(); } } |