^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/bus/iio/devices/iio:deviceX/buffer/length_align_bytes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) KernelVersion: 5.4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Contact: linux-iio@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) DMA buffers tend to have a alignment requirement for the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) buffers. If this alignment requirement is not met samples might
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) be dropped from the buffer.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) This property reports the alignment requirements in bytes.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) This means that the buffer size in bytes needs to be a integer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) multiple of the number reported by this file.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) The alignment requirements in number of sample sets will depend
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) on the enabled channels and the bytes per channel. This means
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) that the alignment requirement in samples sets might change
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) depending on which and how many channels are enabled. Whereas
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) the alignment requirement reported in bytes by this property
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) will remain static and does not depend on which channels are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) enabled.