Lines Matching defs:volume_percent
314 static unsigned char volume_to_hw(int volume_percent)
318 if (volume_percent < 0)
319 volume_percent = 0;
320 if (volume_percent > 100)
321 volume_percent = 100;
323 if (volume_percent >= 0)
325 if (volume_percent >= 13) /* 12.5 */
327 if (volume_percent >= 25)
329 if (volume_percent >= 38) /* 37.5 */
331 if (volume_percent >= 50)
333 if (volume_percent >= 63) /* 62.5 */
335 if (volume_percent >= 75)
337 if (volume_percent >= 88) /* 87.5 */