Saturday, March 1, 2008

[SOLVED] tuner 0-0061: tuner type not set

I was bothered by this bug since the 2.6.14 kernel, and it has effectively stopped me from performing any upgrade till the very last week. Soon before I have found a tip from Michał Kochanowicz which prompted me to investigate the issue personally. By extensive use of printk within the i2c and v4l modules I managed to track down the root cause. It happened only for the PixelView PlayTV card (card_id=16) for which the parameters definition in the bttv-cards.c file was missing assignment of the tuner_addr and radio_addr fields. Consequently in the attach_inform function the TUNER_SET_TYPE_ADDR command was not sent to the tuner's driver. The patch is as simple as that:


--- drivers/media/video/bt8xx/bttv-cards.c.orig	2007-07-08 23:32:17.000000000 +0000
+++ drivers/media/video/bt8xx/bttv-cards.c 2008-03-01 20:48:19.183306298 +0000
@@ -588,6 +588,8 @@ struct tvcard bttv_tvcards[] = {
.needs_tvaudio = 1,
.pll = PLL_28,
.tuner_type = -1,
+ .tuner_addr = ADDR_UNSET,
+ .radio_addr = ADDR_UNSET,
},
[BTTV_BOARD_WINVIEW_601] = {
.name = "Leadtek WinView 601",

Sunday, January 27, 2008

BOUML speaks python

well, well, well... kinda' news that makes you jump in joy. According to the changelog the python support is far from being as mature as it is for c++ or java, nevertheless that is the thing which progress I'm gonna track within next weeks/months. If only someone would update the BOUML's ebuild in the portage tree...

Thursday, December 27, 2007

BOUML - you gotta like it

I just got back to playing with BOUML - a really nice UML modeler and code generation tool. Earlier this year I successfuly managed to create state machine model and from it generate working C++ code to include in a framework testing part of the large embedded system functionality. This time I'm trying to employ BOUML to bring to life a library I was planning to release long time already (more details soon?). Anyway, working with BOUML is getting more and more interesting, and with each step it reveals more and more of its hidden gems (along with few flaws, naturaly).

Monday, December 24, 2007

Coral UML modeler on Gentoo

Coral is a UML modeler with QT4 gui written in python. It is being developed by the staff and students of the Åbo Akademi University, gathered around CREST. According to the authors it should be able to generate Python code from created UML schema, but unfortunately I have failed in my attempts to do so. Nonetheless, prior to my tinkering with coral I have prepared few ebuilds which allowed me to install coral within the portage tree context (uuencoded below). Enjoy!