diff options
Diffstat (limited to 'sound/isa/opti9xx/opti92x-ad1848.c')
-rw-r--r-- | sound/isa/opti9xx/opti92x-ad1848.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/isa/opti9xx/opti92x-ad1848.c b/sound/isa/opti9xx/opti92x-ad1848.c index b94339f8306f..1be32999dfe1 100644 --- a/sound/isa/opti9xx/opti92x-ad1848.c +++ b/sound/isa/opti9xx/opti92x-ad1848.c | |||
@@ -1346,13 +1346,6 @@ static snd_pcm_ops_t snd_opti93x_capture_ops = { | |||
1346 | .pointer = snd_opti93x_capture_pointer, | 1346 | .pointer = snd_opti93x_capture_pointer, |
1347 | }; | 1347 | }; |
1348 | 1348 | ||
1349 | static void snd_opti93x_pcm_free(snd_pcm_t *pcm) | ||
1350 | { | ||
1351 | opti93x_t *codec = pcm->private_data; | ||
1352 | codec->pcm = NULL; | ||
1353 | snd_pcm_lib_preallocate_free_for_all(pcm); | ||
1354 | } | ||
1355 | |||
1356 | static int snd_opti93x_pcm(opti93x_t *codec, int device, snd_pcm_t **rpcm) | 1349 | static int snd_opti93x_pcm(opti93x_t *codec, int device, snd_pcm_t **rpcm) |
1357 | { | 1350 | { |
1358 | int error; | 1351 | int error; |
@@ -1365,7 +1358,6 @@ static int snd_opti93x_pcm(opti93x_t *codec, int device, snd_pcm_t **rpcm) | |||
1365 | snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_opti93x_capture_ops); | 1358 | snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_opti93x_capture_ops); |
1366 | 1359 | ||
1367 | pcm->private_data = codec; | 1360 | pcm->private_data = codec; |
1368 | pcm->private_free = snd_opti93x_pcm_free; | ||
1369 | pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX; | 1361 | pcm->info_flags = SNDRV_PCM_INFO_JOINT_DUPLEX; |
1370 | 1362 | ||
1371 | strcpy(pcm->name, snd_opti93x_chip_id(codec)); | 1363 | strcpy(pcm->name, snd_opti93x_chip_id(codec)); |