Lines Matching refs:vol
239 u16 vol[2]; /* cached volume of analog output */ member
530 snd_rme96_write_SPI(rme96, (rme96->vol[0] << 2) | 0x0); in snd_rme96_apply_dac_volume()
531 snd_rme96_write_SPI(rme96, (rme96->vol[1] << 2) | 0x2); in snd_rme96_apply_dac_volume()
533 snd_rme96_write_SPI(rme96, (rme96->vol[0] & 0x3FF) | 0x000); in snd_rme96_apply_dac_volume()
534 snd_rme96_write_SPI(rme96, (rme96->vol[1] & 0x3FF) | 0x400); in snd_rme96_apply_dac_volume()
1694 rme96->vol[0] = rme96->vol[1] = 0; in snd_rme96_create()
1838 snd_iprintf(buffer, " volume left: %u\n", rme96->vol[0]); in snd_rme96_proc_read()
1839 snd_iprintf(buffer, " volume right: %u\n", rme96->vol[1]); in snd_rme96_proc_read()
2234 u->value.integer.value[0] = rme96->vol[0]; in snd_rme96_dac_volume_get()
2235 u->value.integer.value[1] = rme96->vol[1]; in snd_rme96_dac_volume_get()
2246 unsigned int vol, maxvol; in snd_rme96_dac_volume_put() local
2253 vol = u->value.integer.value[0]; in snd_rme96_dac_volume_put()
2254 if (vol != rme96->vol[0] && vol <= maxvol) { in snd_rme96_dac_volume_put()
2255 rme96->vol[0] = vol; in snd_rme96_dac_volume_put()
2258 vol = u->value.integer.value[1]; in snd_rme96_dac_volume_put()
2259 if (vol != rme96->vol[1] && vol <= maxvol) { in snd_rme96_dac_volume_put()
2260 rme96->vol[1] = vol; in snd_rme96_dac_volume_put()