fix %pb when the height isnt given and it is in a viewport with a user font (so the...
[kugel-rb.git] / firmware / export / tea5760.h
blob8fa54dfa787bd583ff9b1c16167f5bec9d734776
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 * Tuner header for the Philips TEA5760
11 * Copyright (C) 2009 Bertrik Sikken
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.
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
21 ****************************************************************************/
23 #ifndef _TEA5760_H_
24 #define _TEA5760_H_
26 #include "config.h"
27 #include "tuner.h"
29 #define HAVE_RADIO_REGION
31 struct tea5760_region_data
33 unsigned char deemphasis; /* 1: 50us, 0: 75us */
34 unsigned char band; /* 0: europe, 1: japan (BL in TEA spec)*/
35 } __attribute__((packed));
37 extern const struct tea5760_region_data tea5760_region_data[TUNER_NUM_REGIONS];
39 struct tea5760_dbg_info
41 unsigned char read_regs[16];
42 unsigned char write_regs[7];
45 int tea5760_set(int setting, int value);
46 int tea5760_get(int setting);
47 void tea5760_init(void);
48 void tea5760_dbg_info(struct tea5760_dbg_info *info);
50 #ifndef CONFIG_TUNER_MULTI
51 #define tuner_set tea5760_set
52 #define tuner_get tea5760_get
53 #endif
55 #endif /* _TEA5760_H_ */