All of lore.kernel.org
 help / color / mirror / Atom feed
From: thomas schorpp <t.schorpp@gmx.de>
To: alsa-devel@lists.sourceforge.net
Cc: Takashi Iwai <tiwai@suse.de>, Takashi Iwai <tiwai@users.sourceforge.net>
Subject: Re: [Fwd: Re: newer C-Media CMI9761A], No PCM Master slider functional
Date: Sat, 19 Feb 2005 00:13:32 +0100	[thread overview]
Message-ID: <4216769C.6000209@gmx.de> (raw)
In-Reply-To: <42162C3C.6000703@gmx.de>

ok. got the pcm master slider. no function.

if the bitsetting is correct, theres no hardware gain driver for pcm 
master on the chip.

so back to head cvs and find out whats wrong with the pcm sound with 
patch_9761().

tom

static void check_volume_resolution(ac97_t *ac97, int reg, unsigned char 
*lo_max, unsigned char *hi_max)
{
	unsigned short cbit[3] = { 0x20, 0x10, 0x01 };
	unsigned char max[3] = { 63, 31, 15 };
	int i;

	*lo_max = *hi_max = 0;
	for (i = 0 ; i < ARRAY_SIZE(cbit); i++) {
		unsigned short val;
		snd_ac97_write(ac97, reg, 0x8080 | cbit[i] | (cbit[i] << 8));
		val = snd_ac97_read(ac97, reg);
		if (! *lo_max && (val & cbit[i]))
			*lo_max = max[i];
		if (! *hi_max && (val & (cbit[i] << 8)))
			*hi_max = max[i];
		if (*lo_max && *hi_max)
			break;
	}
	snd_printk (KERN_ERR "vol res reg %d hi %d low %d\n", reg, *lo_max, 
*hi_max);
	*lo_max = 31; *hi_max = 31;
}


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

  parent reply	other threads:[~2005-02-18 23:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-18 17:56 [Fwd: Re: newer C-Media CMI9761A, your testpatches], unrequested headphone-out, equalizer set thomas schorpp
2005-02-18 20:43 ` [Fwd: Re: newer C-Media CMI9761A, unrequested headphone-out, equalizer set, [CLOSED] thomas schorpp
2005-02-18 23:13 ` thomas schorpp [this message]
2005-02-22 11:46 ` [Fwd: Re: newer C-Media CMI9761A, your testpatches], unrequested headphone-out, equalizer set Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4216769C.6000209@gmx.de \
    --to=t.schorpp@gmx.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=tiwai@suse.de \
    --cc=tiwai@users.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.