Lines Matching refs:vol
84 static void typhoon_setvol_generic(struct typhoon *dev, int vol)
87 vol >>= 14; /* Map 16 bit to 2 bit */
88 vol &= 3;
89 outb_p(vol / 2, dev->io); /* Set the volume, high bit. */
90 outb_p(vol % 2, dev->io + 2); /* Set the volume, low bit. */
151 static int typhoon_setvol(struct typhoon *dev, int vol)
153 if (dev->muted && vol != 0) { /* user is unmuting the card */
154 dev->curvol = vol;
158 if (vol == dev->curvol) /* requested volume == current */
161 if (vol == 0) { /* volume == 0 means mute the card */
163 dev->curvol = vol;
166 typhoon_setvol_generic(dev, vol);
167 dev->curvol = vol;