diff options
author | Andrew Ryabinin <ryabinin.a.a@gmail.com> | 2011-11-03 11:53:02 +0000 |
---|---|---|
committer | Andrew Ryabinin <ryabinin.a.a@gmail.com> | 2011-11-03 11:53:02 +0000 |
commit | 2164aab9020bb37ec71a24461c4c42bc4e2eb2d3 (patch) | |
tree | dbf138f0f8d84789b335e6059508176a71fe0cde /firmware/drivers/audio/dummy_codec.c | |
parent | 50211e20548bf3a5f7781489269a297cad58713e (diff) | |
download | rockbox-2164aab9020bb37ec71a24461c4c42bc4e2eb2d3.tar.gz rockbox-2164aab9020bb37ec71a24461c4c42bc4e2eb2d3.zip |
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.c | 46 |
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 0000000000..ca51d95265 --- /dev/null +++ b/firmware/drivers/audio/dummy_codec.c | |||
@@ -0,0 +1,46 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * | ||
11 | * Copyright (c) 2011 Andrew Ryabinin | ||
12 | * | ||
13 | * This program is free software; you can redistribute it and/or | ||
14 | * modify it under the terms of the GNU General Public License | ||
15 | * as published by the Free Software Foundation; either version 2 | ||
16 | * of the License, or (at your option) any later version. | ||
17 | * | ||
18 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
19 | * KIND, either express or implied. | ||
20 | * | ||
21 | ****************************************************************************/ | ||
22 | |||
23 | #include "config.h" | ||
24 | #include "audio.h" | ||
25 | #include "audiohw.h" | ||
26 | |||
27 | const struct sound_settings_info audiohw_settings[] = { | ||
28 | [SOUND_VOLUME] = {"dB", 0, 1, -1, 0, 0}, | ||
29 | /* HAVE_SW_TONE_CONTROLS */ | ||
30 | [SOUND_BASS] = {"dB", 0, 1, -24, 24, 0}, | ||
31 | [SOUND_TREBLE] = {"dB", 0, 1, -24, 24, 0}, | ||
32 | [SOUND_BALANCE] = {"%", 0, 1,-100, 100, 0}, | ||
33 | [SOUND_CHANNELS] = {"", 0, 1, 0, 5, 0}, | ||
34 | [SOUND_STEREO_WIDTH] = {"%", 0, 5, 0, 250, 100}, | ||
35 | }; | ||
36 | |||
37 | void audiohw_preinit(void) { } | ||
38 | |||
39 | void audiohw_postinit(void) { } | ||
40 | |||
41 | void audiohw_close(void) { } | ||
42 | |||
43 | void audiohw_set_frequency(int fsel) | ||
44 | { | ||
45 | (void)fsel; | ||
46 | } | ||