diff options
author | Ranjani Sridharan <ranjani.sridharan@linux.intel.com> | 2019-04-05 09:57:09 -0700 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-04-08 14:15:53 +0700 |
commit | 52034add758e268c39110f33d46e2a9492e82aef (patch) | |
tree | 406c5b8b435fb5c04ed39cb8560004e3516b1099 /sound/soc/pxa | |
parent | b4ed6b51f356224c6c71540ed94087f7f09b84af (diff) | |
download | linux-52034add758e268c39110f33d46e2a9492e82aef.tar.bz2 |
ASoC: pcm: update module refcount if module_get_upon_open is set
Setting the module_get_upon_open field for component driver
prevents the module refcount from being incremented during
component probe(). This could lead to the module being
allowed to be unloaded when a pcm stream is open. So,
if this field is set, the module's refcount should be
incremented during pcm open to prevent module removal
when the component is in use. And, the refcount should
be decremented upon pcm close.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/pxa')
0 files changed, 0 insertions, 0 deletions