All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dirk Thierbach <dthierbach-Mmb7MZpHnFY@public.gmane.org>
To: Francisco Jerez <currojerez-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
Subject: Re: TV-Out on a GeForce 2MX supported?
Date: Thu, 6 Mar 2014 10:19:14 +0100	[thread overview]
Message-ID: <20140306091913.GA29147@feanor> (raw)
In-Reply-To: <871tyg6yk3.fsf-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>

On Thu, Mar 06, 2014 at 12:00:28AM +0100, Francisco Jerez wrote:
> The current model doesn't require the encoder driver to have a
> predefined list of modes -- it's just highly recommended if you don't
> want to force the user to input mode lines manually.  

If there was a way to have the user input the equivalent of mode
lines for the BT chip, full support would be easy (and I would have
probably done it at some stage in the past). But the X infrastructure
just concerns itself with CRTC modelines (and later on added
xrandr properties), which are not enough.

> You just need some means to compute the optimal timings
> algorithmically given the connector properties and a rough
> description of the mode.

Which is the difficult part for the BT chip. While some of the timing
constraints are known, others are not. Also, there's no "optimal" solution,
what the calculation routine in nvtv does is to compute several
"close" solutions and let the user pick one. And sometimes they are
not even particularly close. Also, as I said, the solutions with very
little overscan sometimes don't give a stable image or no image at
all.

So calculating optimal timings in the kernel without user interaction
is not feasible. Unless you somehow discover the missing timing
constraints. Even the size of the internal FIFO is not known.

> Sure, using a fixed list of modes from which you pick the "closest"
> to the user's settings might be the easiest way to achieve that on
> some chips [ch7006 does precisely that IIRC],

The Chrontel chips only have a very limited number of modes in the
first place. But even then it makes sense to have more flexibiliy. For
example, you can take one of the 800x600 modes with almost no overscan
border, chop off the bottom and right and recenter shifting the sync
procesessing, and that gives you a nice 768x576 mode for watching
DVDs.

> and that might be a slight underuse of the
> flexibility of some hardware, but the API doesn't force you to do that.

Give me a way to pass a block of two dozen or so values to the chip in
addition to a CRTC modeline that is not checked for the usual constraints,
and give the user a way to specify these values in the config file or
let them choose one from a predefined list, and full support is easy.

- Dirk

  parent reply	other threads:[~2014-03-06  9:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-03 22:41 TV-Out on a GeForce 2MX supported? Nils Krafft
     [not found] ` <20140303224123.GA5720-0i3IwDS6Bd4yxn3+5HPDWA@public.gmane.org>
2014-03-05  5:40   ` Ilia Mirkin
     [not found]     ` <CAKb7Uvj2FKoRt2O6YqiamgL=svZqmxjxoqdxySN3Lidu+bWxsQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-03-05 11:06       ` Dirk Thierbach
2014-03-05 17:46         ` Ilia Mirkin
     [not found]           ` <CAKb7Uvi97Yn8MOfhMiXLs+=VAd0LWEnmnF7iHyR58eKA_Pk_jg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-03-05 19:34             ` Dirk Thierbach
2014-03-05 23:00               ` Francisco Jerez
     [not found]                 ` <871tyg6yk3.fsf-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org>
2014-03-06  9:19                   ` Dirk Thierbach [this message]
2014-03-05 19:57             ` Nils Krafft
     [not found]               ` <20140305195756.GA3045-0i3IwDS6Bd4yxn3+5HPDWA@public.gmane.org>
2014-03-05 20:39                 ` Ilia Mirkin
     [not found]                   ` <CAKb7UvieoTobCuzfNty0NGLucqOHpq=hLeiKx3-jcT1dtsMShw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-03-10 20:18                     ` Nils Krafft
2014-03-05 22:08                 ` Dirk Thierbach

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=20140306091913.GA29147@feanor \
    --to=dthierbach-mmb7mzphnfy@public.gmane.org \
    --cc=currojerez-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.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.