1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
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 ****************************************************************************/
23 #ifdef HAVE_SPDIF_POWER
24 #define IF_SPDIF_POWER_(...) __VA_ARGS__
26 #define IF_SPDIF_POWER_(...)
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);
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 */