--- ca98922def9b25cf4932f8c0a0a7187d2ea1a94b +++ f8df1489724fc6236cf46d4c4ccf1e63926436db @@ -35,7 +35,7 @@ struct mutex amp_mutex; static struct tpa6130_platform_data *pdata; static int i2c_on; -char buffer[2]; +char buffer[3]; static int I2C_TxData(char *txData, int length) { @@ -81,6 +81,7 @@ static int handle_headset_call(struct ms struct rpc_request_hdr *req, unsigned len) { struct rpc_headset_amp_ctl_args *args; + if (!pdata->enable_rpc_server) return 0;