Lines Matching refs:vol
259 unsigned char vol; in opl3sa2_set_volume() local
261 vol = scale[left]; in opl3sa2_set_volume()
265 vol |= 0x80; in opl3sa2_set_volume()
267 opl3sa2_write(devc->cfg_port, OPL3SA2_MASTER_LEFT, vol); in opl3sa2_set_volume()
269 vol = scale[right]; in opl3sa2_set_volume()
273 vol |= 0x80; in opl3sa2_set_volume()
275 opl3sa2_write(devc->cfg_port, OPL3SA2_MASTER_RIGHT, vol); in opl3sa2_set_volume()
281 unsigned char vol = 0x1F; in opl3sa2_set_mic() local
284 vol = 0x1F - (unsigned char) (32 * level / 101); in opl3sa2_set_mic()
288 vol |= 0x80; in opl3sa2_set_mic()
290 opl3sa2_write(devc->cfg_port, OPL3SA2_MIC, vol); in opl3sa2_set_mic()
360 static inline void arg_to_vol_mono(unsigned int vol, int* value) in arg_to_vol_mono() argument
364 left = vol & 0x00ff; in arg_to_vol_mono()
371 static inline void arg_to_vol_stereo(unsigned int vol, int* aleft, int* aright) in arg_to_vol_stereo() argument
373 arg_to_vol_mono(vol, aleft); in arg_to_vol_stereo()
374 arg_to_vol_mono(vol >> 8, aright); in arg_to_vol_stereo()
378 static inline int ret_vol_mono(int vol) in ret_vol_mono() argument
380 return ((vol << 8) | vol); in ret_vol_mono()