From patchwork Sun Oct 11 01:01:12 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Aleksandr V. Piskunov" X-Patchwork-Id: 52981 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9B16icA012251 for ; Sun, 11 Oct 2009 01:06:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755324AbZJKBBy (ORCPT ); Sat, 10 Oct 2009 21:01:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754978AbZJKBBy (ORCPT ); Sat, 10 Oct 2009 21:01:54 -0400 Received: from mail-bw0-f210.google.com ([209.85.218.210]:48455 "EHLO mail-bw0-f210.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754863AbZJKBBx (ORCPT ); Sat, 10 Oct 2009 21:01:53 -0400 Received: by bwz6 with SMTP id 6so2408308bwz.37 for ; Sat, 10 Oct 2009 18:01:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=HbWVdL+ZaYPU3ZQnq5ErhxO2TpctwwTpc1GDTHa7b9g=; b=nGSxIWea4IaHOAhEJUvy8ODUgiuKA+tPbgHA9MgzAN0dZuGSfpwDe7Xr9F5APUo85F OCwjNeaFna5fN/zb3VCwGUDNehENB4nUJeuEn4jHo39YpPweqQmK2QREKfW3pwfn6xFH ziOJ2GgWlg3Pmi7oxrypH8EkR42MocfTxgCDA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=ddH+IjHePPPHwMKXtBUXbjmdQW/gTFSBmxCd0HcU2qtByUT5jNEneszMQBegVDlG6t gJ70/LjfrcPe6+oKsLDRVYeLs0eBSd5R4ib5grvQCZGD0MsahTA1H5U9TP+2ADVnTwQi BAjEkD2kwN/ZL6Hzhu/kvjspI5X6s5myXDyAU= Received: by 10.103.84.2 with SMTP id m2mr1770273mul.107.1255222875902; Sat, 10 Oct 2009 18:01:15 -0700 (PDT) Received: from moon ([80.232.250.86]) by mx.google.com with ESMTPS id j2sm5611375mue.16.2009.10.10.18.01.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 10 Oct 2009 18:01:14 -0700 (PDT) Date: Sun, 11 Oct 2009 04:01:12 +0300 From: "Aleksandr V. Piskunov" To: ivtv-devel@ivtvdriver.org, linux-media@vger.kernel.org Cc: Andy Walls Subject: Re: [PATCH] AVerTV MCE 116 Plus radio Message-ID: <20091011010039.GA4726@moon> References: <20091006080406.GA22207@moon> <20091006081159.GB22207@moon> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20091006081159.GB22207@moon> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff --git a/linux/drivers/media/video/cx25840/cx25840-core.c b/linux/drivers/media/video/cx25840/cx25840-core.c --- a/linux/drivers/media/video/cx25840/cx25840-core.c +++ b/linux/drivers/media/video/cx25840/cx25840-core.c @@ -626,7 +642,13 @@ if (state->radio) { cx25840_write(client, 0x808, 0xf9); cx25840_write(client, 0x80b, 0x00); - } + /* Double reset cx2384x after setting FM radio mode, helps to + avoid "tinny" audio when ivtv I2C bus is being run on + frequency higher than 30 KHz */ + cx25840_and_or(client, 0x810, ~0x01, 0); + msleep(50); + cx25840_and_or(client, 0x810, ~0x01, 1); + } else if (std & V4L2_STD_525_60) { /* Certain Hauppauge PVR150 models have a hardware bug that causes audio to drop out. For these models the