Re: envy24ht: M-Audio Revolution 5.1 broken (FreeBSD 7.0-CURRENT/AMD64)

From: Philipp Ost <pj_at_smo.de>
Date: Sun, 18 Feb 2007 16:48:31 +0100
Konstantin Dimitrov wrote:
> Oliver, after mixer(8) can change the volume, that means the
> snd_envy24ht can write to and control the DAC (AK4358) on the Revo 5.1
> and so that silent sound is the maximum volume that the hardware
> (Envy24GT+AK4358) can provide, because when do 'mixer vol 100', it set
> the AK4358 to the maximum volume, 'mixer pcm' do nothing at the
> moment, so when you do 'mixer pcm 0' or 'mixer pcm 100' nothing should
> change.

I also reported you similar problems with a Terratec PHASE 22. I tried 
the new code (see below), but that didn't change anything...


> i made new version, so when 'mixer pcm' is used, volume will be
> changed in software and when 'mixer vol' is used, like before, volume
> will be changed in hardware (in the DAC), i don't know how it will
> behave, but as usual the new code is here:
> 
> http://envy24.svobodno.com/driver/envy24ht/current/envy24ht.c

That's good to hear :)


> and you can test it and report back the results ...

I also tried the new code, but if fails to compile:

# make
Warning: Object directory not changed from original 
/usr/src/sys/modules/sound/driver/envy24ht
_at_ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
awk -f _at_/tools/makeobjops.awk _at_/kern/device_if.m -h
awk -f _at_/tools/makeobjops.awk _at_/kern/bus_if.m -h
awk -f _at_/tools/makeobjops.awk _at_/isa/isa_if.m -h
awk -f _at_/tools/makeobjops.awk _at_/dev/pci/pci_if.m -h
awk -f _at_/tools/makeobjops.awk _at_/dev/sound/pcm/ac97_if.m -h
awk -f _at_/tools/makeobjops.awk _at_/dev/sound/pcm/channel_if.m -h
awk -f _at_/tools/makeobjops.awk _at_/dev/sound/pcm/feeder_if.m -h
awk -f _at_/tools/makeobjops.awk _at_/dev/sound/pcm/mixer_if.m -h
cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE 
-nostdinc -I-   -I. -I_at_ -I_at_/contrib/altq -I_at_/../include -I/usr/include 
-finline-limit=8000 -fno-common  -mno-align-long-strings 
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 
-ffreestanding -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline 
-Wcast-qual  -fformat-extensions -std=c99 -c 
/usr/src/sys/modules/sound/driver/envy24ht/../../../../dev/sound/pci/envy24ht.c
/usr/src/sys/modules/sound/driver/envy24ht/../../../../dev/sound/pci/envy24ht.c: 
In function `envy24htmixer_init':
/usr/src/sys/modules/sound/driver/envy24ht/../../../../dev/sound/pci/envy24ht.c:1805: 
error: `SD_F_SOFTPCMVOL' undeclared (first use in this function)
/usr/src/sys/modules/sound/driver/envy24ht/../../../../dev/sound/pci/envy24ht.c:1805: 
error: (Each undeclared identifier is reported only once
/usr/src/sys/modules/sound/driver/envy24ht/../../../../dev/sound/pci/envy24ht.c:1805: 
error: for each function it appears in.)
*** Error code 1

Stop in /usr/src/sys/modules/sound/driver/envy24ht.
#

<http://envy24.svobodno.com/driver/envy24ht/envy24ht.c> compiles 
successfully though.

This is on FreeBSD 6.2-STABLE #0: Fri Feb 16 20:35:24 CET 2007 (i386)

$ pciconf -lv | grep -B 4 audio
none0_at_pci0:10:0:        class=0x040100 card=0x1150153b chip=0x17241412 
rev=0x01 hdr=0x00
     vendor     = 'VIA Technologies Inc (Was: IC Ensemble Inc)'
     device     = 'VT1720/24 Envy24PT/HT PCI Multi-Channel Audio Controller'
     class      = multimedia
     subclass   = audio

As already said, this a Terratec PHASE 22.


HTH,
Philipp
-- 
www.familie-ost.info/~pj
Received on Sun Feb 18 2007 - 14:49:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:05 UTC