From: Takashi Iwai Subject: Re: [PATCH] hda: add support for jack detection on IDT/Sigmatel Date: Wed, 15 Oct 2008 17:47:05 +0200 Message-ID: References: <48F60190.5060601@embeddedalley.com> <20081015154402.GE14068@sirena.org.uk> 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 04FDA24733 for ; Wed, 15 Oct 2008 17:48:27 +0200 (CEST) In-Reply-To: <20081015154402.GE14068@sirena.org.uk> 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: Mark Brown Cc: alsa-devel@alsa-project.org, Matthew Ranostay List-Id: alsa-devel@alsa-project.org At Wed, 15 Oct 2008 16:44:02 +0100, Mark Brown wrote: > > > + if (codec->jack) > > + snd_jack_report(codec->jack, > > + presence ? SND_JACK_HEADPHONE : 0); > > + > > Since you appear to fail init if you can't create the jack there should > be no need to check for the jack being initialised here. For ease of > use I'll just submit a patch folding that check into snd_jack_report(), > though. Such a change can go to 2.6.28, too, if received timely :) Takashi