/* * audio.h * * Copyright (C) 2000 Ralph Metzler * & Marcus Metzler * for convergence integrated media GmbH * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Lesser Public License * as published by the Free Software Foundation; either version 2.1 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #ifndef _DVBAUDIO_H_ #define _DVBAUDIO_H_ #ifdef __KERNEL__ #include #else #include #endif typedef enum { AUDIO_SOURCE_DEMUX, /* Select the demux as the main source */ AUDIO_SOURCE_MEMORY /* Select internal memory as the main source */ } audio_stream_source_t; typedef enum { AUDIO_STOPPED, /* Device is stopped */ AUDIO_PLAYING, /* Device is currently playing */ AUDIO_PAUSED /* Device is paused */ } audio_play_state_t; typedef enum { AUDIO_STEREO, AUDIO_MONO_LEFT, AUDIO_MONO_RIGHT, AUDIO_MONO, AUDIO_STEREO_SWAPPED } audio_channel_select_t; typedef struct audio_mixer { unsigned int volume_left; unsigned int volume_right; // what else do we need? bass, pass-through, ... } audio_mixer_t; typedef struct audio_status { int AV_sync_state; /* sync audio and video? */ int mute_state; /* audio is muted */ audio_play_state_t play_state; /* current playback state */ audio_stream_source_t stream_source; /* current stream source */ audio_channel_select_t channel_select; /* currently selected channel */ int bypass_mode; /* pass on audio data to */ audio_mixer_t mixer_state; /* current mixer state */ } audio_status_t; /* separate decoder hardware */ typedef struct audio_karaoke{ /* if Vocal1 or Vocal2 are non-zero, they get mixed */ int vocal1; /* into left and right t at 70% each */ int vocal2; /* if both, Vocal1 and Vocal2 are non-zero, Vocal1 gets*/ int melody; /* mixed into the left channel and */ /* Vocal2 into the right channel at 100% each. */ /* if Melody is non-zero, the melody channel gets mixed*/ } audio_karaoke_t; /* into left and right */ typedef uint16_t audio_attributes_t; /* bits: descr. */ /* 15-13 audio coding mode (0=ac3, 2=mpeg1, 3=mpeg2ext, 4=LPCM, 6=DTS, */ /* 12 multichannel extension */ /* 11-10 audio type (0=not spec, 1=language included) */ /* 9- 8 audio application mode (0=not spec, 1=karaoke, 2=surround) */ /* 7- 6 Quantization / DRC (mpeg audio: 1=DRC exists)(lpcm: 0=16bit, */ /* 5- 4 Sample frequency fs (0=48kHz, 1=96kHz) */ /* 2- 0 number of audio channels (n+1 channels) */ /* for GET_CAPABILITIES and SET_FORMAT, the latter should only set one bit */ #define AUDIO_CAP_DTS 1 #define AUDIO_CAP_LPCM 2 #define AUDIO_CAP_MP1 4 #define AUDIO_CAP_MP2 8 #define AUDIO_CAP_MP3 16 #define AUDIO_CAP_AAC 32 #define AUDIO_CAP_OGG 64 #define AUDIO_CAP_SDDS 128 #define AUDIO_CAP_AC3 256 #define AUDIO_STOP _IO('o', 1) #define AUDIO_PLAY _IO('o', 2) #define AUDIO_PAUSE _IO('o', 3) #define AUDIO_CONTINUE _IO('o', 4) #define AUDIO_SELECT_SOURCE _IO('o', 5) #define AUDIO_SET_MUTE _IO('o', 6) #define AUDIO_SET_AV_SYNC _IO('o', 7) #define AUDIO_SET_BYPASS_MODE _IO('o', 8) #define AUDIO_CHANNEL_SELECT _IO('o', 9) #define AUDIO_GET_STATUS _IOR('o', 10, audio_status_t) #define AUDIO_GET_CAPABILITIES _IOR('o', 11, unsigned int) #define AUDIO_CLEAR_BUFFER _IO('o', 12) #define AUDIO_SET_ID _IO('o', 13) #define AUDIO_SET_MIXER _IOW('o', 14, audio_mixer_t) #define AUDIO_SET_STREAMTYPE _IO('o', 15) #define AUDIO_SET_EXT_ID _IO('o', 16) #define AUDIO_SET_ATTRIBUTES _IOW('o', 17, audio_attributes_t) #define AUDIO_SET_KARAOKE _IOW('o', 18, audio_karaoke_t) /** * AUDIO_GET_PTS * * Read the 33 bit presentation time stamp as defined * in ITU T-REC-H.222.0 / ISO/IEC 13818-1. * * The PTS should belong to the currently played * frame if possible, but may also be a value close to it * like the PTS of the last decoded frame or the last PTS * extracted by the PES parser. */ #define AUDIO_GET_PTS _IOR('o', 19, __u64) #define AUDIO_BILINGUAL_CHANNEL_SELECT _IO('o', 20) #endif /* _DVBAUDIO_H_ */ ns'>+18 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@928 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-31ported r839 from volker_devmichael5-9/+88 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@927 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-31ported r838 from volker_devmichael1-18/+34 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@926 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-31ported r837 from volker_devmichael1-3/+18 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@925 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-31ported r835 from volker_devmichael1-6/+35 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@924 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-31ported r834 from volker_devmichael1-3/+26 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@923 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-31r828: 'additional verbose and info messages' ported from volker_devmichael2-3/+12 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@922 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-31includes for umask() ported from volker_dev (r827)michael1-0/+2 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@921 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-31handle config files with <CR><LF> (DOS line ending) ported from volker_dev ↵michael1-2/+6 (r826) git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@920 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-31netinfo plugin ported from volker_dev (r823)michael4-2/+255 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@919 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-31format characters in qprintf() with optional length (r821) ported from ↵michael1-9/+63 volker_dev git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@918 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-31short circuit evaluation ported from volker_dev (r820,r822,r824)michael1-8/+52 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@917 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-31Fixes a buffer underrun error and possible array index issues by mcarey@...michael1-6/+13 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@916 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-27ported r819 from volker_devmichael1-17/+21 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@915 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-27ported and modified r818 from volker_devmichael3-11/+151 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@914 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-27port r817 from volker_devmichael3-24/+944 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@913 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-27ported (modified) r815 from voker_devmichael1-3/+23 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@912 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-24cleanup & cosmeticsmichael5-22/+31 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@911 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-24driver for the PHAnderson serial-to-HD44780 adapter boards by Nicolas Weillmichael5-5/+444 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@910 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-24w1retap plugin by Jonathan Hudsonmichael7-0/+298 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@909 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-24Enables/controls the backlight on the Pertelian LCD device by Jonathan Hudsonmichael1-10/+13 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@908 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-23hddtemp plugin from Scott Bronsonmichael7-0/+343 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@907 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-23keypad bug fixedmichael1-1/+1 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@906 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-23patch from a.nielsen: inverted parport signals, support GPI on HD44780michael2-24/+89 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@905 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-12-23indent runmichael1-4/+4 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@904 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-11-25fix lcd4linux driver for multible onboard controllersmichux1-4/+4 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@903 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-11-23fix automake - check for libftdimichux4-9/+173 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@902 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-11-22update button_exec plugin - fix segfaultmichux1-3/+2 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@901 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-11-22update fifo plugin - untestedmichux1-1/+1 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@900 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-10-07Replace write to external variable usb_debug by calling usb_set_debug().bwalle7-16/+7 This fixes build on openSUSE Factory. git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@899 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-10-06adding GPI to picoLCD for reading button events by Igor Mammedov ↵michael1-1/+22 <niallain@gmail.com> git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@898 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-10-06properties fixedmichael11-3290/+2675 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@897 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-10-05Rebuild auto-generated autoconf stuff due to last change in drivers.m4.bwalle3-2657/+3297 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@896 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-10-05Add 'ULA200' driver when --with-drivers=all is specifiedbwalle1-0/+1 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@895 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-09-14strftime_tz patch from Bernhard Wallemichael1-0/+11 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@894 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-09-08strftime_tz() plugin by Bernhard Wallemichael1-0/+25 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@893 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-09-03ULA200 driver by Bernhard Wallemichael7-2/+825 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@892 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-09-03indentmichael1-4/+4 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@891 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-08-31Increased the maximum bps to 230400, if defined in <termios.h>.sonic741-2/+7 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@890 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-08-27git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@889 ↵sonic741-18/+11 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-08-27D4D updates by Svenmichael1-38/+60 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@888 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-08-03driver for 4D Systems serial displays by Sven Killigmichael9-45/+846 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@887 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-08-03signed/unsigned mismatchmichael1-3/+3 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@886 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-07-26added command functionsmichux1-2/+130 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@885 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-07-15added IRLCD driver by Jean-Philippe Civademichael10-5/+467 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@884 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2008-07-15'autoreconf -f -i' run & config.rpath addedmichael8-370/+1617 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@883 3ae390bd-cb1e-0410-b409-cd5a39f66f1f