вот такой вот кусочек for (x=0;x<p->span.channels;x++) { int t = 0; for (y=0;y<ZT_CHUNKSIZE;y++) if (buf [y*32 +x +1] != 255) { t = 1; break; } if (t) for (y=0;y<ZT_CHUNKSIZE;y++) LOG2(h, "chan %d pos %d val %d
", x, y, buf[y*32+x+1]); }
в zaptel_transmit_done позволяет увидеть следующие результаты
May 27 16:32:33 localhost kernel: ce0: chan 15 pos 0 val 11 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 1 val 255 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 2 val 255 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 3 val 255 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 4 val 255 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 5 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 6 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 7 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 0 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 1 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 2 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 3 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 4 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 5 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 6 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 7 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 0 val 11 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 1 val 255 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 2 val 255 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 3 val 255 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 4 val 255 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 5 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 6 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 7 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 0 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 1 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 2 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 3 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 4 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 5 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 6 val 0 May 27 16:32:33 localhost kernel: ce0: chan 15 pos 7 val 0