audio-channel-select.rst 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _AUDIO_CHANNEL_SELECT:
  3. ====================
  4. AUDIO_CHANNEL_SELECT
  5. ====================
  6. Name
  7. ----
  8. AUDIO_CHANNEL_SELECT
  9. .. attention:: This ioctl is deprecated
  10. Synopsis
  11. --------
  12. .. c:function:: int ioctl(int fd, AUDIO_CHANNEL_SELECT, struct *audio_channel_select)
  13. :name: AUDIO_CHANNEL_SELECT
  14. Arguments
  15. ---------
  16. .. flat-table::
  17. :header-rows: 0
  18. :stub-columns: 0
  19. -
  20. - int fd
  21. - File descriptor returned by a previous call to open().
  22. -
  23. - audio_channel_select_t ch
  24. - Select the output format of the audio (mono left/right, stereo).
  25. Description
  26. -----------
  27. This ioctl is for Digital TV devices only. To control a V4L2 decoder use the
  28. V4L2 ``V4L2_CID_MPEG_AUDIO_DEC_PLAYBACK`` control instead.
  29. This ioctl call asks the Audio Device to select the requested channel if
  30. possible.
  31. Return Value
  32. ------------
  33. On success 0 is returned, on error -1 and the ``errno`` variable is set
  34. appropriately. The generic error codes are described at the
  35. :ref:`Generic Error Codes <gen-errors>` chapter.