aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/em28xx/em28xx.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-13 01:34:23 -0500
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-14 11:39:52 -0500
commita02b9c238b408f69fc78d528b549b85001df98b8 (patch)
treeac3fadaf4a4c826a7fd9c44716f60a3311876a23 /drivers/media/usb/em28xx/em28xx.h
parentebbfbc2006700f0b5701fb3efa44b55a09fba5d1 (diff)
[media] em28xx: adjust period size at runtime
While the current hardcoded period is ok for the current values, we may latter change the driver to work with different bit rates or with different latencies than 64ms. So, adust the period size at runtime. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb/em28xx/em28xx.h')
-rw-r--r--drivers/media/usb/em28xx/em28xx.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/usb/em28xx/em28xx.h b/drivers/media/usb/em28xx/em28xx.h
index 5d5d1b6f0294..10b817245f7e 100644
--- a/drivers/media/usb/em28xx/em28xx.h
+++ b/drivers/media/usb/em28xx/em28xx.h
@@ -505,6 +505,8 @@ struct em28xx_audio {
505 unsigned int hwptr_done_capture; 505 unsigned int hwptr_done_capture;
506 struct snd_card *sndcard; 506 struct snd_card *sndcard;
507 507
508 size_t period;
509
508 int users; 510 int users;
509 spinlock_t slock; 511 spinlock_t slock;
510}; 512};