Discussion:
snd_envy24ht regression in 8.0 (patch included)
(too old to reply)
Yamagi Burmeister
2009-12-02 09:50:46 UTC
Permalink
Hello,
I've got a Audiotrak Prodigy HD2 soundcard, based upon the VIA
Envy24HT-s chipset. Dmesg output is:

pcm1: <Envy24HT audio (AudioTrak Prodigy HD2)> port
0x3080-0x309f,0x3000-0x307f irq 28 at device 4.0 on pci18
pcm1: [GIANT-LOCKED]
pcm1: [ITHREAD]
pcm1: system configuration
SubVendorID: 0x3137, SubDeviceID: 0x4154
XIN2 Clock Source: 49.152MHz(192kHz*256)
MPU-401 UART(s) #: 1
ADC #: 1 and SPDIF receiver connected
DAC #: 1
Multi-track converter type: I2S(192KHz support, 24bit resolution,
ID#0x0)
S/PDIF(IN/OUT): 1/1 ID# 0x00
GPIO(mask/dir/state): 0xfff8ff/0xdfffff/0x200700

/dev/sndstat shows:

***@screw:pts/8 ~> cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
Installed devices:
pcm0: <nVidia nForce4> at io 0x1800, 0x1400 irq 22 bufsz 16384 kld
snd_ich [MPSAFE] (1p:1v/1r:1v channels duplex)
pcm1: <Envy24HT audio (AudioTrak Prodigy HD2)> at io
0x3080:32,0x3000:128 irq 28 [GIANT] (1p:1v/5r:1v channels duplex
default)

In FreeBSD 7.2 it worked just like a charm but after upgrading to 8.0
the left stereo channel is only half as loud as the right one. It can be
reproduced with either speakers and headphones. I tracked it down to a
change in revision 188480 of spicds.c, the change "fix: stupid bug with
volume control for AK4396" breaks volume control for me. The attached
patch fixes the problem by reverting the specific change but I guess
it'll break some other cards again.

An other possible work around is to double the volume of the left
channel via the mixer.

Ciao,
Yamagi
--
Homepage: www.yamagi.org
Jabber: ***@yamagi.org
GnuPG/GPG: 0xEFBCCBCB
Carl Johan Gustavsson
2009-12-05 00:00:54 UTC
Permalink
Post by Yamagi Burmeister
Hello,
I've got a Audiotrak Prodigy HD2 soundcard, based upon the VIA
pcm1: <Envy24HT audio (AudioTrak Prodigy HD2)> port
0x3080-0x309f,0x3000-0x307f irq 28 at device 4.0 on pci18
pcm1: [GIANT-LOCKED]
pcm1: [ITHREAD]
pcm1: system configuration
SubVendorID: 0x3137, SubDeviceID: 0x4154
XIN2 Clock Source: 49.152MHz(192kHz*256)
MPU-401 UART(s) #: 1
ADC #: 1 and SPDIF receiver connected
DAC #: 1
Multi-track converter type: I2S(192KHz support, 24bit resolution,
ID#0x0)
S/PDIF(IN/OUT): 1/1 ID# 0x00
GPIO(mask/dir/state): 0xfff8ff/0xdfffff/0x200700
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
pcm0: <nVidia nForce4> at io 0x1800, 0x1400 irq 22 bufsz 16384 kld
snd_ich [MPSAFE] (1p:1v/1r:1v channels duplex)
pcm1: <Envy24HT audio (AudioTrak Prodigy HD2)> at io
0x3080:32,0x3000:128 irq 28 [GIANT] (1p:1v/5r:1v channels duplex
default)
In FreeBSD 7.2 it worked just like a charm but after upgrading to 8.0
the left stereo channel is only half as loud as the right one. It can be
reproduced with either speakers and headphones. I tracked it down to a
change in revision 188480 of spicds.c, the change "fix: stupid bug with
volume control for AK4396" breaks volume control for me. The attached
patch fixes the problem by reverting the specific change but I guess
it'll break some other cards again.
An other possible work around is to double the volume of the left
channel via the mixer.
Ciao,
Yamagi
Hi,

That patch was partly correct but it did only fix the problem on the right
channel, the left one exhibits a similar error. Logical operators in case
labels does not work well in C, or at least not as the original writer
expected :)

Please revert your changes and try the attached patch.

-cjg
Stefan Ehmann
2009-12-05 10:04:05 UTC
Permalink
Post by Carl Johan Gustavsson
Post by Yamagi Burmeister
Hello,
I've got a Audiotrak Prodigy HD2 soundcard, based upon the VIA
...
Post by Carl Johan Gustavsson
Post by Yamagi Burmeister
In FreeBSD 7.2 it worked just like a charm but after upgrading to 8.0
the left stereo channel is only half as loud as the right one. It can be
reproduced with either speakers and headphones. I tracked it down to a
change in revision 188480 of spicds.c, the change "fix: stupid bug with
volume control for AK4396" breaks volume control for me. The attached
patch fixes the problem by reverting the specific change but I guess
it'll break some other cards again.
An other possible work around is to double the volume of the left
channel via the mixer.
Hi,
That patch was partly correct but it did only fix the problem on the right
channel, the left one exhibits a similar error. Logical operators in case
labels does not work well in C, or at least not as the original writer
expected :)
Please revert your changes and try the attached patch.
The patch fixes the balance problems on my envy24 card that had similar
problems.
--
Stefan
Yamagi Burmeister
2009-12-07 17:42:25 UTC
Permalink
Post by Carl Johan Gustavsson
That patch was partly correct but it did only fix the problem on the right
channel, the left one exhibits a similar error. Logical operators in case
labels does not work well in C, or at least not as the original writer
expected :)
Please revert your changes and try the attached patch.
Hi,
that patch works for me. Both channels are equally loud.

Thanks for your help,
Yamagi
--
Homepage: www.yamagi.org
Jabber: ***@yamagi.org
GnuPG/GPG: 0xEFBCCBCB
Carl Johan Gustavsson
2009-12-07 20:25:18 UTC
Permalink
Post by Yamagi Burmeister
Post by Carl Johan Gustavsson
That patch was partly correct but it did only fix the problem on the right
channel, the left one exhibits a similar error. Logical operators in case
labels does not work well in C, or at least not as the original
writer expected :)
Please revert your changes and try the attached patch.
Hi,
that patch works for me. Both channels are equally loud.
Thanks for your help,
Yamagi
Great, then we just should get someone to commit it.

-cjg
Ariff Abdullah
2009-12-07 21:37:55 UTC
Permalink
On Mon, 07 Dec 2009 21:25:18 +0100
Post by Carl Johan Gustavsson
Post by Carl Johan Gustavsson
That patch was partly correct but it did only fix the problem on
the > right
Post by Carl Johan Gustavsson
channel, the left one exhibits a similar error. Logical operators
in > case
Post by Carl Johan Gustavsson
labels does not work well in C, or at least not as the original
writer expected :)
Please revert your changes and try the attached patch.
Hi,
that patch works for me. Both channels are equally loud.
Thanks for your help,
Yamagi
Great, then we just should get someone to commit it.
I'll take it.


--
Ariff Abdullah
FreeBSD

... Recording in stereo is obviously too advanced
and confusing for us idiot ***** users :P ........

... Going with the standard and orthodox
is the death of intellect ..............

Loading...