blob: 7277b46b425bb1aa9eb8bf6f8dc4d721ece4c8d0 [file] [log] [blame]
Linus Nielsen Feltzing331c7d92003-05-03 02:40:09 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2003 Linus Nielsen Feltzing
11 *
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000012 * 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.
Linus Nielsen Feltzing331c7d92003-05-03 02:40:09 +000016 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21#ifndef RADIO_H
22#define RADIO_H
23
Michael Sevakis4fc717a2006-08-28 22:38:41 +000024#ifndef FMRADIO_H
25#include "fmradio.h"
26#endif
Anton Oleynikovc94557e2005-11-19 19:23:44 +000027
Jens Arnoldc6522182007-02-18 08:46:12 +000028#if CONFIG_TUNER
Hristo Kovachev009853f2006-04-02 12:23:08 +000029void radio_load_presets(char *filename);
Jörg Hohensohn8f8fbac2004-10-15 21:41:46 +000030void radio_init(void);
Jonathan Gordon91cb68a2007-03-01 11:14:46 +000031int radio_screen(void);
Michael Sevakis4fc717a2006-08-28 22:38:41 +000032void radio_start(void);
33void radio_pause(void);
Linus Nielsen Feltzingaf2b7ad2003-05-09 00:14:59 +000034void radio_stop(void);
Linus Nielsen Feltzingef8fd8e2003-12-19 01:24:02 +000035bool radio_hardware_present(void);
Michael Sevakis0f175322007-02-08 10:36:49 +000036bool in_radio_screen(void);
Jonathan Gordon2816dc92007-02-27 09:06:30 +000037/* callbacks for the radio settings */
38void set_radio_region(int region);
39void toggle_mono_mode(bool mono);
Linus Nielsen Feltzingc5dacdc2003-05-04 02:23:18 +000040
Hristo Kovachevf709ad72006-04-03 10:06:39 +000041#define MAX_FMPRESET_LEN 27
42
Linus Nielsen Feltzingc5dacdc2003-05-04 02:23:18 +000043struct fmstation
44{
45 int frequency; /* In Hz */
Hristo Kovachevf709ad72006-04-03 10:06:39 +000046 char name[MAX_FMPRESET_LEN+1];
Linus Nielsen Feltzingc5dacdc2003-05-04 02:23:18 +000047};
48
Michael Sevakis7d759f62007-07-14 11:20:31 +000049#endif /* CONFIG_TUNER */
Dominik Riebelinge66b2ec2006-10-05 12:40:13 +000050
Michael Sevakis7d759f62007-07-14 11:20:31 +000051#endif /* RADIO_H */