linux/drivers/media/usb/em28xx
Mauro Carvalho Chehab 34906633fa [media] em28xx-audio: don't wait for lock in non-block mode
Pulseaudio has the bad habit of stopping a streaming audio if
a device, opened in non-block mode, waits.

It is impossible to avoid em28xx to wait, as it will send commands
via I2C, and other I2C operations may be happening (firmware
transfers, Remote Controller polling, etc). Yet, as each em28xx
subdriver locks em28xx-dev to protect the access to the hardware,
it is possible to minimize the audio glitches by returning -EAGAIN
to pulseaudio, if the lock is already taken by another subdriver.

Reported-by: Antti Palosaari <crope@iki.fi>
Tested-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-01-12 11:57:05 -02:00
..
em28xx-audio.c [media] em28xx-audio: don't wait for lock in non-block mode 2014-01-12 11:57:05 -02:00
em28xx-camera.c [media] em28xx: make em28xx-video to be a separate module 2014-01-07 05:09:26 -02:00
em28xx-cards.c [media] export em28xx_release_resources() symbol 2014-01-07 08:05:01 -02:00
em28xx-core.c [media] em28xx: properly implement AC97 wait code 2014-01-10 06:06:20 -02:00
em28xx-dvb.c [media] em28xx: prevent registering wrong interfaces for audio-only 2014-01-07 05:14:50 -02:00
em28xx-i2c.c [media] em28xx-i2c: add timeout debug information if i2c_debug enabled 2014-01-12 11:56:46 -02:00
em28xx-input.c [media] media: Remove OOM message after input_allocate_device 2014-01-07 08:01:42 -02:00
em28xx-reg.h [media] em28xx: fix I2S audio sample rate definitions and info output 2014-01-07 08:33:29 -02:00
em28xx-v4l.h [media] em28xx: make em28xx-video to be a separate module 2014-01-07 05:09:26 -02:00
em28xx-vbi.c [media] em28xx: make em28xx-video to be a separate module 2014-01-07 05:09:26 -02:00
em28xx-video.c [media] em28xx: prevent registering wrong interfaces for audio-only 2014-01-07 05:14:50 -02:00
em28xx.h [media] em28xx-audio: don't hardcode audio URB calculus 2014-01-12 11:56:59 -02:00
Kconfig [media] em28xx: make em28xx-video to be a separate module 2014-01-07 05:09:26 -02:00
Makefile [media] em28xx: make em28xx-video to be a separate module 2014-01-07 05:09:26 -02:00