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/es18xx.c | |
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/es18xx.c')
-rw-r--r-- | sound/isa/es18xx.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/isa/es18xx.c b/sound/isa/es18xx.c index 970e2aaade27..7191ff90cc73 100644 --- a/sound/isa/es18xx.c +++ b/sound/isa/es18xx.c | |||
@@ -1566,13 +1566,6 @@ static snd_pcm_ops_t snd_es18xx_capture_ops = { | |||
1566 | .pointer = snd_es18xx_capture_pointer, | 1566 | .pointer = snd_es18xx_capture_pointer, |
1567 | }; | 1567 | }; |
1568 | 1568 | ||
1569 | static void snd_es18xx_pcm_free(snd_pcm_t *pcm) | ||
1570 | { | ||
1571 | es18xx_t *codec = pcm->private_data; | ||
1572 | codec->pcm = NULL; | ||
1573 | snd_pcm_lib_preallocate_free_for_all(pcm); | ||
1574 | } | ||
1575 | |||
1576 | static int __devinit snd_es18xx_pcm(es18xx_t *chip, int device, snd_pcm_t ** rpcm) | 1569 | static int __devinit snd_es18xx_pcm(es18xx_t *chip, int device, snd_pcm_t ** rpcm) |
1577 | { | 1570 | { |
1578 | snd_pcm_t *pcm; | 1571 | snd_pcm_t *pcm; |
@@ -1595,7 +1588,6 @@ static int __devinit snd_es18xx_pcm(es18xx_t *chip, int device, snd_pcm_t ** rpc | |||
1595 | 1588 | ||
1596 | /* global setup */ | 1589 | /* global setup */ |
1597 | pcm->private_data = chip; | 1590 | pcm->private_data = chip; |
1598 | pcm->private_free = snd_es18xx_pcm_free; | ||
1599 | pcm->info_flags = 0; | 1591 | pcm->info_flags = 0; |
1600 | if (chip->caps & ES18XX_DUPLEX_SAME) | 1592 | if (chip->caps & ES18XX_DUPLEX_SAME) |
1601 | pcm->info_flags |= SNDRV_PCM_INFO_JOINT_DUPLEX; | 1593 | pcm->info_flags |= SNDRV_PCM_INFO_JOINT_DUPLEX; |