|
@@ -1484,12 +1484,9 @@ static struct snd_pcm_hardware snd_ali_capture =
|
|
static void snd_ali_pcm_free_substream(struct snd_pcm_runtime *runtime)
|
|
static void snd_ali_pcm_free_substream(struct snd_pcm_runtime *runtime)
|
|
{
|
|
{
|
|
struct snd_ali_voice *pvoice = runtime->private_data;
|
|
struct snd_ali_voice *pvoice = runtime->private_data;
|
|
- struct snd_ali *codec;
|
|
|
|
|
|
|
|
- if (pvoice) {
|
|
|
|
- codec = pvoice->codec;
|
|
|
|
|
|
+ if (pvoice)
|
|
snd_ali_free_voice(pvoice->codec, pvoice);
|
|
snd_ali_free_voice(pvoice->codec, pvoice);
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
static int snd_ali_open(struct snd_pcm_substream *substream, int rec,
|
|
static int snd_ali_open(struct snd_pcm_substream *substream, int rec,
|