diff options
Diffstat (limited to 'sound/isa/gus/gus_pcm.c')
-rw-r--r-- | sound/isa/gus/gus_pcm.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/isa/gus/gus_pcm.c b/sound/isa/gus/gus_pcm.c index 1cc89fb67bf2..bae0fee705ee 100644 --- a/sound/isa/gus/gus_pcm.c +++ b/sound/isa/gus/gus_pcm.c | |||
@@ -727,13 +727,6 @@ static int snd_gf1_pcm_capture_close(snd_pcm_substream_t * substream) | |||
727 | return 0; | 727 | return 0; |
728 | } | 728 | } |
729 | 729 | ||
730 | static void snd_gf1_pcm_free(snd_pcm_t *pcm) | ||
731 | { | ||
732 | snd_gus_card_t *gus = pcm->private_data; | ||
733 | gus->pcm = NULL; | ||
734 | snd_pcm_lib_preallocate_free_for_all(pcm); | ||
735 | } | ||
736 | |||
737 | static int snd_gf1_pcm_volume_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo) | 730 | static int snd_gf1_pcm_volume_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo) |
738 | { | 731 | { |
739 | uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; | 732 | uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; |
@@ -860,7 +853,6 @@ int snd_gf1_pcm_new(snd_gus_card_t * gus, int pcm_dev, int control_index, snd_pc | |||
860 | if (err < 0) | 853 | if (err < 0) |
861 | return err; | 854 | return err; |
862 | pcm->private_data = gus; | 855 | pcm->private_data = gus; |
863 | pcm->private_free = snd_gf1_pcm_free; | ||
864 | /* playback setup */ | 856 | /* playback setup */ |
865 | snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_gf1_pcm_playback_ops); | 857 | snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_gf1_pcm_playback_ops); |
866 | 858 | ||