From: Takashi Iwai Subject: Re: [PATCH] Add mute support to FM-only card with FM801 PCI to tuner bridge Date: Thu, 24 Jan 2008 16:45:39 +0100 Message-ID: References: <20080124151342.GG1177@serv.smile.org.ua> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 9E0842438C for ; Thu, 24 Jan 2008 16:45:39 +0100 (CET) In-Reply-To: <20080124151342.GG1177@serv.smile.org.ua> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Andy Shevchenko Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Thu, 24 Jan 2008 17:13:42 +0200, Andy Shevchenko wrote: > > Hi! > > This is improvement of the early support of the FM-only cards where the > fm801 chip represents the PCI to tuner bridge. > > The tuner initialization isn't included the mute on as well as mute support > via V4L request. Proposed patch should fix this at least for 64-PCR model. Instead of adding noop callbacks, it's better to add a NULL check of tea->ops->mute. That is, something like: if (tea->ops->mute) tea->ops->mute(tea, (v.flags & VIDEO_AUDIO_MUTE) != 0); We don't need to define TEA575X_[UN]MUTE. They are just bool, so use zero and non-zero. Last but not least, please fix the coding style issues reported via $LINUX/scripts/checkpatch.pl. Thanks, Takashi