Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/linux/dvb
File: audio.h
/* SPDX-License-Identifier: LGPL-2.1+ WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* audio.h
[2] Fix | Delete
*
[3] Fix | Delete
* Copyright (C) 2000 Ralph Metzler <ralph@convergence.de>
[4] Fix | Delete
* & Marcus Metzler <marcus@convergence.de>
[5] Fix | Delete
* for convergence integrated media GmbH
[6] Fix | Delete
*
[7] Fix | Delete
* This program is free software; you can redistribute it and/or
[8] Fix | Delete
* modify it under the terms of the GNU General Lesser Public License
[9] Fix | Delete
* as published by the Free Software Foundation; either version 2.1
[10] Fix | Delete
* of the License, or (at your option) any later version.
[11] Fix | Delete
*
[12] Fix | Delete
* This program is distributed in the hope that it will be useful,
[13] Fix | Delete
* but WITHOUT ANY WARRANTY; without even the implied warranty of
[14] Fix | Delete
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
[15] Fix | Delete
* GNU General Public License for more details.
[16] Fix | Delete
*
[17] Fix | Delete
* You should have received a copy of the GNU Lesser General Public License
[18] Fix | Delete
* along with this program; if not, write to the Free Software
[19] Fix | Delete
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
[20] Fix | Delete
*
[21] Fix | Delete
*/
[22] Fix | Delete
[23] Fix | Delete
#ifndef _DVBAUDIO_H_
[24] Fix | Delete
#define _DVBAUDIO_H_
[25] Fix | Delete
[26] Fix | Delete
#include <linux/types.h>
[27] Fix | Delete
[28] Fix | Delete
typedef enum {
[29] Fix | Delete
AUDIO_SOURCE_DEMUX, /* Select the demux as the main source */
[30] Fix | Delete
AUDIO_SOURCE_MEMORY /* Select internal memory as the main source */
[31] Fix | Delete
} audio_stream_source_t;
[32] Fix | Delete
[33] Fix | Delete
[34] Fix | Delete
typedef enum {
[35] Fix | Delete
AUDIO_STOPPED, /* Device is stopped */
[36] Fix | Delete
AUDIO_PLAYING, /* Device is currently playing */
[37] Fix | Delete
AUDIO_PAUSED /* Device is paused */
[38] Fix | Delete
} audio_play_state_t;
[39] Fix | Delete
[40] Fix | Delete
[41] Fix | Delete
typedef enum {
[42] Fix | Delete
AUDIO_STEREO,
[43] Fix | Delete
AUDIO_MONO_LEFT,
[44] Fix | Delete
AUDIO_MONO_RIGHT,
[45] Fix | Delete
AUDIO_MONO,
[46] Fix | Delete
AUDIO_STEREO_SWAPPED
[47] Fix | Delete
} audio_channel_select_t;
[48] Fix | Delete
[49] Fix | Delete
[50] Fix | Delete
typedef struct audio_mixer {
[51] Fix | Delete
unsigned int volume_left;
[52] Fix | Delete
unsigned int volume_right;
[53] Fix | Delete
// what else do we need? bass, pass-through, ...
[54] Fix | Delete
} audio_mixer_t;
[55] Fix | Delete
[56] Fix | Delete
[57] Fix | Delete
typedef struct audio_status {
[58] Fix | Delete
int AV_sync_state; /* sync audio and video? */
[59] Fix | Delete
int mute_state; /* audio is muted */
[60] Fix | Delete
audio_play_state_t play_state; /* current playback state */
[61] Fix | Delete
audio_stream_source_t stream_source; /* current stream source */
[62] Fix | Delete
audio_channel_select_t channel_select; /* currently selected channel */
[63] Fix | Delete
int bypass_mode; /* pass on audio data to */
[64] Fix | Delete
audio_mixer_t mixer_state; /* current mixer state */
[65] Fix | Delete
} audio_status_t; /* separate decoder hardware */
[66] Fix | Delete
[67] Fix | Delete
[68] Fix | Delete
typedef
[69] Fix | Delete
struct audio_karaoke { /* if Vocal1 or Vocal2 are non-zero, they get mixed */
[70] Fix | Delete
int vocal1; /* into left and right t at 70% each */
[71] Fix | Delete
int vocal2; /* if both, Vocal1 and Vocal2 are non-zero, Vocal1 gets*/
[72] Fix | Delete
int melody; /* mixed into the left channel and */
[73] Fix | Delete
/* Vocal2 into the right channel at 100% each. */
[74] Fix | Delete
/* if Melody is non-zero, the melody channel gets mixed*/
[75] Fix | Delete
} audio_karaoke_t; /* into left and right */
[76] Fix | Delete
[77] Fix | Delete
[78] Fix | Delete
typedef __u16 audio_attributes_t;
[79] Fix | Delete
/* bits: descr. */
[80] Fix | Delete
/* 15-13 audio coding mode (0=ac3, 2=mpeg1, 3=mpeg2ext, 4=LPCM, 6=DTS, */
[81] Fix | Delete
/* 12 multichannel extension */
[82] Fix | Delete
/* 11-10 audio type (0=not spec, 1=language included) */
[83] Fix | Delete
/* 9- 8 audio application mode (0=not spec, 1=karaoke, 2=surround) */
[84] Fix | Delete
/* 7- 6 Quantization / DRC (mpeg audio: 1=DRC exists)(lpcm: 0=16bit, */
[85] Fix | Delete
/* 5- 4 Sample frequency fs (0=48kHz, 1=96kHz) */
[86] Fix | Delete
/* 2- 0 number of audio channels (n+1 channels) */
[87] Fix | Delete
[88] Fix | Delete
[89] Fix | Delete
/* for GET_CAPABILITIES and SET_FORMAT, the latter should only set one bit */
[90] Fix | Delete
#define AUDIO_CAP_DTS 1
[91] Fix | Delete
#define AUDIO_CAP_LPCM 2
[92] Fix | Delete
#define AUDIO_CAP_MP1 4
[93] Fix | Delete
#define AUDIO_CAP_MP2 8
[94] Fix | Delete
#define AUDIO_CAP_MP3 16
[95] Fix | Delete
#define AUDIO_CAP_AAC 32
[96] Fix | Delete
#define AUDIO_CAP_OGG 64
[97] Fix | Delete
#define AUDIO_CAP_SDDS 128
[98] Fix | Delete
#define AUDIO_CAP_AC3 256
[99] Fix | Delete
[100] Fix | Delete
#define AUDIO_STOP _IO('o', 1)
[101] Fix | Delete
#define AUDIO_PLAY _IO('o', 2)
[102] Fix | Delete
#define AUDIO_PAUSE _IO('o', 3)
[103] Fix | Delete
#define AUDIO_CONTINUE _IO('o', 4)
[104] Fix | Delete
#define AUDIO_SELECT_SOURCE _IO('o', 5)
[105] Fix | Delete
#define AUDIO_SET_MUTE _IO('o', 6)
[106] Fix | Delete
#define AUDIO_SET_AV_SYNC _IO('o', 7)
[107] Fix | Delete
#define AUDIO_SET_BYPASS_MODE _IO('o', 8)
[108] Fix | Delete
#define AUDIO_CHANNEL_SELECT _IO('o', 9)
[109] Fix | Delete
#define AUDIO_GET_STATUS _IOR('o', 10, audio_status_t)
[110] Fix | Delete
[111] Fix | Delete
#define AUDIO_GET_CAPABILITIES _IOR('o', 11, unsigned int)
[112] Fix | Delete
#define AUDIO_CLEAR_BUFFER _IO('o', 12)
[113] Fix | Delete
#define AUDIO_SET_ID _IO('o', 13)
[114] Fix | Delete
#define AUDIO_SET_MIXER _IOW('o', 14, audio_mixer_t)
[115] Fix | Delete
#define AUDIO_SET_STREAMTYPE _IO('o', 15)
[116] Fix | Delete
#define AUDIO_SET_EXT_ID _IO('o', 16)
[117] Fix | Delete
#define AUDIO_SET_ATTRIBUTES _IOW('o', 17, audio_attributes_t)
[118] Fix | Delete
#define AUDIO_SET_KARAOKE _IOW('o', 18, audio_karaoke_t)
[119] Fix | Delete
[120] Fix | Delete
/**
[121] Fix | Delete
* AUDIO_GET_PTS
[122] Fix | Delete
*
[123] Fix | Delete
* Read the 33 bit presentation time stamp as defined
[124] Fix | Delete
* in ITU T-REC-H.222.0 / ISO/IEC 13818-1.
[125] Fix | Delete
*
[126] Fix | Delete
* The PTS should belong to the currently played
[127] Fix | Delete
* frame if possible, but may also be a value close to it
[128] Fix | Delete
* like the PTS of the last decoded frame or the last PTS
[129] Fix | Delete
* extracted by the PES parser.
[130] Fix | Delete
*/
[131] Fix | Delete
#define AUDIO_GET_PTS _IOR('o', 19, __u64)
[132] Fix | Delete
#define AUDIO_BILINGUAL_CHANNEL_SELECT _IO('o', 20)
[133] Fix | Delete
[134] Fix | Delete
#endif /* _DVBAUDIO_H_ */
[135] Fix | Delete
[136] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function