/* codec mclk clock divider coefficients based on sampling rate */
static int rate_value(int rate, u8 *value)
/* codec mclk clock divider coefficients based on sampling rate */
static int rate_value(int rate, u8 *value)
{
	int i;
	for (i = 1; i < ARRAY_SIZE(rate_table); i++) {
		if (rate_table[i] >= rate) {
			*value = i;
			return 0;
		}
	}
	*value = 1;
	return -EINVAL;
}