summaryrefslogtreecommitdiff
path: root/firmware/drivers/audio/dummy_codec.c
diff options
context:
space:
mode:
authorAndrew Ryabinin <ryabinin.a.a@gmail.com>2011-11-03 11:53:02 +0000
committerAndrew Ryabinin <ryabinin.a.a@gmail.com>2011-11-03 11:53:02 +0000
commit2164aab9020bb37ec71a24461c4c42bc4e2eb2d3 (patch)
treedbf138f0f8d84789b335e6059508176a71fe0cde /firmware/drivers/audio/dummy_codec.c
parent50211e20548bf3a5f7781489269a297cad58713e (diff)
downloadrockbox-2164aab9020bb37ec71a24461c4c42bc4e2eb2d3.zip
rockbox-2164aab9020bb37ec71a24461c4c42bc4e2eb2d3.tar.gz
rockbox-2164aab9020bb37ec71a24461c4c42bc4e2eb2d3.tar.bz2
rockbox-2164aab9020bb37ec71a24461c4c42bc4e2eb2d3.tar.xz
Added HiFiMAN HM-801 target. FS#12355. This also renames tda1543.{ch} used by HM-60x to dummy_codec.{ch} as it works for PCM1704 used by HM-801.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30891 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/audio/dummy_codec.c')
-rw-r--r--firmware/drivers/audio/dummy_codec.c46
1 files changed, 46 insertions, 0 deletions
diff --git a/firmware/drivers/audio/dummy_codec.c b/firmware/drivers/audio/dummy_codec.c
new file mode 100644
index 0000000..ca51d95
--- /dev/null
+++ b/firmware/drivers/audio/dummy_codec.c
@@ -0,0 +1,46 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ *
+ * Copyright (c) 2011 Andrew Ryabinin
+ *
+ * This program 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.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ****************************************************************************/
+
+#include "config.h"
+#include "audio.h"
+#include "audiohw.h"
+
+const struct sound_settings_info audiohw_settings[] = {
+ [SOUND_VOLUME] = {"dB", 0, 1, -1, 0, 0},
+ /* HAVE_SW_TONE_CONTROLS */
+ [SOUND_BASS] = {"dB", 0, 1, -24, 24, 0},
+ [SOUND_TREBLE] = {"dB", 0, 1, -24, 24, 0},
+ [SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0},
+ [SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0},
+ [SOUND_STEREO_WIDTH] = {"%", 0, 5, 0, 250, 100},
+};
+
+void audiohw_preinit(void) { }
+
+void audiohw_postinit(void) { }
+
+void audiohw_close(void) { }
+
+void audiohw_set_frequency(int fsel)
+{
+ (void)fsel;
+}