aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa/cs423x/cs4231_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/isa/cs423x/cs4231_lib.c')
-rw-r--r--sound/isa/cs423x/cs4231_lib.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/isa/cs423x/cs4231_lib.c b/sound/isa/cs423x/cs4231_lib.c
index 4af769030beb..4c9fb168636b 100644
--- a/sound/isa/cs423x/cs4231_lib.c
+++ b/sound/isa/cs423x/cs4231_lib.c
@@ -1605,13 +1605,6 @@ static snd_pcm_ops_t snd_cs4231_capture_ops = {
1605 .pointer = snd_cs4231_capture_pointer, 1605 .pointer = snd_cs4231_capture_pointer,
1606}; 1606};
1607 1607
1608static void snd_cs4231_pcm_free(snd_pcm_t *pcm)
1609{
1610 cs4231_t *chip = pcm->private_data;
1611 chip->pcm = NULL;
1612 snd_pcm_lib_preallocate_free_for_all(pcm);
1613}
1614
1615int snd_cs4231_pcm(cs4231_t *chip, int device, snd_pcm_t **rpcm) 1608int snd_cs4231_pcm(cs4231_t *chip, int device, snd_pcm_t **rpcm)
1616{ 1609{
1617 snd_pcm_t *pcm; 1610 snd_pcm_t *pcm;
@@ -1629,7 +1622,6 @@ int snd_cs4231_pcm(cs4231_t *chip, int device, snd_pcm_t **rpcm)
1629 1622
1630 /* global setup */ 1623 /* global setup */
1631 pcm->private_data = chip; 1624 pcm->private_data = chip;
1632 pcm->private_free = snd_cs4231_pcm_free;
1633 pcm->info_flags = 0; 1625 pcm->info_flags = 0;
1634 if (chip->single_dma) 1626 if (chip->single_dma)
1635 pcm->info_flags |= SNDRV_PCM_INFO_HALF_DUPLEX; 1627 pcm->info_flags |= SNDRV_PCM_INFO_HALF_DUPLEX;