Skip to content

Commit 95dbf14

Browse files
tsbogendtiwai
authored andcommitted
ALSA: sgio2audio: Remove usage of dropped hw_params/hw_free functions
Commit ee88f4e ("ALSA: mips: Use managed buffer allocation") removed superfluous hw_params/hw_free callbacks, but forgot to remove them where they were used. Fixes: ee88f4e ("ALSA: mips: Use managed buffer allocation") Signed-off-by: Thomas Bogendoerfer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 8b33a13 commit 95dbf14

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

sound/mips/sgio2audio.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -649,8 +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-
.hw_params = snd_sgio2audio_pcm_hw_params,
653-
.hw_free = snd_sgio2audio_pcm_hw_free,
654652
.prepare = snd_sgio2audio_pcm_prepare,
655653
.trigger = snd_sgio2audio_pcm_trigger,
656654
.pointer = snd_sgio2audio_pcm_pointer,
@@ -659,8 +657,6 @@ static const struct snd_pcm_ops snd_sgio2audio_playback1_ops = {
659657
static const struct snd_pcm_ops snd_sgio2audio_playback2_ops = {
660658
.open = snd_sgio2audio_playback2_open,
661659
.close = snd_sgio2audio_pcm_close,
662-
.hw_params = snd_sgio2audio_pcm_hw_params,
663-
.hw_free = snd_sgio2audio_pcm_hw_free,
664660
.prepare = snd_sgio2audio_pcm_prepare,
665661
.trigger = snd_sgio2audio_pcm_trigger,
666662
.pointer = snd_sgio2audio_pcm_pointer,
@@ -669,8 +665,6 @@ static const struct snd_pcm_ops snd_sgio2audio_playback2_ops = {
669665
static const struct snd_pcm_ops snd_sgio2audio_capture_ops = {
670666
.open = snd_sgio2audio_capture_open,
671667
.close = snd_sgio2audio_pcm_close,
672-
.hw_params = snd_sgio2audio_pcm_hw_params,
673-
.hw_free = snd_sgio2audio_pcm_hw_free,
674668
.prepare = snd_sgio2audio_pcm_prepare,
675669
.trigger = snd_sgio2audio_pcm_trigger,
676670
.pointer = snd_sgio2audio_pcm_pointer,

0 commit comments

Comments
 (0)