dev_dbg(NULL,"circbuf_all_lseek, minor = 0x%x\n",minor);
caseCMOSCAM_MINOR_JPEAGHEAD:
switch(minor){
if(orig==SEEK_END&&offset>0){
caseCMOSCAM_MINOR_CIRCBUF:
rp=(offset>>2)&(~7);// convert to index to long, align to 32-bytes
returncircbuf_lseek(file,offset,orig);
fp=(structinterframe_params_t*)&ccam_dma_buf_ptr[X313_BUFFSUB(rp,8)];//! 32 bytes before the frame pointer, may roll-over to the end of ccam_dma_buf_ptr
caseCMOSCAM_MINOR_JPEAGHEAD:
}
if(orig==SEEK_END&&offset>0){
returnjpeghead_lseek(file,offset,orig,fp);
rp=BYTE2DW(offset)&(~7);// convert to index to long, align to 32-bytes
//fp = (struct interframe_params_t *) &ccam_dma_buf_ptr[X313_BUFFSUB(rp, 8)]; //! 32 bytes before the frame pointer, may roll-over to the end of ccam_dma_buf_ptr
/// TODO: There still is a possibility, that there are compressor commands in the hardware que. Should we stop the hardware sequencer here (and restart it later)?
/// TODO: There still is a possibility, that there are compressor commands in the hardware que. Should we stop the hardware sequencer here (and restart it later)?