1
0
Fork 0

[ALSA] gusextreme: set codec_flag

The gusextreme driver neglects to set the gus->codec_flag meaning
snd_gf1_pcm_new() allocates a second 'PCM Playback Volume' control,
which makes the driver fail to load.

Signed-off-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
hifive-unleashed-5.1
Rene Herman 2007-02-19 13:07:50 +01:00 committed by Jaroslav Kysela
parent b44dfe1a4a
commit 442f4f36be
1 changed files with 1 additions and 0 deletions

View File

@ -283,6 +283,7 @@ static int __devinit snd_gusextreme_probe(struct device *dev, unsigned int n)
"detected at 0x%lx\n", dev->bus_id, gus->gf1.port);
goto out;
}
gus->codec_flag = 1;
error = snd_es1688_pcm(es1688, 0, NULL);
if (error < 0)