Lines Matching refs:volume_percent
330 static unsigned char volume_to_hw(int volume_percent)
334 if (volume_percent < 0)
335 volume_percent = 0;
336 if (volume_percent > 100)
337 volume_percent = 100;
339 if (volume_percent >= 0)
341 if (volume_percent >= 13) /* 12.5 */
343 if (volume_percent >= 25)
345 if (volume_percent >= 38) /* 37.5 */
347 if (volume_percent >= 50)
349 if (volume_percent >= 63) /* 62.5 */
351 if (volume_percent >= 75)
353 if (volume_percent >= 88) /* 87.5 */