diff options
author | Ondrej Zary <linux@rainbow-software.org> | 2011-06-11 15:28:59 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 22:53:07 +0200 |
commit | 6a529c1a4a87e0f5d143ad3bc0d37179332f210e (patch) | |
tree | 50b293832428289f8d8bcea7effabaee3be0b6d6 /include/sound | |
parent | [media] radio-timb: Simplified platform data (diff) | |
download | linux-6a529c1a4a87e0f5d143ad3bc0d37179332f210e.tar.xz 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]; |