mirror of https://github.com/thesofproject/sof.git
ipc: fix comp variable naming to match use case
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
parent
da1d49c73c
commit
2a015d0df2
|
@ -642,22 +642,22 @@ static int ipc_glb_debug_message(uint32_t header)
|
||||||
/* get/set component values or runtime data */
|
/* get/set component values or runtime data */
|
||||||
static int ipc_comp_value(uint32_t header, uint32_t cmd)
|
static int ipc_comp_value(uint32_t header, uint32_t cmd)
|
||||||
{
|
{
|
||||||
struct ipc_comp_dev *stream_dev;
|
struct ipc_comp_dev *comp_dev;
|
||||||
struct sof_ipc_ctrl_data *data = _ipc->comp_data;
|
struct sof_ipc_ctrl_data *data = _ipc->comp_data;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
trace_ipc("VoG");
|
trace_ipc("VoG");
|
||||||
|
|
||||||
/* get the component */
|
/* get the component */
|
||||||
stream_dev = ipc_get_comp(_ipc, data->comp_id);
|
comp_dev = ipc_get_comp(_ipc, data->comp_id);
|
||||||
if (stream_dev == NULL){
|
if (comp_dev == NULL){
|
||||||
trace_ipc_error("eVg");
|
trace_ipc_error("eVg");
|
||||||
trace_value(data->comp_id);
|
trace_value(data->comp_id);
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* get component values */
|
/* get component values */
|
||||||
ret = comp_cmd(stream_dev->cd, cmd, data);
|
ret = comp_cmd(comp_dev->cd, cmd, data);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
trace_ipc_error("eVG");
|
trace_ipc_error("eVG");
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue