diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2017-06-14 06:30:03 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-06-14 07:04:03 -0400 |
commit | e11f0f90a626f93899687b1cc909ee37dd6c5809 (patch) | |
tree | 12a289a0ebeabe094d1a55e72587c125f977c460 /sound/core | |
parent | f8ff2f28ba49fa41a06215ac3187dede347bc9a7 (diff) |
ALSA: pcm: remove SNDRV_PCM_IOCTL1_INFO internal command
Drivers can implement 'struct snd_pcm_ops.ioctl' to handle some requests
from ALSA PCM core. These requests are internal purpose in kernel land.
Usually common set of operations are used for it.
SNDRV_PCM_IOCTL1_INFO is one of the requests. According to code comment,
it has been obsoleted in the old days.
We can see old releases in ftp.alsa-project.org. The command was firstly
introduced in v0.5.0 release as SND_PCM_IOCTL1_INFO, to allow drivers to
fill data of 'struct snd_pcm_channel_info' type. In v0.9.0 release,
this was obsoleted by the other commands for ioctl(2) such as
SNDRV_PCM_IOCTL_CHANNEL_INFO.
This commit removes the long-abandoned command, bye.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/pcm_lib.c | 2 | ||||
-rw-r--r-- | sound/core/pcm_native.c | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/sound/core/pcm_lib.c b/sound/core/pcm_lib.c index 75308ddc54ca..631cd598ba6c 100644 --- a/sound/core/pcm_lib.c +++ b/sound/core/pcm_lib.c | |||
@@ -1787,8 +1787,6 @@ int snd_pcm_lib_ioctl(struct snd_pcm_substream *substream, | |||
1787 | unsigned int cmd, void *arg) | 1787 | unsigned int cmd, void *arg) |
1788 | { | 1788 | { |
1789 | switch (cmd) { | 1789 | switch (cmd) { |
1790 | case SNDRV_PCM_IOCTL1_INFO: | ||
1791 | return 0; | ||
1792 | case SNDRV_PCM_IOCTL1_RESET: | 1790 | case SNDRV_PCM_IOCTL1_RESET: |
1793 | return snd_pcm_lib_ioctl_reset(substream, arg); | 1791 | return snd_pcm_lib_ioctl_reset(substream, arg); |
1794 | case SNDRV_PCM_IOCTL1_CHANNEL_INFO: | 1792 | case SNDRV_PCM_IOCTL1_CHANNEL_INFO: |
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index 05858c91c0ea..7e8f3656b695 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c | |||
@@ -212,11 +212,7 @@ int snd_pcm_info(struct snd_pcm_substream *substream, struct snd_pcm_info *info) | |||
212 | info->subdevices_avail = pstr->substream_count - pstr->substream_opened; | 212 | info->subdevices_avail = pstr->substream_count - pstr->substream_opened; |
213 | strlcpy(info->subname, substream->name, sizeof(info->subname)); | 213 | strlcpy(info->subname, substream->name, sizeof(info->subname)); |
214 | runtime = substream->runtime; | 214 | runtime = substream->runtime; |
215 | /* AB: FIXME!!! This is definitely nonsense */ | 215 | |
216 | if (runtime) { | ||
217 | info->sync = runtime->sync; | ||
218 | substream->ops->ioctl(substream, SNDRV_PCM_IOCTL1_INFO, info); | ||
219 | } | ||
220 | return 0; | 216 | return 0; |
221 | } | 217 | } |
222 | 218 | ||