Lines Matching refs:volume_percent
317 static unsigned char volume_to_hw(int volume_percent) in volume_to_hw() argument
321 if (volume_percent < 0) in volume_to_hw()
322 volume_percent = 0; in volume_to_hw()
323 if (volume_percent > 100) in volume_to_hw()
324 volume_percent = 100; in volume_to_hw()
326 if (volume_percent >= 0) in volume_to_hw()
328 if (volume_percent >= 13) /* 12.5 */ in volume_to_hw()
330 if (volume_percent >= 25) in volume_to_hw()
332 if (volume_percent >= 38) /* 37.5 */ in volume_to_hw()
334 if (volume_percent >= 50) in volume_to_hw()
336 if (volume_percent >= 63) /* 62.5 */ in volume_to_hw()
338 if (volume_percent >= 75) in volume_to_hw()
340 if (volume_percent >= 88) /* 87.5 */ in volume_to_hw()