Subject: Re: Fwd: Re: Patch de Sonido Compaq Presario
From: Marko Rauhamaa <...>
Date: 08 Apr 2002 23:15:06 -0700

Paul Lorenz:

> In case you have not recieved this patch elsewhere,
> Raul Sanchez Sanchez sent me this from Santiago Nullo.
> I tried it, it works wonderfully.

Indeed it does! And such a simple fix, too!

For Jaroslav's benefit: Santiago Nullo found out that the following
register needs to be set for Presario 700 to produce any audible sound:

========================================================================
/* + *	Presario700 workaround
 * + * 	for Jack Sense/SPDIF Register misetting causing
 *	no audible output
 *	by Santiago Nullo 04/05/2002
 */

#define AC97_AD1886_JACK_SENSE 0x72

static int ad1886_init(struct ac97_codec * codec)
{
	/* from AD1886 Specs */
	codec->codec_write(codec, AC97_AD1886_JACK_SENSE, 0x0010);
	return 0;
}
========================================================================

Since I'm using ALSA, I added this line to ALSA 0.9 ac97_codec.c (in the
very beginning of patch_ad1881()):

	snd_ac97_write_cache(ac97, 0x72, 0x0010);


Tell Santiago thank you for me, Raul.


Marko