]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - sound/isa/es18xx.c
[ALSA] Remove superfluous pcm_free callbacks
[net-next-2.6.git] / sound / isa / es18xx.c
index 970e2aaade27dba67a660795849e5eece98769b0..7191ff90cc73002d81898dfd33ec1e6921719b4d 100644 (file)
@@ -1566,13 +1566,6 @@ static snd_pcm_ops_t snd_es18xx_capture_ops = {
        .pointer =      snd_es18xx_capture_pointer,
 };
 
-static void snd_es18xx_pcm_free(snd_pcm_t *pcm)
-{
-       es18xx_t *codec = pcm->private_data;
-       codec->pcm = NULL;
-       snd_pcm_lib_preallocate_free_for_all(pcm);
-}
-
 static int __devinit snd_es18xx_pcm(es18xx_t *chip, int device, snd_pcm_t ** rpcm)
 {
         snd_pcm_t *pcm;
@@ -1595,7 +1588,6 @@ static int __devinit snd_es18xx_pcm(es18xx_t *chip, int device, snd_pcm_t ** rpc
 
        /* global setup */
         pcm->private_data = chip;
-       pcm->private_free = snd_es18xx_pcm_free;
         pcm->info_flags = 0;
        if (chip->caps & ES18XX_DUPLEX_SAME)
                pcm->info_flags |= SNDRV_PCM_INFO_JOINT_DUPLEX;