Add a note about Rockbox not running on Sansas v2 (FS#8477 by Marc Guay).
[Rockbox.git] / firmware / export / spdif.h
blob4179c7873fb61689666c5477de1e7639c27873ea
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006 by Michal Sevakis
11 * Based on the work of Thom Johansen
13 * All files in this archive are subject to the GNU General Public License.
14 * See the file COPYING in the source tree root for full license agreement.
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
19 ****************************************************************************/
20 #ifndef SPDIF_H
21 #define SPDIF_H
23 #ifdef HAVE_SPDIF_POWER
24 #define IF_SPDIF_POWER_(...) __VA_ARGS__
25 #else
26 #define IF_SPDIF_POWER_(...)
27 #endif
29 /* Initialize the S/PDIF driver */
30 void spdif_init(void);
31 /* Return the S/PDIF frequency in herz - unrounded */
32 unsigned long spdif_measure_frequency(void);
33 #ifdef HAVE_SPDIF_OUT
34 /* Set the S/PDIF audio feed - Use AUDIO_SRC_* values -
35 will be off if not powered or !on */
36 void spdif_set_output_source(int source IF_SPDIF_POWER_(, bool on));
37 /* Return the last set S/PDIF audio source - literally the last value passed
38 to spdif_set_monitor regardless of power state */
39 int spdif_get_output_source(bool *src_on);
40 #endif /* HAVE_SPDIF_OUT */
42 #endif /* SPDIF_H */