logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

audio.h (2813B)


  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. #ifndef _DVBAUDIO_H_
  12. #define _DVBAUDIO_H_
  13. #include <linux/types.h>
  14. typedef enum {
  15. AUDIO_SOURCE_DEMUX, /* Select the demux as the main source */
  16. AUDIO_SOURCE_MEMORY /* Select internal memory as the main source */
  17. } audio_stream_source_t;
  18. typedef enum {
  19. AUDIO_STOPPED, /* Device is stopped */
  20. AUDIO_PLAYING, /* Device is currently playing */
  21. AUDIO_PAUSED /* Device is paused */
  22. } audio_play_state_t;
  23. typedef enum {
  24. AUDIO_STEREO,
  25. AUDIO_MONO_LEFT,
  26. AUDIO_MONO_RIGHT,
  27. AUDIO_MONO,
  28. AUDIO_STEREO_SWAPPED
  29. } audio_channel_select_t;
  30. typedef struct audio_mixer {
  31. unsigned int volume_left;
  32. unsigned int volume_right;
  33. /* what else do we need? bass, pass-through, ... */
  34. } audio_mixer_t;
  35. typedef struct audio_status {
  36. int AV_sync_state; /* sync audio and video? */
  37. int mute_state; /* audio is muted */
  38. audio_play_state_t play_state; /* current playback state */
  39. audio_stream_source_t stream_source; /* current stream source */
  40. audio_channel_select_t channel_select; /* currently selected channel */
  41. int bypass_mode; /* pass on audio data to */
  42. audio_mixer_t mixer_state; /* current mixer state */
  43. } audio_status_t; /* separate decoder hardware */
  44. /* for GET_CAPABILITIES and SET_FORMAT, the latter should only set one bit */
  45. #define AUDIO_CAP_DTS 1
  46. #define AUDIO_CAP_LPCM 2
  47. #define AUDIO_CAP_MP1 4
  48. #define AUDIO_CAP_MP2 8
  49. #define AUDIO_CAP_MP3 16
  50. #define AUDIO_CAP_AAC 32
  51. #define AUDIO_CAP_OGG 64
  52. #define AUDIO_CAP_SDDS 128
  53. #define AUDIO_CAP_AC3 256
  54. #define AUDIO_STOP _IO('o', 1)
  55. #define AUDIO_PLAY _IO('o', 2)
  56. #define AUDIO_PAUSE _IO('o', 3)
  57. #define AUDIO_CONTINUE _IO('o', 4)
  58. #define AUDIO_SELECT_SOURCE _IO('o', 5)
  59. #define AUDIO_SET_MUTE _IO('o', 6)
  60. #define AUDIO_SET_AV_SYNC _IO('o', 7)
  61. #define AUDIO_SET_BYPASS_MODE _IO('o', 8)
  62. #define AUDIO_CHANNEL_SELECT _IO('o', 9)
  63. #define AUDIO_GET_STATUS _IOR('o', 10, audio_status_t)
  64. #define AUDIO_GET_CAPABILITIES _IOR('o', 11, unsigned int)
  65. #define AUDIO_CLEAR_BUFFER _IO('o', 12)
  66. #define AUDIO_SET_ID _IO('o', 13)
  67. #define AUDIO_SET_MIXER _IOW('o', 14, audio_mixer_t)
  68. #define AUDIO_SET_STREAMTYPE _IO('o', 15)
  69. #define AUDIO_BILINGUAL_CHANNEL_SELECT _IO('o', 20)
  70. #endif /* _DVBAUDIO_H_ */