~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/dvb/audio.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: LGPL-2.1+ WITH Linux-syscall-note */
  2 /*
  3  * audio.h - DEPRECATED MPEG-TS audio decoder API
  4  *
  5  * NOTE: should not be used on future drivers
  6  *
  7  * Copyright (C) 2000 Ralph  Metzler <ralph@convergence.de>
  8  *                  & Marcus Metzler <marcus@convergence.de>
  9  *                    for convergence integrated media GmbH
 10  */
 11 
 12 #ifndef _DVBAUDIO_H_
 13 #define _DVBAUDIO_H_
 14 
 15 #include <linux/types.h>
 16 
 17 typedef enum {
 18         AUDIO_SOURCE_DEMUX, /* Select the demux as the main source */
 19         AUDIO_SOURCE_MEMORY /* Select internal memory as the main source */
 20 } audio_stream_source_t;
 21 
 22 
 23 typedef enum {
 24         AUDIO_STOPPED,      /* Device is stopped */
 25         AUDIO_PLAYING,      /* Device is currently playing */
 26         AUDIO_PAUSED        /* Device is paused */
 27 } audio_play_state_t;
 28 
 29 
 30 typedef enum {
 31         AUDIO_STEREO,
 32         AUDIO_MONO_LEFT,
 33         AUDIO_MONO_RIGHT,
 34         AUDIO_MONO,
 35         AUDIO_STEREO_SWAPPED
 36 } audio_channel_select_t;
 37 
 38 
 39 typedef struct audio_mixer {
 40         unsigned int volume_left;
 41         unsigned int volume_right;
 42   /* what else do we need? bass, pass-through, ... */
 43 } audio_mixer_t;
 44 
 45 
 46 typedef struct audio_status {
 47         int                    AV_sync_state;  /* sync audio and video? */
 48         int                    mute_state;     /* audio is muted */
 49         audio_play_state_t     play_state;     /* current playback state */
 50         audio_stream_source_t  stream_source;  /* current stream source */
 51         audio_channel_select_t channel_select; /* currently selected channel */
 52         int                    bypass_mode;    /* pass on audio data to */
 53         audio_mixer_t          mixer_state;    /* current mixer state */
 54 } audio_status_t;                              /* separate decoder hardware */
 55 
 56 
 57 /* for GET_CAPABILITIES and SET_FORMAT, the latter should only set one bit */
 58 #define AUDIO_CAP_DTS    1
 59 #define AUDIO_CAP_LPCM   2
 60 #define AUDIO_CAP_MP1    4
 61 #define AUDIO_CAP_MP2    8
 62 #define AUDIO_CAP_MP3   16
 63 #define AUDIO_CAP_AAC   32
 64 #define AUDIO_CAP_OGG   64
 65 #define AUDIO_CAP_SDDS 128
 66 #define AUDIO_CAP_AC3  256
 67 
 68 #define AUDIO_STOP                 _IO('o', 1)
 69 #define AUDIO_PLAY                 _IO('o', 2)
 70 #define AUDIO_PAUSE                _IO('o', 3)
 71 #define AUDIO_CONTINUE             _IO('o', 4)
 72 #define AUDIO_SELECT_SOURCE        _IO('o', 5)
 73 #define AUDIO_SET_MUTE             _IO('o', 6)
 74 #define AUDIO_SET_AV_SYNC          _IO('o', 7)
 75 #define AUDIO_SET_BYPASS_MODE      _IO('o', 8)
 76 #define AUDIO_CHANNEL_SELECT       _IO('o', 9)
 77 #define AUDIO_GET_STATUS           _IOR('o', 10, audio_status_t)
 78 
 79 #define AUDIO_GET_CAPABILITIES     _IOR('o', 11, unsigned int)
 80 #define AUDIO_CLEAR_BUFFER         _IO('o',  12)
 81 #define AUDIO_SET_ID               _IO('o', 13)
 82 #define AUDIO_SET_MIXER            _IOW('o', 14, audio_mixer_t)
 83 #define AUDIO_SET_STREAMTYPE       _IO('o', 15)
 84 #define AUDIO_BILINGUAL_CHANNEL_SELECT _IO('o', 20)
 85 
 86 #endif /* _DVBAUDIO_H_ */
 87 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php