diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2011-10-17 10:32:19 +0000 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2011-10-17 10:32:19 +0000 |
commit | 32f763c39a797221a6e850704feb3743bc104d8c (patch) | |
tree | c509c38423f2efb76a13119f92c21e5e82476a42 /firmware/drivers/audio/tda1543.c | |
parent | f0311d3310e84906a6c1afaf941f2f58e2063c30 (diff) | |
download | rockbox-32f763c39a797221a6e850704feb3743bc104d8c.tar.gz rockbox-32f763c39a797221a6e850704feb3743bc104d8c.zip |
Add HiFiMAN HM-60x target(s). FS#12319 by Andrew Ryabinin with some (small) modification by me. This also splits rk27xx lcd driver into lcdif-rk27xx and lcd controller specific part. Some modifications to the pcm driver have been made to allow using codecs in slave mode (as TDA1543 used in hifiman is slave only i2s codec).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30765 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/audio/tda1543.c')
-rw-r--r-- | firmware/drivers/audio/tda1543.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/firmware/drivers/audio/tda1543.c b/firmware/drivers/audio/tda1543.c new file mode 100644 index 0000000000..ca51d95265 --- /dev/null +++ b/firmware/drivers/audio/tda1543.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 | } | ||