Lines Matching refs:vol
1151 struct snd_sst_vol vol = {0}; in mix_audio_get_volume_default() local
1160 vol.stream_id = mix->streamID; in mix_audio_get_volume_default()
1168 retVal = ioctl(mix->fileDescriptor, SNDRV_SST_GET_VOL, &vol); in mix_audio_get_volume_default()
1169 g_debug("SNDRV_SST_GET_VOL returned %d. vol=%d", retVal, vol.volume); in mix_audio_get_volume_default()
1186 *currvol = (maxvol!=0)?((vol.volume * 100) / maxvol):0; in mix_audio_get_volume_default()
1188 *currvol = vol.volume; in mix_audio_get_volume_default()
1373 struct snd_sst_vol vol = {0}; in mix_audio_set_volume_default() local
1375 vol.ramp_duration = msecs; in mix_audio_set_volume_default()
1376 vol.ramp_type = ramptype; // TODO: confirm the mappings between Mix and SST. in mix_audio_set_volume_default()
1386 vol.stream_id = mix->streamID; in mix_audio_set_volume_default()
1390 vol.volume = currvol; in mix_audio_set_volume_default()
1402 vol.volume = currvol * maxvol / 100; in mix_audio_set_volume_default()
1411 g_debug("calling SNDRV_SST_SET_VOL vol=%d", vol.volume); in mix_audio_set_volume_default()
1412 retVal = ioctl(mix->fileDescriptor, SNDRV_SST_SET_VOL, &vol); in mix_audio_set_volume_default()