From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Huang Shijie <shijie8@gmail.com>
Cc: linux-media@vger.kernel.org, zyziii@telegent.com, tiwai@suse.de
Subject: Re: [PATCH v2 00/10] add linux driver for chip TLG2300
Date: Thu, 04 Feb 2010 10:19:32 -0200 [thread overview]
Message-ID: <4B6ABB54.80001@redhat.com> (raw)
In-Reply-To: <4B6A8E02.3090905@gmail.com>
Huang Shijie wrote:
>
>> No, I don't meant that.
>>
>> The differences of FM radio standards are basically the preemphasis
>> and the
>> frequency ranges.
>>
>> For frequency ranges, V4L2_TUNER_RADIO allows specifying the
>> maximum/minimum values.
>>
>> For preemphasis, you should implement V4L2_CID_TUNE_PREEMPHASIS ctrl.
>> This
>> CTRL has 3 states:
>>
>> static const char *tune_preemphasis[] = {
>> "No preemphasis",
>> "50 useconds",
>> "75 useconds",
>> NULL,
>> };
>>
>> At v4l2-common.c, there are some functions that helps to implement it
>> at the driver, like:
>> v4l2_ctrl_get_menu, v4l2_ctrl_get_name and v4l2_ctrl_query_fill.
>>
> I meet a problem now. :(
>
> Even I add the ctrl to the tlg2300 driver, there is no application to
> test it :
>
> [1] The Mplayer do not check the ctrl except the "vulume " or "mute".
Unfortunately, userspace applications take some time to follow kernel changes.
Yet, there are a few generic applications for it, both hosted together with
the v4l-dvb mercurial tree: v4l2-ctl and qv4l2. On both applications, the
controls are retrieved dynamically. In particular, v4l2-ctl is a command-line
application. So, you may call it when the device is detected (for example, by
udev) or before starting the application.
This is very useful with dumb applications that doesn't give full control over
the device.
For example, I use it on my environment to pre-adjust my webcam to give a clearer
image, when using on skype, with this script:
export LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so
v4l2-ctl -cexposure=1000
v4l2-ctl -cwhite_balance=47
export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so
/usr/bin/skype.real $_
> [2] I do not know how to use the VLC to listen the radio with ALSA, I
> tried many times, but failed. Does someone know this ?
I've no idea. Never tried vlc for radio here.
> Btw: I will be on my vacation for the following two weeks, I will come
> back to
> work at 20th of this month. I afraid I can not finish the patches to
> remove the
> country code in the two days(today and tomorrow).
-rc7 is about to be released. So, it is late for 2.6.33 cycle.
I think we'll have -rc8 again, as there were several changes at drm/nouveau/x86 arch.
I may be wrong though. Assuming that I did a good guess, we'll have +2 weeks for the
next merge window. Also, as this is a new driver, if we miss the merge window, we may
try to submit it for -rc1 or -rc2.
So, providing that, on your return, you focus on it, I think it would be possible to
have it added for 2.6.34.
--
Cheers,
Mauro
prev parent reply other threads:[~2010-02-04 12:19 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-02 7:07 [PATCH v2 00/10] add linux driver for chip TLG2300 Huang Shijie
2010-02-02 7:07 ` [PATCH v2 01/10] add header files for tlg2300 Huang Shijie
2010-02-02 7:07 ` [PATCH v2 02/10] add the generic file Huang Shijie
2010-02-02 7:07 ` [PATCH v2 03/10] add video/vbi file for tlg2300 Huang Shijie
2010-02-02 7:07 ` [PATCH v2 04/10] add DVB-T support " Huang Shijie
2010-02-02 7:07 ` [PATCH v2 05/10] add FM " Huang Shijie
2010-02-02 7:07 ` [PATCH v2 06/10] add audio " Huang Shijie
2010-02-02 7:07 ` [PATCH v2 07/10] add document file " Huang Shijie
2010-02-02 7:07 ` [PATCH v2 08/10] add Kconfig and Makefile " Huang Shijie
2010-02-02 7:07 ` [PATCH v2 09/10] modify the " Huang Shijie
2010-02-02 12:17 ` [PATCH v2 00/10] add linux driver for chip TLG2300 Mauro Carvalho Chehab
2010-02-03 6:20 ` Huang Shijie
2010-02-03 7:29 ` Mauro Carvalho Chehab
2010-02-03 8:40 ` Huang Shijie
2010-02-03 8:59 ` Mauro Carvalho Chehab
2010-02-03 9:14 ` Huang Shijie
2010-02-04 9:06 ` Huang Shijie
2010-02-04 12:19 ` Mauro Carvalho Chehab [this message]
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=4B6ABB54.80001@redhat.com \
--to=mchehab@redhat.com \
--cc=linux-media@vger.kernel.org \
--cc=shijie8@gmail.com \
--cc=tiwai@suse.de \
--cc=zyziii@telegent.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