18c2ecf20Sopenharmony_ciWhat: /sys/bus/iio/devices/iio:deviceX/buffer/length_align_bytes 28c2ecf20Sopenharmony_ciKernelVersion: 5.4 38c2ecf20Sopenharmony_ciContact: linux-iio@vger.kernel.org 48c2ecf20Sopenharmony_ciDescription: 58c2ecf20Sopenharmony_ci DMA buffers tend to have a alignment requirement for the 68c2ecf20Sopenharmony_ci buffers. If this alignment requirement is not met samples might 78c2ecf20Sopenharmony_ci be dropped from the buffer. 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci This property reports the alignment requirements in bytes. 108c2ecf20Sopenharmony_ci This means that the buffer size in bytes needs to be a integer 118c2ecf20Sopenharmony_ci multiple of the number reported by this file. 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci The alignment requirements in number of sample sets will depend 148c2ecf20Sopenharmony_ci on the enabled channels and the bytes per channel. This means 158c2ecf20Sopenharmony_ci that the alignment requirement in samples sets might change 168c2ecf20Sopenharmony_ci depending on which and how many channels are enabled. Whereas 178c2ecf20Sopenharmony_ci the alignment requirement reported in bytes by this property 188c2ecf20Sopenharmony_ci will remain static and does not depend on which channels are 198c2ecf20Sopenharmony_ci enabled. 20