From: Takashi Iwai Subject: Re: [PATCH] ALSA: hda - apply CS420X erratum fix for CS4207 only Date: Thu, 03 Mar 2011 14:58:18 +0100 Message-ID: References: <1298955969.12314.12.camel@snowflake> <1299102498-29063-1-git-send-email-arun.raghavan@collabora.co.uk> <1299102498-29063-2-git-send-email-arun.raghavan@collabora.co.uk> <1299154822.5858.12.camel@snowflake> 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 (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id DD1AD1038FC for ; Thu, 3 Mar 2011 14:58:21 +0100 (CET) In-Reply-To: <1299154822.5858.12.camel@snowflake> 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: Arun Raghavan Cc: alsa-devel@alsa-project.org, Brian Austin , Arun Raghavan List-Id: alsa-devel@alsa-project.org At Thu, 03 Mar 2011 17:50:22 +0530, Arun Raghavan wrote: > > On Thu, 2011-03-03 at 13:01 +0100, Takashi Iwai wrote: > > At Thu, 3 Mar 2011 03:18:18 +0530, > > Arun Raghavan wrote: > > > > > > From: Arun Raghavan > > > > > > The commit a769cbcf60cee51f4431c0938acd39e7e5b76b8d > > > ALSA: hda - Add errata initverb sequence for CS42xx codecs > > > applies a fix for a chip erratum that is specific to CS4207 > > > unconditionally. On CS4206, this causes digital output to never be > > > activated. > > > > It might be the power-state the verb table sets? > > Try to comment out only the line setting SPDIF Tx to D3, > > {0x08, AC_VERB_SET_POWER_STATE, 0x03} > > instead of disabling the whole verbs, just for testing. > > Indeed, this also works. OK, to be sure, try the patch below. thanks, Takashi --- From: Takashi Iwai Date: Thu, 3 Mar 2011 14:54:19 +0100 Subject: [PATCH] ALSA: hda - Don't set to D3 in Cirrus errata init verbs The errata init verbs for CS42xx codecs contain the verbs to set the power-state of SPDIF nodes to D3, which seem to break the SPDIF output on some MacBooks. Since this is executed during the power-up initialization, we shouldn't turn them down there. Reported-by: Arun Raghavan Signed-off-by: Takashi Iwai --- sound/pci/hda/patch_cirrus.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/sound/pci/hda/patch_cirrus.c b/sound/pci/hda/patch_cirrus.c index a07b031..067982f 100644 --- a/sound/pci/hda/patch_cirrus.c +++ b/sound/pci/hda/patch_cirrus.c @@ -1039,9 +1039,11 @@ static struct hda_verb cs_errata_init_verbs[] = { {0x11, AC_VERB_SET_PROC_COEF, 0x0008}, {0x11, AC_VERB_SET_PROC_STATE, 0x00}, +#if 0 /* Don't to set to D3 as we are in power-up sequence */ {0x07, AC_VERB_SET_POWER_STATE, 0x03}, /* S/PDIF Rx: D3 */ {0x08, AC_VERB_SET_POWER_STATE, 0x03}, /* S/PDIF Tx: D3 */ /*{0x01, AC_VERB_SET_POWER_STATE, 0x03},*/ /* AFG: D3 This is already handled */ +#endif {} /* terminator */ }; -- 1.7.3.4