summaryrefslogtreecommitdiffstats
path: root/include/sound/tea575x-tuner.h
diff options
context:
space:
mode:
authorOndrej Zary <linux@rainbow-software.org>2011-06-11 10:28:59 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 17:53:07 -0300
commit6a529c1a4a87e0f5d143ad3bc0d37179332f210e (patch)
tree50b293832428289f8d8bcea7effabaee3be0b6d6 /include/sound/tea575x-tuner.h
parent9cd49719fda38613e9d7c712b11a54ea4ea005dc (diff)
downloadop-kernel-dev-6a529c1a4a87e0f5d143ad3bc0d37179332f210e.zip
op-kernel-dev-6a529c1a4a87e0f5d143ad3bc0d37179332f210e.tar.gz
[media] tea575x: allow multiple opens
Change locking to allow tea575x-radio device to be opened multiple times. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/sound/tea575x-tuner.h')
-rw-r--r--include/sound/tea575x-tuner.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/tea575x-tuner.h b/include/sound/tea575x-tuner.h
index 5aa8186..726e947 100644
--- a/include/sound/tea575x-tuner.h
+++ b/include/sound/tea575x-tuner.h
@@ -49,7 +49,7 @@ struct snd_tea575x {
bool tuned; /* tuned to a station */
unsigned int val; /* hw value */
unsigned long freq; /* frequency */
- unsigned long in_use; /* set if the device is in use */
+ struct mutex mutex;
struct snd_tea575x_ops *ops;
void *private_data;
u8 card[32];
OpenPOWER on IntegriCloud