From: Kevin Puetz <puetzk@iastate.edu>
To: Friedrich Ewaldt <friedrich.ewaldt@gmx.de>,
Benny Sjostrand <gorm@cucumelo.org>,
alsa-devel@lists.sourceforge.net
Subject: Re: Re: Phase Reversal on Santa Cruz (cs46xx) => XFire too
Date: Tue, 3 Dec 2002 17:45:48 -0600 [thread overview]
Message-ID: <200212031745.48194.puetzk@iastate.edu> (raw)
In-Reply-To: <3DED2F26.2070805@gmx.de>
On Tuesday 03 December 2002 16:24, Friedrich Ewaldt wrote:
> Hi Benny,
w00t!
it seems that volumes 0-0x7fff ramp up volumes, then 8000-ffff go back down...
but with opposite phases. So...
--- alsa-cvs/alsa-driver-0.9.0rc6cvs20021202/alsa-kernel/pci/cs46xx/dsp_spos.h
2002-11-24 19:52:17.000000000 -0600
+++ modules/alsa-driver/alsa-kernel/pci/cs46xx/dsp_spos.h 2002-12-03
17:27:10.000000000 -0600
@@ -215,7 +215,7 @@
static inline void cs46xx_dsp_scb_set_volume (cs46xx_t *
chip,dsp_scb_descriptor_t * scb,
u16 left,u16 right) {
- unsigned int val = ((0xffff - left) << 16 | (0xffff - right));
+ unsigned int val = (left << 16 | (0xffff - right));
snd_cs46xx_poke(chip, (scb->address + SCBVolumeCtrl) << 2, val);
snd_cs46xx_poke(chip, (scb->address + SCBVolumeCtrl + 1) << 2, val);
and it sounds correct (for CD analog passthru and PCM at least).
(note - you'll need to open alsamixer and adjust the DAC volume before the
'fix' works, I haven't found where it gets programmed on driver load.
Now, I have no idea if this is correct, if I just broke SPDIF (no reciever),
rear speakers (ditto, I don't have any) but it fixes my case anyway, so
that's a start. If anyone can test more of these cases, that might be good.
Throwing it out before I head out here for a few hours, in the hope that it
will cause some insight :-)
-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET
comprehensive development tool, built to increase your
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
next prev parent reply other threads:[~2002-12-03 23:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200211170056.11190.puetzk@iastate.edu>
2002-11-17 22:52 ` Phase Reversal on Santa Cruz (cs46xx) Kevin Puetz
2002-11-18 5:01 ` Benny Sjostrand
2002-11-18 4:41 ` Kevin Puetz
2002-11-18 14:30 ` Michael Alan Dorman
2002-11-18 18:46 ` Kevin Puetz
[not found] ` <200211182300.16367.gte733z@prism.gatech.edu>
2002-11-19 6:29 ` Kevin Puetz
[not found] ` <200211190228.09930.gte733z@prism.gatech.edu>
2002-11-19 11:32 ` Kevin Puetz
2002-11-22 0:09 ` Benny Sjostrand
2002-11-22 15:35 ` Kevin Puetz
2002-11-23 0:00 ` Benny Sjostrand
2002-11-24 13:12 ` James Courtier-Dutton
2002-12-03 22:24 ` Re: Phase Reversal on Santa Cruz (cs46xx) => XFire too Friedrich Ewaldt
2002-12-03 23:45 ` Kevin Puetz [this message]
2002-12-04 8:52 ` Benny Sjostrand
2002-12-05 11:48 ` Friedrich Ewaldt
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=200212031745.48194.puetzk@iastate.edu \
--to=puetzk@iastate.edu \
--cc=alsa-devel@lists.sourceforge.net \
--cc=friedrich.ewaldt@gmx.de \
--cc=gorm@cucumelo.org \
/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.