diff options
Diffstat (limited to 'firmware/export/spdif.h')
-rw-r--r-- | firmware/export/spdif.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/firmware/export/spdif.h b/firmware/export/spdif.h new file mode 100644 index 0000000000..f4712fb88f --- /dev/null +++ b/firmware/export/spdif.h | |||
@@ -0,0 +1,36 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2006 by Michal Sevakis | ||
11 | * Based on the work of Thom Johansen | ||
12 | * | ||
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. | ||
15 | * | ||
16 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
17 | * KIND, either express or implied. | ||
18 | * | ||
19 | ****************************************************************************/ | ||
20 | #ifndef SPDIF_H | ||
21 | #define SPDIF_H | ||
22 | |||
23 | /* Initialize the S/PDIF driver */ | ||
24 | void spdif_init(void); | ||
25 | /* Return the S/PDIF frequency in herz - unrounded */ | ||
26 | unsigned long spdif_measure_frequency(void); | ||
27 | #ifdef HAVE_SPDIF_OUT | ||
28 | /* Set the S/PDIF audio feed - Use AUDIO_SRC_* values - | ||
29 | will be off if not powered or !on */ | ||
30 | void spdif_set_output_source(int source, bool on); | ||
31 | /* Return the last set S/PDIF audio source - literally the last value passed | ||
32 | to spdif_set_monitor regardless of power state */ | ||
33 | int spdif_get_output_source(bool *src_on); | ||
34 | #endif /* HAVE_SPDIF_OUT */ | ||
35 | |||
36 | #endif /* SPDIF_H */ | ||