aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/alsa_output_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-10-08 14:50:44 +0200
committerMax Kellermann <max@duempel.org>2011-10-08 14:50:44 +0200
commitb43bf4dd741f81239c7ae0c99a048ef0be6286ed (patch)
tree3cb219018da3e22bab9b69c1bb6f94bb312b0329 /src/output/alsa_output_plugin.c
parent14424281a0e1407ca04ef05a50541a4178f70e91 (diff)
parent5ed0eb51d16507dcca9764771af8f05f08a078f9 (diff)
downloadmpd-b43bf4dd741f81239c7ae0c99a048ef0be6286ed.tar.gz
mpd-b43bf4dd741f81239c7ae0c99a048ef0be6286ed.tar.xz
mpd-b43bf4dd741f81239c7ae0c99a048ef0be6286ed.zip
Merge branch 'v0.16.x'
Diffstat (limited to 'src/output/alsa_output_plugin.c')
-rw-r--r--src/output/alsa_output_plugin.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/output/alsa_output_plugin.c b/src/output/alsa_output_plugin.c
index 41293272d..af6d1b184 100644
--- a/src/output/alsa_output_plugin.c
+++ b/src/output/alsa_output_plugin.c
@@ -193,6 +193,9 @@ static snd_pcm_format_t
get_bitformat(enum sample_format sample_format)
{
switch (sample_format) {
+ case SAMPLE_FORMAT_UNDEFINED:
+ return SND_PCM_FORMAT_UNKNOWN;
+
case SAMPLE_FORMAT_S8:
return SND_PCM_FORMAT_S8;
@@ -209,10 +212,10 @@ get_bitformat(enum sample_format sample_format)
case SAMPLE_FORMAT_S32:
return SND_PCM_FORMAT_S32;
-
- default:
- return SND_PCM_FORMAT_UNKNOWN;
}
+
+ assert(false);
+ return SND_PCM_FORMAT_UNKNOWN;
}
static snd_pcm_format_t