diff options
author | Kaz Fukuoka <kfukuoka@nvidia.com> | 2011-04-15 11:14:06 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-04-26 15:56:03 -0700 |
commit | b48c6a50da2dcf29ac473b271f62f07838bd59b1 (patch) | |
tree | b0c823ef99d2bffb1eea669ed67f4fbfe6fb3d2d /drivers/media | |
parent | a5a4dba8e9825b2bab1106ff4b9c8cc904024574 (diff) |
media: tegra: avp: Stop AVP when all clients are done
- Remove temporary lines marked with FIXME.
- Also lower some printk level to KERN_DEBUG.
Original-Change-Id: I8283507f79ffb2b2a8073f8a70f12ab16feb2324
Reviewed-on: http://git-master/r/28075
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>
Change-Id: I5bb4a6f752b30d0c6da3344355fcacb979eb991f
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/tegra/avp/avp.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/media/video/tegra/avp/avp.c b/drivers/media/video/tegra/avp/avp.c index c3de6751bbf2..f17e74794e7f 100644 --- a/drivers/media/video/tegra/avp/avp.c +++ b/drivers/media/video/tegra/avp/avp.c @@ -1282,7 +1282,7 @@ static int handle_load_lib_ioctl(struct tegra_avp_info *avp, unsigned long arg) struct tegra_avp_lib lib; int ret; - pr_info("%s: \n", __func__); + pr_debug("%s: ioctl\n", __func__); if (copy_from_user(&lib, (void __user *)arg, sizeof(lib))) return -EFAULT; lib.name[TEGRA_AVP_LIB_MAX_NAME - 1] = '\0'; @@ -1367,6 +1367,7 @@ int tegra_avp_open(struct tegra_avp_info **avp) struct tegra_avp_info *new_avp = tegra_avp; int ret = 0; + pr_debug("%s: open\n", __func__); mutex_lock(&new_avp->open_lock); if (!new_avp->refcount) @@ -1397,10 +1398,7 @@ int tegra_avp_release(struct tegra_avp_info *avp) { int ret = 0; - // FIXME: Just for now, to test AVP loading. - pr_info("%s: FIXME: ignoring release\n", __func__); - return 0; - + pr_debug("%s: close\n", __func__); mutex_lock(&avp->open_lock); if (!avp->refcount) { pr_err("%s: releasing while in invalid state\n", __func__); |