Skip to content

Commit 9a4df82

Browse files
committed
ALSA: mips: Drop superfluous ioctl PCM ops
PCM core deals the empty ioctl field now as default(*). Let's kill the redundant lines. (*) commit fc033cb ("ALSA: pcm: Allow NULL ioctl ops") Link: https://lore.kernel.org/r/20191210061145.24641-9-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 8694065 commit 9a4df82

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

‎sound/mips/hal2.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,6 @@ static int hal2_capture_ack(struct snd_pcm_substream *substream)
684684
static const struct snd_pcm_ops hal2_playback_ops = {
685685
.open = hal2_playback_open,
686686
.close = hal2_playback_close,
687-
.ioctl = snd_pcm_lib_ioctl,
688687
.prepare = hal2_playback_prepare,
689688
.trigger = hal2_playback_trigger,
690689
.pointer = hal2_playback_pointer,
@@ -694,7 +693,6 @@ static const struct snd_pcm_ops hal2_playback_ops = {
694693
static const struct snd_pcm_ops hal2_capture_ops = {
695694
.open = hal2_capture_open,
696695
.close = hal2_capture_close,
697-
.ioctl = snd_pcm_lib_ioctl,
698696
.prepare = hal2_capture_prepare,
699697
.trigger = hal2_capture_trigger,
700698
.pointer = hal2_capture_pointer,

‎sound/mips/sgio2audio.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,6 @@ snd_sgio2audio_pcm_pointer(struct snd_pcm_substream *substream)
649649
static const struct snd_pcm_ops snd_sgio2audio_playback1_ops = {
650650
.open = snd_sgio2audio_playback1_open,
651651
.close = snd_sgio2audio_pcm_close,
652-
.ioctl = snd_pcm_lib_ioctl,
653652
.hw_params = snd_sgio2audio_pcm_hw_params,
654653
.hw_free = snd_sgio2audio_pcm_hw_free,
655654
.prepare = snd_sgio2audio_pcm_prepare,
@@ -660,7 +659,6 @@ static const struct snd_pcm_ops snd_sgio2audio_playback1_ops = {
660659
static const struct snd_pcm_ops snd_sgio2audio_playback2_ops = {
661660
.open = snd_sgio2audio_playback2_open,
662661
.close = snd_sgio2audio_pcm_close,
663-
.ioctl = snd_pcm_lib_ioctl,
664662
.hw_params = snd_sgio2audio_pcm_hw_params,
665663
.hw_free = snd_sgio2audio_pcm_hw_free,
666664
.prepare = snd_sgio2audio_pcm_prepare,
@@ -671,7 +669,6 @@ static const struct snd_pcm_ops snd_sgio2audio_playback2_ops = {
671669
static const struct snd_pcm_ops snd_sgio2audio_capture_ops = {
672670
.open = snd_sgio2audio_capture_open,
673671
.close = snd_sgio2audio_pcm_close,
674-
.ioctl = snd_pcm_lib_ioctl,
675672
.hw_params = snd_sgio2audio_pcm_hw_params,
676673
.hw_free = snd_sgio2audio_pcm_hw_free,
677674
.prepare = snd_sgio2audio_pcm_prepare,

0 commit comments

Comments
 (0)