Skip to content

Commit

Permalink
greybus: audio: Report warning in case module is already removed
Browse files Browse the repository at this point in the history
Added warning message in find_gb_module(). This will help to identify
invalid mixer control/widget modification triggered from above layer.

Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
Reviewed-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
  • Loading branch information
Vaibhav Agarwal authored and Greg Kroah-Hartman committed Jun 7, 2016
1 parent 0790c09 commit 02f1c12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/staging/greybus/audio_topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ static struct gbaudio_module_info *find_gb_module(
}
}
mutex_unlock(&codec->lock);
dev_warn(codec->dev, "%s: module#%d missing in codec list\n", name,
dev_id);
return NULL;
}

Expand Down

0 comments on commit 02f1c12

Please sign in to comment.