public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Emil Meier <emil276me@yahoo.com>
To: Hans Verkuil <hverkuil@xs4all.nl>,
	Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>,
	Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: [ANNOUNCE] experimental alsa stream support at xawtv3
Date: Tue, 24 May 2011 18:26:00 +0100 (BST)	[thread overview]
Message-ID: <583195.8777.qm@web29520.mail.ird.yahoo.com> (raw)


--- On Tue, 24/5/11, Devin Heitmueller <dheitmueller@kernellabs.com> wrote:

> From: Devin Heitmueller <dheitmueller@kernellabs.com>
> Subject: Re: [ANNOUNCE] experimental alsa stream support at xawtv3
> To: "Hans Verkuil" <hverkuil@xs4all.nl>
> Cc: "Mauro Carvalho Chehab" <mchehab@redhat.com>, "Linux Media Mailing List" <linux-media@vger.kernel.org>
> Date: Tuesday, 24 May, 2011, 16:57
> On Tue, May 24, 2011 at 2:50 AM, Hans
> 
> Oh, and how is it expected to handle informing the
> application about
> device contention between DVB and V4L?  Some devices
> share the tuner
> and therefore you cannot use both the V4L and DVB device at
> the same
> time.  Other products have two independent input paths
> on the same
> board, allowing both to be used simultaneously (the
> HVR-1600 is a
> popular example of this).  Sysfs isn't going to tell
> you this
> information, which is why in the MC API we explicitly added
> the notion
> of device groups (so the driver author can explicitly state
> the
> relationships).
> 
> Today MythTV users accomplish this by manually specifying
> "Input
> Groups".  I say that's what they do, but in reality
> they don't realize
> that they need to configure MythTV this way until they
> complain that
> MythTV recordings fail when trying to record programs on
> both inputs,
> at which point an advanced user points it out to
> them.  End users
> shouldn't have to understand the internal architecture of
> their
> capture card just to avoid weird crashy behavior (which is
> what often
> happens if you try to use both devices simultaneously since
> almost no
> hybrid drivers do proper locking).

Are there mechanisms for device-locking in the v4l api? With my 2 hybrid saa7134 cards I have observed exactly this issues in Mythtv and also in xawtv and kaffeine....
At the moment I disable one device via additional card definitions and modprobe-parameters, so that the other one is "alone" and only one app gets control over the tuner. 

But this driver (saa7134) seams not even lock the /dev/video0 correctly, as starting xawtv twice renders the card inoperable and forces rebooting to get the card working again...
 
Is there a good starting point to implement the locking?

> I am in favor of this finally getting some attention, but
> the reality
> is that sysfs isn't going to cut it.  It just doesn't
> expose enough
> information about the underlying hardware layout.
> 
> Devin
> 
> -- 
> Devin J. Heitmueller - Kernel Labs
> http://www.kernellabs.com
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
Emil


             reply	other threads:[~2011-05-24 17:31 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-24 17:26 Emil Meier [this message]
2011-05-24 17:46 ` [ANNOUNCE] experimental alsa stream support at xawtv3 Devin Heitmueller
  -- strict thread matches above, loose matches on Subject: below --
2011-05-23 20:17 Mauro Carvalho Chehab
2011-05-23 20:19 ` Devin Heitmueller
2011-05-23 20:30   ` Mauro Carvalho Chehab
2011-05-23 20:32   ` Mauro Carvalho Chehab
2011-05-24  6:50 ` Hans Verkuil
2011-05-24  7:21   ` Hans de Goede
2011-05-24 14:09     ` Mauro Carvalho Chehab
2011-05-24 15:55       ` Hans de Goede
2011-05-28 12:44         ` Mauro Carvalho Chehab
2011-05-28 13:01           ` Rémi Denis-Courmont
2011-05-28 14:41             ` Mauro Carvalho Chehab
2011-05-28 14:10           ` Mauro Carvalho Chehab
2011-05-28 12:55       ` Rémi Denis-Courmont
2011-05-28 14:39         ` Mauro Carvalho Chehab
2011-05-24 14:15   ` Mauro Carvalho Chehab
2011-05-24 14:57   ` Devin Heitmueller
2011-05-26  6:53     ` Hans Verkuil
2011-05-28 12:17       ` Mauro Carvalho Chehab
2011-05-28 12:26         ` Hans de Goede
2011-05-28 15:24         ` Hans Verkuil
2011-05-28 16:04           ` Mauro Carvalho Chehab
2011-05-28 16:20           ` Mauro Carvalho Chehab
2011-05-28 12:00     ` Mauro Carvalho Chehab

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=583195.8777.qm@web29520.mail.ird.yahoo.com \
    --to=emil276me@yahoo.com \
    --cc=dheitmueller@kernellabs.com \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox