/* pcm_data_rec_task() - n/a yet Triggered by the driver ISR when data for record mode is available.  */
static int dispatch_callback(lua_State *L, int self_ref, int cb_ref, int returns)
/* pcm_data_rec_task() - n/a yet Triggered by the driver ISR when data for record mode is available.  */
static int dispatch_callback(lua_State *L, int self_ref, int cb_ref, int returns)
{
  if (cb_ref != LUA_NOREF) {
    lua_rawgeti( L, LUA_REGISTRYINDEX, cb_ref );
    lua_rawgeti( L, LUA_REGISTRYINDEX, self_ref );
    return luaL_pcallx( L, 1, returns );
  }
  return LUA_OK;
}