Commit f6161f37 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: docs: Update document about the default PCM ioctl ops

Mention that it's completely optional now.

Link: https://lore.kernel.org/r/20191117085308.23915-5-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent fc033cbf
...@@ -1341,7 +1341,6 @@ shows only the skeleton, how to build up the PCM interfaces. ...@@ -1341,7 +1341,6 @@ shows only the skeleton, how to build up the PCM interfaces.
static struct snd_pcm_ops snd_mychip_playback_ops = { static struct snd_pcm_ops snd_mychip_playback_ops = {
.open = snd_mychip_playback_open, .open = snd_mychip_playback_open,
.close = snd_mychip_playback_close, .close = snd_mychip_playback_close,
.ioctl = snd_pcm_lib_ioctl,
.hw_params = snd_mychip_pcm_hw_params, .hw_params = snd_mychip_pcm_hw_params,
.hw_free = snd_mychip_pcm_hw_free, .hw_free = snd_mychip_pcm_hw_free,
.prepare = snd_mychip_pcm_prepare, .prepare = snd_mychip_pcm_prepare,
...@@ -1353,7 +1352,6 @@ shows only the skeleton, how to build up the PCM interfaces. ...@@ -1353,7 +1352,6 @@ shows only the skeleton, how to build up the PCM interfaces.
static struct snd_pcm_ops snd_mychip_capture_ops = { static struct snd_pcm_ops snd_mychip_capture_ops = {
.open = snd_mychip_capture_open, .open = snd_mychip_capture_open,
.close = snd_mychip_capture_close, .close = snd_mychip_capture_close,
.ioctl = snd_pcm_lib_ioctl,
.hw_params = snd_mychip_pcm_hw_params, .hw_params = snd_mychip_pcm_hw_params,
.hw_free = snd_mychip_pcm_hw_free, .hw_free = snd_mychip_pcm_hw_free,
.prepare = snd_mychip_pcm_prepare, .prepare = snd_mychip_pcm_prepare,
...@@ -1456,7 +1454,6 @@ The operators are defined typically like this: ...@@ -1456,7 +1454,6 @@ The operators are defined typically like this:
static struct snd_pcm_ops snd_mychip_playback_ops = { static struct snd_pcm_ops snd_mychip_playback_ops = {
.open = snd_mychip_pcm_open, .open = snd_mychip_pcm_open,
.close = snd_mychip_pcm_close, .close = snd_mychip_pcm_close,
.ioctl = snd_pcm_lib_ioctl,
.hw_params = snd_mychip_pcm_hw_params, .hw_params = snd_mychip_pcm_hw_params,
.hw_free = snd_mychip_pcm_hw_free, .hw_free = snd_mychip_pcm_hw_free,
.prepare = snd_mychip_pcm_prepare, .prepare = snd_mychip_pcm_prepare,
...@@ -1913,7 +1910,10 @@ ioctl callback ...@@ -1913,7 +1910,10 @@ ioctl callback
~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
This is used for any special call to pcm ioctls. But usually you can This is used for any special call to pcm ioctls. But usually you can
pass a generic ioctl callback, :c:func:`snd_pcm_lib_ioctl()`. leave it as NULL, then PCM core calls the generic ioctl callback
function :c:func:`snd_pcm_lib_ioctl()`. If you need to deal with the
unique setup of channel info or reset procedure, you can pass your own
callback function here.
hw_params callback hw_params callback
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment