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

Sameer Pujar spujar at nvidia.com
Sat Jan 12 07:47:33 CET 2019


On 1/11/2019 11:25 PM, Pierre-Louis Bossart wrote:
>
>> +
>> +    /* 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?

Though I have not used explicit braces, but as per operator precedence 
it will be treated the same way as it is mentioned in spec.
Let me know if you want this to be explicitly mentioned.

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------


More information about the Alsa-devel mailing list