From: Anton Worshevsky <gbdj@linux.spb.org>
To: Takashi Iwai <tiwai@suse.de>
Cc: p z oooo <pzad@pobox.sk>, alsa-devel@lists.sourceforge.net
Subject: Re: VIA 8233A, 8235 with ALC650 codec
Date: Tue, 18 Feb 2003 07:43:26 +0300 [thread overview]
Message-ID: <10321.030218@linux.spb.org> (raw)
In-Reply-To: s5hel6g4hv0.wl@alsa2.suse.de
[-- Attachment #1: Type: text/plain, Size: 1827 bytes --]
Dear Takashi Iwai,
Monday, February 10, 2003, 12:14:59 PM, you wrote:
>> When I changed VIA_REV_8233A to TYPE_VIA8233A my onboard soundcard
>> (VIA8233A + ALC650) works (2 channel, 4 cannel).
>>
>> 5.1 has problem - swaped channels. (LF, RF, Center - OK, LS - Woofer,
>> RS - LS, Woofer - RS.
TI> which program are you using?
TI> please check the ac97 register 0x6a in /proc/asound/card0/ac97#0regs
TI> and whether the bits 30-31 (zero-based) are off.
Do you mean bit 14-15 ?
As i posted before, i have similar channel swapping with VIA8235 + ALC650.
If bits 14-15 (slot modify) set to 0 - channels has incorrect placement.
It can be fixed by exchanging Rear and Center/LFE jacks.
When i set bit 14 to 1 - OK
Surely via8235 transmit multi-channel data in AC-Link in 3,4,6,9,7,8 order,
instead of 3,4,7,8,6,9 as specified in AC97.
I switch codec to 3,4,6,9,7,8 mode by setting bit 14 with following patch
in attachment for ac97_patch.c.
Other option is to apply may old patch to via82xx.c like this:
812,813c812,815
< case 5: slots = (1<<0) | (2<<4) | (5<<8) | (3<<12) | (4<<16); break;
< case 6: slots = (1<<0) | (2<<4) | (5<<8) | (6<<12) | (3<<16) | (4<<20); break;
---
> // case 5: slots = (1<<0) | (2<<4) | (5<<8) | (3<<12) | (4<<16); break;
> // case 6: slots = (1<<0) | (2<<4) | (5<<8) | (6<<12) | (3<<16) | (4<<20); break;
> case 5: slots = (1<<0) | (2<<4) | (3<<8) | (4<<12) | (5<<16); break;
> case 6: slots = (1<<0) | (2<<4) | (3<<8) | (4<<12) | (5<<16) | (6<<20); break;
We can't do this if there are any positive reports for 5.1 playback on via82xx.
May be better to create a new ALC650 specific mixer switch for bit 14 of 0x6a register ?
By this way we can solve all such future problems too.
Please commit one of this solutions to cvs.
Sincerely yours
Anton Worshevsky
[-- Attachment #2: ac97_patch.c.diff --]
[-- Type: application/octet-stream, Size: 519 bytes --]
--- /usr/src/alsa/ac97_patch.c 2003-01-28 14:35:53.000000000 +0300
+++ /usr/src/alsa/alsa-20030210/alsa-kernel/pci/ac97/ac97_patch.c 2003-02-10 07:26:45.000000000 +0300
@@ -365,7 +365,8 @@
ac97->ext_id &= ~AC97_EI_SPDIF; /* disable extended-id */
val = snd_ac97_read(ac97, AC97_ALC650_MULTICH);
- val &= ~0xc000; /* slot: 3,4,7,8,6,9 */
+ // val &= ~0xc000; /* slot: 3,4,7,8,6,9 */
+ val |= 0x4000; /* slot: 3,4,6,9,7,8 */
snd_ac97_write_cache(ac97, AC97_ALC650_MULTICH, val | 0x03);
/* full DAC volume */
next prev parent reply other threads:[~2003-02-18 4:43 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-10 6:21 VIA 8233A p z oooo
2003-02-10 8:21 ` VIA 8233A - Patch included Tais M. Hansen
2003-02-10 9:14 ` VIA 8233A Takashi Iwai
2003-02-18 4:43 ` Anton Worshevsky [this message]
2003-02-18 17:03 ` VIA 8233A, 8235 with ALC650 codec Takashi Iwai
2003-02-20 2:51 ` Anton Worshevsky
2003-02-20 9:08 ` Takashi Iwai
2003-02-23 21:50 ` Anton Worshevsky
2003-02-25 17:00 ` Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2003-02-19 6:51 p z oooo
2003-02-19 9:22 ` Takashi Iwai
[not found] ` <000d01c2d7fb$4f521de0$8601a8c0@ZUBAJPNEW>
2003-02-19 10:04 ` Takashi Iwai
2003-02-20 6:19 p z oooo
2003-02-20 9:06 ` 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=10321.030218@linux.spb.org \
--to=gbdj@linux.spb.org \
--cc=alsa-devel@lists.sourceforge.net \
--cc=pzad@pobox.sk \
--cc=tiwai@suse.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox