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