/* because some cards might have rates "very close", we ignore all "resampling" requests within +-5%  */
static int rate_match(unsigned int src_rate, unsigned int dst_rate)
/* because some cards might have rates "very close", we ignore all "resampling" requests within +-5%  */
static int rate_match(unsigned int src_rate, unsigned int dst_rate)
{
	unsigned int low = (src_rate * 95) / 100;
	unsigned int high = (src_rate * 105) / 100;
	return dst_rate >= low && dst_rate <= high;
}