OSDN Git Service

ALSA: firewire: Drop superfluous ioctl PCM ops
authorTakashi Iwai <tiwai@suse.de>
Tue, 10 Dec 2019 06:11:27 +0000 (07:11 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 11 Dec 2019 06:25:27 +0000 (07:25 +0100)
All the PCM ioctl ops of ALSA FireWire drivers do nothing but calling
the default handler.

Now PCM core accepts NULL as the default ioctl ops(*), so let's drop
altogether.

(*) commit fc033cbf6fb7 ("ALSA: pcm: Allow NULL ioctl ops")

Acked-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20191210061145.24641-6-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/bebob/bebob_pcm.c
sound/firewire/dice/dice-pcm.c
sound/firewire/digi00x/digi00x-pcm.c
sound/firewire/fireface/ff-pcm.c
sound/firewire/fireworks/fireworks_pcm.c
sound/firewire/isight.c
sound/firewire/motu/motu-pcm.c
sound/firewire/oxfw/oxfw-pcm.c
sound/firewire/tascam/tascam-pcm.c

index 5fbf1d7..f8d9a20 100644 (file)
@@ -342,7 +342,6 @@ int snd_bebob_create_pcm_devices(struct snd_bebob *bebob)
        static const struct snd_pcm_ops capture_ops = {
                .open           = pcm_open,
                .close          = pcm_close,
-               .ioctl          = snd_pcm_lib_ioctl,
                .hw_params      = pcm_hw_params,
                .hw_free        = pcm_hw_free,
                .prepare        = pcm_capture_prepare,
@@ -353,7 +352,6 @@ int snd_bebob_create_pcm_devices(struct snd_bebob *bebob)
        static const struct snd_pcm_ops playback_ops = {
                .open           = pcm_open,
                .close          = pcm_close,
-               .ioctl          = snd_pcm_lib_ioctl,
                .hw_params      = pcm_hw_params,
                .hw_free        = pcm_hw_free,
                .prepare        = pcm_playback_prepare,
index 2700f7f..af8a90e 100644 (file)
@@ -405,7 +405,6 @@ int snd_dice_create_pcm(struct snd_dice *dice)
        static const struct snd_pcm_ops capture_ops = {
                .open      = pcm_open,
                .close     = pcm_close,
-               .ioctl     = snd_pcm_lib_ioctl,
                .hw_params = pcm_hw_params,
                .hw_free   = pcm_hw_free,
                .prepare   = capture_prepare,
@@ -416,7 +415,6 @@ int snd_dice_create_pcm(struct snd_dice *dice)
        static const struct snd_pcm_ops playback_ops = {
                .open      = pcm_open,
                .close     = pcm_close,
-               .ioctl     = snd_pcm_lib_ioctl,
                .hw_params = pcm_hw_params,
                .hw_free   = pcm_hw_free,
                .prepare   = playback_prepare,
index bacf9b8..b7f6eda 100644 (file)
@@ -325,7 +325,6 @@ int snd_dg00x_create_pcm_devices(struct snd_dg00x *dg00x)
        static const struct snd_pcm_ops capture_ops = {
                .open           = pcm_open,
                .close          = pcm_close,
-               .ioctl          = snd_pcm_lib_ioctl,
                .hw_params      = pcm_hw_params,
                .hw_free        = pcm_hw_free,
                .prepare        = pcm_capture_prepare,
@@ -336,7 +335,6 @@ int snd_dg00x_create_pcm_devices(struct snd_dg00x *dg00x)
        static const struct snd_pcm_ops playback_ops = {
                .open           = pcm_open,
                .close          = pcm_close,
-               .ioctl          = snd_pcm_lib_ioctl,
                .hw_params      = pcm_hw_params,
                .hw_free        = pcm_hw_free,
                .prepare        = pcm_playback_prepare,
index a52a434..f978cc2 100644 (file)
@@ -365,7 +365,6 @@ int snd_ff_create_pcm_devices(struct snd_ff *ff)
        static const struct snd_pcm_ops pcm_capture_ops = {
                .open           = pcm_open,
                .close          = pcm_close,
-               .ioctl          = snd_pcm_lib_ioctl,
                .hw_params      = pcm_hw_params,
                .hw_free        = pcm_hw_free,
                .prepare        = pcm_capture_prepare,
@@ -376,7 +375,6 @@ int snd_ff_create_pcm_devices(struct snd_ff *ff)
        static const struct snd_pcm_ops pcm_playback_ops = {
                .open           = pcm_open,
                .close          = pcm_close,
-               .ioctl          = snd_pcm_lib_ioctl,
                .hw_params      = pcm_hw_params,
                .hw_free        = pcm_hw_free,
                .prepare        = pcm_playback_prepare,
index 8e60d22..980580d 100644 (file)
@@ -372,7 +372,6 @@ int snd_efw_create_pcm_devices(struct snd_efw *efw)
        static const struct snd_pcm_ops capture_ops = {
                .open           = pcm_open,
                .close          = pcm_close,
-               .ioctl          = snd_pcm_lib_ioctl,
                .hw_params      = pcm_hw_params,
                .hw_free        = pcm_hw_free,
                .prepare        = pcm_capture_prepare,
@@ -383,7 +382,6 @@ int snd_efw_create_pcm_devices(struct snd_efw *efw)
        static const struct snd_pcm_ops playback_ops = {
                .open           = pcm_open,
                .close          = pcm_close,
-               .ioctl          = snd_pcm_lib_ioctl,
                .hw_params      = pcm_hw_params,
                .hw_free        = pcm_hw_free,
                .prepare        = pcm_playback_prepare,
index 214f77b..6655af5 100644 (file)
@@ -441,7 +441,6 @@ static int isight_create_pcm(struct isight *isight)
        static const struct snd_pcm_ops ops = {
                .open      = isight_open,
                .close     = isight_close,
-               .ioctl     = snd_pcm_lib_ioctl,
                .hw_params = isight_hw_params,
                .hw_free   = isight_hw_free,
                .prepare   = isight_prepare,
index 931978e..2d41a1a 100644 (file)
@@ -340,7 +340,6 @@ int snd_motu_create_pcm_devices(struct snd_motu *motu)
        static const struct snd_pcm_ops capture_ops = {
                .open      = pcm_open,
                .close     = pcm_close,
-               .ioctl     = snd_pcm_lib_ioctl,
                .hw_params = pcm_hw_params,
                .hw_free   = pcm_hw_free,
                .prepare   = capture_prepare,
@@ -351,7 +350,6 @@ int snd_motu_create_pcm_devices(struct snd_motu *motu)
        static const struct snd_pcm_ops playback_ops = {
                .open      = pcm_open,
                .close     = pcm_close,
-               .ioctl     = snd_pcm_lib_ioctl,
                .hw_params = pcm_hw_params,
                .hw_free   = pcm_hw_free,
                .prepare   = playback_prepare,
index 974e53b..2dfa7e1 100644 (file)
@@ -411,7 +411,6 @@ int snd_oxfw_create_pcm(struct snd_oxfw *oxfw)
        static const struct snd_pcm_ops capture_ops = {
                .open      = pcm_open,
                .close     = pcm_close,
-               .ioctl     = snd_pcm_lib_ioctl,
                .hw_params = pcm_capture_hw_params,
                .hw_free   = pcm_capture_hw_free,
                .prepare   = pcm_capture_prepare,
@@ -422,7 +421,6 @@ int snd_oxfw_create_pcm(struct snd_oxfw *oxfw)
        static const struct snd_pcm_ops playback_ops = {
                .open      = pcm_open,
                .close     = pcm_close,
-               .ioctl     = snd_pcm_lib_ioctl,
                .hw_params = pcm_playback_hw_params,
                .hw_free   = pcm_playback_hw_free,
                .prepare   = pcm_playback_prepare,
index 92551ca..36c1353 100644 (file)
@@ -254,7 +254,6 @@ int snd_tscm_create_pcm_devices(struct snd_tscm *tscm)
        static const struct snd_pcm_ops capture_ops = {
                .open           = pcm_open,
                .close          = pcm_close,
-               .ioctl          = snd_pcm_lib_ioctl,
                .hw_params      = pcm_hw_params,
                .hw_free        = pcm_hw_free,
                .prepare        = pcm_capture_prepare,
@@ -265,7 +264,6 @@ int snd_tscm_create_pcm_devices(struct snd_tscm *tscm)
        static const struct snd_pcm_ops playback_ops = {
                .open           = pcm_open,
                .close          = pcm_close,
-               .ioctl          = snd_pcm_lib_ioctl,
                .hw_params      = pcm_hw_params,
                .hw_free        = pcm_hw_free,
                .prepare        = pcm_playback_prepare,