buf = dev->vsettings.gain;
ret = sn9c20x_write_i2c_data_ext(dev, 1, 0x30, &buf, 0x1d);
ret = sn9c20x_write_i2c_data(dev, 1, 0x30, &buf);
return ret;
}