aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/emu10k1/p16v.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-11-16 12:43:35 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:16:21 -0500
commitc3e6f7d8763fa0400d28c57633eb323515ba05fc (patch)
treeb0803843b710ac74fc1399910445a8ff2cf396a5 /sound/pci/emu10k1/p16v.c
parentf31a31b9024f21b2ad8f5a7c30e265a652e2e211 (diff)
[ALSA] Remove superfluous pcm_free callbacks
Remove superflous pcm_free callbacks. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/emu10k1/p16v.c')
-rw-r--r--sound/pci/emu10k1/p16v.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sound/pci/emu10k1/p16v.c b/sound/pci/emu10k1/p16v.c
index e27ebb9bb74a..3b456007ba2a 100644
--- a/sound/pci/emu10k1/p16v.c
+++ b/sound/pci/emu10k1/p16v.c
@@ -587,14 +587,6 @@ int snd_p16v_free(emu10k1_t *chip)
587 return 0; 587 return 0;
588} 588}
589 589
590static void snd_p16v_pcm_free(snd_pcm_t *pcm)
591{
592 emu10k1_t *emu = pcm->private_data;
593 //snd_printk("snd_p16v_pcm_free pcm: called\n");
594 snd_pcm_lib_preallocate_free_for_all(pcm);
595 emu->pcm = NULL;
596}
597
598int snd_p16v_pcm(emu10k1_t *emu, int device, snd_pcm_t **rpcm) 590int snd_p16v_pcm(emu10k1_t *emu, int device, snd_pcm_t **rpcm)
599{ 591{
600 snd_pcm_t *pcm; 592 snd_pcm_t *pcm;
@@ -611,7 +603,6 @@ int snd_p16v_pcm(emu10k1_t *emu, int device, snd_pcm_t **rpcm)
611 return err; 603 return err;
612 604
613 pcm->private_data = emu; 605 pcm->private_data = emu;
614 pcm->private_free = snd_p16v_pcm_free;
615 // Single playback 8 channel device. 606 // Single playback 8 channel device.
616 // Single capture 2 channel device. 607 // Single capture 2 channel device.
617 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_p16v_playback_front_ops); 608 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_p16v_playback_front_ops);