From patchwork Sun Jul 1 14:22:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Betker X-Patchwork-Id: 1144271 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 3F20740AEE for ; Sun, 1 Jul 2012 14:24:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755734Ab2GAOYi (ORCPT ); Sun, 1 Jul 2012 10:24:38 -0400 Received: from mout0.freenet.de ([195.4.92.90]:59128 "EHLO mout0.freenet.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755242Ab2GAOYh (ORCPT ); Sun, 1 Jul 2012 10:24:37 -0400 Received: from [195.4.92.141] (helo=mjail1.freenet.de) by mout0.freenet.de with esmtpa (ID thomas.betker@freenet.de) (port 25) (Exim 4.76 #1) id 1SlL4m-0005lY-2I; Sun, 01 Jul 2012 16:24:36 +0200 Received: from localhost ([::1]:44995 helo=mjail1.freenet.de) by mjail1.freenet.de with esmtpa (ID thomas.betker@freenet.de) (Exim 4.76 #1) id 1SlL4l-00031d-HU; Sun, 01 Jul 2012 16:24:35 +0200 Received: from [195.4.92.11] (port=44097 helo=1.mx.freenet.de) by mjail1.freenet.de with esmtpa (ID thomas.betker@freenet.de) (Exim 4.76 #1) id 1SlL2V-0002Fg-Cy; Sun, 01 Jul 2012 16:22:15 +0200 Received: from dslb-084-057-055-234.pools.arcor-ip.net ([84.57.55.234]:1068 helo=[192.168.2.101]) by 1.mx.freenet.de with esmtpa (ID thomas.betker@freenet.de) (port 587) (Exim 4.76 #1) id 1SlL2V-0008Qi-5L; Sun, 01 Jul 2012 16:22:15 +0200 Message-ID: <4FF05D10.1060906@freenet.de> Date: Sun, 01 Jul 2012 16:22:08 +0200 From: Thomas Betker User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20120615 Firefox/13.0.1 SeaMonkey/2.10.1 MIME-Version: 1.0 To: Mauro Carvalho Chehab , linux-media@vger.kernel.org Subject: [PATCH] bttv-cards.c: Allow radio for CHP05x/CHP06x. Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add ".has_radio = 1" for BTTV_BOARD_MAGICTVIEW061 because there are some CHP05x/CHP06x boards with a radio tuner. I still have an analog Askey Magic TView card (CHP051, PCI 144f:3002) which I use for radio only. This worked fine with kernel 2.6.37 (openSUSE 11.4), but no longer works with kernel 3.1.10 (openSUSE 12.1). The reason apparently is that ".has_radio = 1" is missing in bttv-cards.c for BTTV_BOARD_MAGICTVIEW061; when I add this line and recompile the kernel, radio is working again. The line is still missing in the latest git tree, for which I have generated the attached patch. I can't test what will happen for CHP05x/CHP06x devices without radio; however, it seems that other cards also have the problem that there are some boards with radio and some without, so I hope that this can be sorted out. Signed-off-by: Thomas Betker --- 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 diff -Naur linux-HEAD-6887a41-orig/drivers/media/video/bt8xx/bttv-cards.c linux-HEAD-6887a41/drivers/media/video/bt8xx/bttv-cards.c --- linux-HEAD-6887a41-orig/drivers/media/video/bt8xx/bttv-cards.c 2012-06-30 23:08:57.000000000 +0000 +++ linux-HEAD-6887a41/drivers/media/video/bt8xx/bttv-cards.c 2012-07-01 10:09:28.672559366 +0000 @@ -676,6 +676,7 @@ .tuner_type = UNSET, .tuner_addr = ADDR_UNSET, .has_remote = 1, + .has_radio = 1, /* not every card has radio */ }, [BTTV_BOARD_VOBIS_BOOSTAR] = { .name = "Terratec TerraTV+ Version 1.0 (Bt848)/ Terra TValue Version 1.0/ Vobis TV-Boostar",