Skip to content

Commit d21c249

Browse files
committed
media: dvb/audio.h: get rid of unused APIs
There are a number of other ioctls that aren't used anywhere inside the Kernel tree. Get rid of them. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
1 parent b41e44b commit d21c249

9 files changed

Lines changed: 0 additions & 348 deletions

File tree

‎Documentation/media/audio.h.rst.exceptions‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Ignore header name
22
ignore define _DVBAUDIO_H_
33

4-
# Typedef pointing to structs
5-
replace typedef audio_karaoke_t :c:type:`audio_karaoke`
6-
74
# Undocumented audio caps, as this is a deprecated API anyway
85
ignore define AUDIO_CAP_DTS
96
ignore define AUDIO_CAP_LPCM

‎Documentation/media/uapi/dvb/audio-get-pts.rst‎

Lines changed: 0 additions & 65 deletions
This file was deleted.

‎Documentation/media/uapi/dvb/audio-set-attributes.rst‎

Lines changed: 0 additions & 67 deletions
This file was deleted.

‎Documentation/media/uapi/dvb/audio-set-ext-id.rst‎

Lines changed: 0 additions & 66 deletions
This file was deleted.

‎Documentation/media/uapi/dvb/audio-set-karaoke.rst‎

Lines changed: 0 additions & 66 deletions
This file was deleted.

‎Documentation/media/uapi/dvb/audio_data_types.rst‎

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -114,40 +114,3 @@ following bits set according to the hardwares capabilities.
114114
#define AUDIO_CAP_OGG 64
115115
#define AUDIO_CAP_SDDS 128
116116
#define AUDIO_CAP_AC3 256
117-
118-
.. c:type:: audio_karaoke
119-
120-
The ioctl AUDIO_SET_KARAOKE uses the following format:
121-
122-
123-
.. code-block:: c
124-
125-
typedef
126-
struct audio_karaoke {
127-
int vocal1;
128-
int vocal2;
129-
int melody;
130-
} audio_karaoke_t;
131-
132-
If Vocal1 or Vocal2 are non-zero, they get mixed into left and right t
133-
at 70% each. If both, Vocal1 and Vocal2 are non-zero, Vocal1 gets mixed
134-
into the left channel and Vocal2 into the right channel at 100% each. Ff
135-
Melody is non-zero, the melody channel gets mixed into left and right.
136-
137-
138-
.. c:type:: audio_attributes
139-
140-
The following attributes can be set by a call to AUDIO_SET_ATTRIBUTES:
141-
142-
143-
.. code-block:: c
144-
145-
typedef uint16_t audio_attributes_t;
146-
/* bits: descr. */
147-
/* 15-13 audio coding mode (0=ac3, 2=mpeg1, 3=mpeg2ext, 4=LPCM, 6=DTS, */
148-
/* 12 multichannel extension */
149-
/* 11-10 audio type (0=not spec, 1=language included) */
150-
/* 9- 8 audio application mode (0=not spec, 1=karaoke, 2=surround) */
151-
/* 7- 6 Quantization / DRC (mpeg audio: 1=DRC exists)(lpcm: 0=16bit, */
152-
/* 5- 4 Sample frequency fs (0=48kHz, 1=96kHz) */
153-
/* 2- 0 number of audio channels (n+1 channels) */

‎Documentation/media/uapi/dvb/audio_function_calls.rst‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,9 @@ Audio Function Calls
2222
audio-set-bypass-mode
2323
audio-channel-select
2424
audio-bilingual-channel-select
25-
audio-get-pts
2625
audio-get-status
2726
audio-get-capabilities
2827
audio-clear-buffer
2928
audio-set-id
3029
audio-set-mixer
3130
audio-set-streamtype
32-
audio-set-ext-id
33-
audio-set-attributes
34-
audio-set-karaoke

‎fs/compat_ioctl.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,9 +1178,6 @@ COMPATIBLE_IOCTL(AUDIO_CLEAR_BUFFER)
11781178
COMPATIBLE_IOCTL(AUDIO_SET_ID)
11791179
COMPATIBLE_IOCTL(AUDIO_SET_MIXER)
11801180
COMPATIBLE_IOCTL(AUDIO_SET_STREAMTYPE)
1181-
COMPATIBLE_IOCTL(AUDIO_SET_EXT_ID)
1182-
COMPATIBLE_IOCTL(AUDIO_SET_ATTRIBUTES)
1183-
COMPATIBLE_IOCTL(AUDIO_SET_KARAOKE)
11841181
COMPATIBLE_IOCTL(DMX_START)
11851182
COMPATIBLE_IOCTL(DMX_STOP)
11861183
COMPATIBLE_IOCTL(DMX_SET_FILTER)

‎include/uapi/linux/dvb/audio.h‎

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -67,27 +67,6 @@ typedef struct audio_status {
6767
} audio_status_t; /* separate decoder hardware */
6868

6969

70-
typedef
71-
struct audio_karaoke { /* if Vocal1 or Vocal2 are non-zero, they get mixed */
72-
int vocal1; /* into left and right t at 70% each */
73-
int vocal2; /* if both, Vocal1 and Vocal2 are non-zero, Vocal1 gets*/
74-
int melody; /* mixed into the left channel and */
75-
/* Vocal2 into the right channel at 100% each. */
76-
/* if Melody is non-zero, the melody channel gets mixed*/
77-
} audio_karaoke_t; /* into left and right */
78-
79-
80-
typedef __u16 audio_attributes_t;
81-
/* bits: descr. */
82-
/* 15-13 audio coding mode (0=ac3, 2=mpeg1, 3=mpeg2ext, 4=LPCM, 6=DTS, */
83-
/* 12 multichannel extension */
84-
/* 11-10 audio type (0=not spec, 1=language included) */
85-
/* 9- 8 audio application mode (0=not spec, 1=karaoke, 2=surround) */
86-
/* 7- 6 Quantization / DRC (mpeg audio: 1=DRC exists)(lpcm: 0=16bit, */
87-
/* 5- 4 Sample frequency fs (0=48kHz, 1=96kHz) */
88-
/* 2- 0 number of audio channels (n+1 channels) */
89-
90-
9170
/* for GET_CAPABILITIES and SET_FORMAT, the latter should only set one bit */
9271
#define AUDIO_CAP_DTS 1
9372
#define AUDIO_CAP_LPCM 2
@@ -115,22 +94,6 @@ typedef __u16 audio_attributes_t;
11594
#define AUDIO_SET_ID _IO('o', 13)
11695
#define AUDIO_SET_MIXER _IOW('o', 14, audio_mixer_t)
11796
#define AUDIO_SET_STREAMTYPE _IO('o', 15)
118-
#define AUDIO_SET_EXT_ID _IO('o', 16)
119-
#define AUDIO_SET_ATTRIBUTES _IOW('o', 17, audio_attributes_t)
120-
#define AUDIO_SET_KARAOKE _IOW('o', 18, audio_karaoke_t)
121-
122-
/**
123-
* AUDIO_GET_PTS
124-
*
125-
* Read the 33 bit presentation time stamp as defined
126-
* in ITU T-REC-H.222.0 / ISO/IEC 13818-1.
127-
*
128-
* The PTS should belong to the currently played
129-
* frame if possible, but may also be a value close to it
130-
* like the PTS of the last decoded frame or the last PTS
131-
* extracted by the PES parser.
132-
*/
133-
#define AUDIO_GET_PTS _IOR('o', 19, __u64)
13497
#define AUDIO_BILINGUAL_CHANNEL_SELECT _IO('o', 20)
13598

13699
#endif /* _DVBAUDIO_H_ */

0 commit comments

Comments
 (0)