All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
To: linux-media@vger.kernel.org
Subject: Possible problem with stk1160 driver
Date: Wed, 17 Jul 2013 00:04:18 +0200	[thread overview]
Message-ID: <20130716220418.GC10973@deadlock.dhs.org> (raw)

Hi,

I am not quite sure if the problem is in the driver or if the user space
applications are doing something in a weird or wrong way, I hope you can
help me.

I have one of those easycap 4x-input devices with a Syntek chip:
Bus 001 Device 002: ID 05e1:0408 Syntek Semiconductor Co., Ltd STK1160 Video Capture Device

I'm on 3.9.9-201.fc18.i686.PAE kernel, using the stk1160 driver.

It generally works fine, I can, for example, open the video device using VLC,
select one of the inputs and get the picture.

However, programs like motion or zoneminder fail, I am not quite sure if it
is something that they might be doing or if it is a problem in the driver.

Basically, for both of the above, the problem is that VIDIOC_S_INPUT fails
with EBUSY.

I do not see any errors in the message log, only:
Jul 16 21:27:24 localhost kernel: [ 9477.574448] stk1160: queue_setup: buffer
+count 8, each 829440 bytes
Jul 16 21:27:24 localhost kernel: [ 9477.595667] stk1160: setting alternate 5

I somewhat assume that it works with VLC because when switching the input you
more or less "open a new device", while zoneminder/motion might try to
change the input while actually streaming.

I'd appreciate any help or hint, also in case if you think that it's not the
driver issue, maybe you have an idea what I should be looking for (i.e.
what other operations might cause the VIDIOC_S_INPUT ioctl to fail?).

Kind regards,
Sergey


             reply	other threads:[~2013-07-16 22:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-16 22:04 Sergey 'Jin' Bostandzhyan [this message]
2013-07-16 22:45 ` Possible problem with stk1160 driver Ezequiel Garcia
2013-07-17  8:44 ` Ezequiel Garcia
2013-07-17 21:31   ` Sergey 'Jin' Bostandzhyan
2013-07-18  0:17     ` Ezequiel Garcia
2013-07-18  0:44       ` Sergey 'Jin' Bostandzhyan
2013-07-18  6:31       ` Hans Verkuil
2013-07-18 12:55         ` Ezequiel Garcia
2013-07-18 22:19           ` Sergey 'Jin' Bostandzhyan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130716220418.GC10973@deadlock.dhs.org \
    --to=jin@mediatomb.cc \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.