ret = -EINVAL;
}
if (ret) {
- dev_err(codec->dev, "deactivate for %s failed:%d\n",
+ dev_err_ratelimited(codec->dev, "deactivate for %s failed:%d\n",
module->name, ret);
goto func_exit;
}
ret = -EINVAL;
}
if (ret) {
- dev_err(codec->dev, "unregister_cport for %s failed:%d\n",
+ dev_err_ratelimited(codec->dev, "unregister_cport for %s failed:%d\n",
module->name, ret);
goto func_exit;
}
ret = -EINVAL;
}
if (ret) {
- dev_err(codec->dev, "reg_cport for %s\n", module->name);
+ dev_err_ratelimited(codec->dev, "reg_cport for %s\n", module->name);
goto func_exit;
}
module_state = GBAUDIO_CODEC_STARTUP;
ret = gb_audio_gb_set_pcm(module->mgmt_connection, data_cport,
format, rate, channels, sig_bits);
if (ret) {
- dev_err(codec->dev, "set_pcm for %s\n", module->name);
+ dev_err_ratelimited(codec->dev, "set_pcm for %s\n", module->name);
goto func_exit;
}
module_state = GBAUDIO_CODEC_HWPARAMS;
module->mgmt_connection,
data_cport, 192);
if (ret) {
- dev_err(codec->dev,
+ dev_err_ratelimited(codec->dev,
"set_rx_data_size for %s\n",
module->name);
goto func_exit;
ret = gb_audio_gb_activate_rx(module->mgmt_connection,
data_cport);
if (ret) {
- dev_err(codec->dev, "activate_rx for %s\n",
+ dev_err_ratelimited(codec->dev, "activate_rx for %s\n",
module->name);
goto func_exit;
}
module->mgmt_connection,
data_cport, 192);
if (ret) {
- dev_err(codec->dev,
+ dev_err_ratelimited(codec->dev,
"set_tx_data_size for %s\n",
module->name);
goto func_exit;
ret = gb_audio_gb_activate_tx(module->mgmt_connection,
data_cport);
if (ret) {
- dev_err(codec->dev, "activate_tx for %s\n",
+ dev_err_ratelimited(codec->dev, "activate_tx for %s\n",
module->name);
goto func_exit;
}
ret = gb_audio_gb_set_pcm(module->mgmt_connection, data_cport,
format, rate, channels, sig_bits);
if (ret) {
- dev_err(dai->dev, "%d: Error during set_pcm\n", ret);
+ dev_err_ratelimited(dai->dev, "%d: Error during set_pcm\n", ret);
goto func_exit;
}
if (state < GBAUDIO_CODEC_HWPARAMS) {
AUDIO_APBRIDGEA_PCM_RATE_48000,
6144000);
if (ret) {
- dev_err(dai->dev,
+ dev_err_ratelimited(dai->dev,
"%d: Error during set_config\n", ret);
goto func_exit;
}
ret = gb_audio_gb_set_tx_data_size(module->mgmt_connection, data_cport,
192);
if (ret) {
- dev_err(dev, "%d:Error during set_tx_data_size, cport:%d\n",
+ dev_err_ratelimited(dev, "%d:Error during set_tx_data_size, cport:%d\n",
ret, data_cport);
return ret;
}
ret = gb_audio_apbridgea_set_tx_data_size(data->connection, 0,
192);
if (ret) {
- dev_err(dev,
+ dev_err_ratelimited(dev,
"%d:Error during apbridgea set_tx_data_size, cport\n",
ret);
return ret;
ret = gb_audio_gb_activate_tx(module->mgmt_connection,
data_cport);
if (ret)
- dev_err(dev, "%s:Error during activate stream,%d\n",
+ dev_err_ratelimited(dev, "%s:Error during activate stream,%d\n",
module->name, ret);
return ret;
ret = gb_audio_gb_set_rx_data_size(module->mgmt_connection, data_cport,
192);
if (ret) {
- dev_err(dev, "%d:Error during set_rx_data_size, cport:%d\n",
+ dev_err_ratelimited(dev, "%d:Error during set_rx_data_size, cport:%d\n",
ret, data_cport);
return ret;
}
ret = gb_audio_apbridgea_set_rx_data_size(data->connection, 0,
192);
if (ret) {
- dev_err(dev,
+ dev_err_ratelimited(dev,
"%d:Error during apbridgea_set_rx_data_size\n",
ret);
return ret;
ret = gb_audio_gb_activate_rx(module->mgmt_connection,
data_cport);
if (ret)
- dev_err(dev, "%s:Error during activate stream,%d\n",
+ dev_err_ratelimited(dev, "%s:Error during activate stream,%d\n",
module->name, ret);
return ret;
} else
ret = -EINVAL;
if (ret)
- dev_err(dai->dev, "%s:Error during %s stream:%d\n",
+ dev_err_ratelimited(dai->dev, "%s:Error during %s stream:%d\n",
module->name, start ? "Start" : "Stop", ret);
func_exit: