26 Nov
2013
26 Nov
'13
12:17 p.m.
(Nov 26 2013 19:50), Takashi Sakamoto wrote:
- s->data_block_counter = (s->data_block_counter + data_blocks) &
0xff;
- if (s->data_block_counter != data_block_counter) {
dev_err(&s->unit->device,
"Detect uncontinuity of CIP packets\n");
s->data_block_counter = data_block_counter;
return;
- }
The correct thing to do would be to insert the missing samples, or to stop the stream.
OK. But I remember there are some devices which transmits packets with 0x0000 in its SYT field (Digidesign 003 Rack, I don't touch its development.). So I want to remove these codes if possible.
Oops! I was confused between DBC and SYT. Digidesign 003 Rack transmits DBC correctly. Please forget my reply about this...
Here I think it better to insert the missing samples. Then just output information and continue to handle samples.
Thank you
Takashi Sakamoto