diff options
author | Ondrej Zary <linux@rainbow-software.org> | 2011-06-11 10:28:59 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 17:53:07 -0300 |
commit | 6a529c1a4a87e0f5d143ad3bc0d37179332f210e (patch) | |
tree | 50b293832428289f8d8bcea7effabaee3be0b6d6 /include/sound | |
parent | 9cd49719fda38613e9d7c712b11a54ea4ea005dc (diff) | |
download | linux-6a529c1a4a87e0f5d143ad3bc0d37179332f210e.tar.gz linux-6a529c1a4a87e0f5d143ad3bc0d37179332f210e.tar.bz2 linux-6a529c1a4a87e0f5d143ad3bc0d37179332f210e.zip |
[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')
-rw-r--r-- | include/sound/tea575x-tuner.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/tea575x-tuner.h b/include/sound/tea575x-tuner.h index 5aa8186e7820..726e94742a5c 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]; |