summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/sound/pci/envy24ht.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/sound/pci/envy24ht.c b/sys/dev/sound/pci/envy24ht.c
index 0f85701..e095ff3 100644
--- a/sys/dev/sound/pci/envy24ht.c
+++ b/sys/dev/sound/pci/envy24ht.c
@@ -1836,6 +1836,7 @@ static int
envy24htmixer_init(struct snd_mixer *m)
{
struct sc_info *sc = mix_getdevinfo(m);
+ struct snddev_info *d;
#if(0)
device_printf(sc->dev, "envy24htmixer_init()\n");
@@ -1849,14 +1850,13 @@ envy24htmixer_init(struct snd_mixer *m)
envy24ht_wrmt(sc, ENVY24HT_MT_VOLRATE, 0x30, 1); /* 0x30 is default value */
#endif
- mix_setdevs(m, ENVY24HT_MIX_MASK);
- mix_setrecdevs(m, ENVY24HT_MIX_REC_MASK);
-
- struct snddev_info *d = NULL;
d = device_get_softc(sc->dev);
if (d != NULL)
d->flags |= SD_F_SOFTPCMVOL;
+ mix_setdevs(m, ENVY24HT_MIX_MASK);
+ mix_setrecdevs(m, ENVY24HT_MIX_REC_MASK);
+
snd_mtxunlock(sc->lock);
return 0;
OpenPOWER on IntegriCloud