diff options
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; |