[media] tea575x: allow multiple opens

Change locking to allow tea575x-radio device to be opened multiple times.

Signed-off-by: Ondrej Zary <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
Ondrej Zary 2011-06-11 10:28:59 -03:00 • committed by Mauro Carvalho Chehab
commit 6a529c1a4a
2 changed files with 4 additions and 20 deletions

View file

@ -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];