summaryrefslogtreecommitdiffstats
path: root/libao2/ao_alsa.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-01-31 04:52:15 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-01-31 04:52:15 +0200
commitccf4d9e96cd7aa8506e6632d2a7352ec89b2b9e3 (patch)
treea5f3a6d636e96f05bb52f0b2407107a7f0c8b443 /libao2/ao_alsa.c
parent03aa64687fc109c5f2346a3c191b70698b333509 (diff)
parent0e77da241da8b911c96a0e22898e84d7f7b74678 (diff)
downloadmpv-ccf4d9e96cd7aa8506e6632d2a7352ec89b2b9e3.tar.bz2
mpv-ccf4d9e96cd7aa8506e6632d2a7352ec89b2b9e3.tar.xz
Merge svn changes up to r28403
Diffstat (limited to 'libao2/ao_alsa.c')
-rw-r--r--libao2/ao_alsa.c42
1 files changed, 28 insertions, 14 deletions
diff --git a/libao2/ao_alsa.c b/libao2/ao_alsa.c
index 1ea974f6c1..194890ff9a 100644
--- a/libao2/ao_alsa.c
+++ b/libao2/ao_alsa.c
@@ -1,16 +1,30 @@
/*
- ao_alsa9/1.x - ALSA-0.9.x-1.x output plugin for MPlayer
-
- (C) Alex Beregszaszi
-
- modified for real alsa-0.9.0-support by Zsolt Barat <joy@streamminister.de>
- additional AC3 passthrough support by Andy Lo A Foe <andy@alsaplayer.org>
- 08/22/2002 iec958-init rewritten and merged with common init, zsolt
- 04/13/2004 merged with ao_alsa1.x, fixes provided by Jindrich Makovicka
- 04/25/2004 printfs converted to mp_msg, Zsolt.
-
- Any bugreports regarding to this driver are welcome.
-*/
+ * ALSA 0.9.x-1.x audio output driver
+ *
+ * Copyright (C) 2004 Alex Beregszaszi
+ *
+ * modified for real ALSA 0.9.0 support by Zsolt Barat <joy@streamminister.de>
+ * additional AC-3 passthrough support by Andy Lo A Foe <andy@alsaplayer.org>
+ * 08/22/2002 iec958-init rewritten and merged with common init, zsolt
+ * 04/13/2004 merged with ao_alsa1.x, fixes provided by Jindrich Makovicka
+ * 04/25/2004 printfs converted to mp_msg, Zsolt.
+ *
+ * This file is part of MPlayer.
+ *
+ * MPlayer is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * MPlayer is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with MPlayer; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
#include <errno.h>
#include <sys/time.h>
@@ -30,9 +44,9 @@
#define ALSA_PCM_NEW_HW_PARAMS_API
#define ALSA_PCM_NEW_SW_PARAMS_API
-#if HAVE_SYS_ASOUNDLIB_H
+#ifdef HAVE_SYS_ASOUNDLIB_H
#include <sys/asoundlib.h>
-#elif HAVE_ALSA_ASOUNDLIB_H
+#elif defined(HAVE_ALSA_ASOUNDLIB_H)
#include <alsa/asoundlib.h>
#else
#error "asoundlib.h is not in sys/ or alsa/ - please bugreport"