From 579a8a96ea3ca756d30a02015ab62a36330c6f38 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Sat, 16 Jan 2010 17:45:56 +0100
Subject: output/alsa: pass sample_format to get_bitformat()

---
 src/output/alsa_plugin.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/output/alsa_plugin.c b/src/output/alsa_plugin.c
index ff591230c..86c70f19d 100644
--- a/src/output/alsa_plugin.c
+++ b/src/output/alsa_plugin.c
@@ -183,9 +183,9 @@ alsa_test_default_device(void)
 }
 
 static snd_pcm_format_t
-get_bitformat(const struct audio_format *af)
+get_bitformat(enum sample_format sample_format)
 {
-	switch (af->format) {
+	switch (sample_format) {
 	case SAMPLE_FORMAT_S8:
 		return SND_PCM_FORMAT_S8;
 
@@ -224,7 +224,7 @@ static int
 alsa_output_setup_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *hwparams,
 			 struct audio_format *audio_format)
 {
-	snd_pcm_format_t bitformat = get_bitformat(audio_format);
+	snd_pcm_format_t bitformat = get_bitformat(audio_format->format);
 	if (bitformat == SND_PCM_FORMAT_UNKNOWN) {
 		/* sample format is not supported by this plugin -
 		   fall back to 16 bit samples */
-- 
cgit v1.2.3