diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-16 12:43:35 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:16:21 -0500 |
commit | c3e6f7d8763fa0400d28c57633eb323515ba05fc (patch) | |
tree | b0803843b710ac74fc1399910445a8ff2cf396a5 /sound/isa/gus | |
parent | f31a31b9024f21b2ad8f5a7c30e265a652e2e211 (diff) |
[ALSA] Remove superfluous pcm_free callbacks
Remove superflous pcm_free callbacks.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa/gus')
-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 | ||