vidd_save_state
nbytes = vidd_save_state(sc->adp, NULL, 0);
if (vidd_save_state(sc->adp, sc->state_buf, nbytes) != 0) {