[alsa-devel] [PATCH v2 2/5] ALSA: hda: Add api to program stripe control bits

Pierre-Louis Bossart pierre-louis.bossart at linux.intel.com
Fri Jan 11 18:55:41 CET 2019


> +
> +	/* following is from HD audio spec */
> +	for (sdo_line = max_sdo_lines; sdo_line > 0; sdo_line >>= 1) {
> +		if (rate > 48000)
> +			value = (channels * bits_per_sample *
> +					(rate / 48000)) / sdo_line;
> +		else
> +			value = channels * bits_per_sample / sdo_line;
(channels * bit_per_sample) / sdo_line as in the spec?



More information about the Alsa-devel mailing list