Commit a HID fix by gevaerts that prevent the HID driver to call usb_drv_send_nonbloc...
[kugel-rb.git] / apps / recorder / radio.h
blob129d1dda09e1ca836956c3147d66b45378400177
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2003 Linus Nielsen Feltzing
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
21 #ifndef RADIO_H
22 #define RADIO_H
24 #ifndef FMRADIO_H
25 #include "fmradio.h"
26 #endif
28 #if CONFIG_TUNER
29 void radio_load_presets(char *filename);
30 void radio_init(void) INIT_ATTR;
31 int radio_screen(void);
32 void radio_start(void);
33 void radio_pause(void);
34 void radio_stop(void);
35 bool radio_hardware_present(void);
36 bool in_radio_screen(void);
37 /* callbacks for the radio settings */
38 void set_radio_region(int region);
39 void toggle_mono_mode(bool mono);
41 #define MAX_FMPRESET_LEN 27
43 struct fmstation
45 int frequency; /* In Hz */
46 char name[MAX_FMPRESET_LEN+1];
49 #endif /* CONFIG_TUNER */
51 #endif /* RADIO_H */