Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: AW: Re: Volume level in vdr



ulope@gmx.de(Ulrich Petri)  25.02.02 05:47

Once upon a time Ulrich Petri shaped the electrons to say...

>Hi,

>Thanks i tried this, but that changed exactly nothing :~}
>AFAIK that code part is only for setting the init channel on the the
>card, so how could it solve my volume problems?

I think we all have had not understand your problem ;-)



Another code patch to reduce the *volume* already in the driver
using a driver parameter:


Just an idea some month ago.
(maybe volright*100)/255 might need to be taken in account.
 but it's just an "init" avoiding loud "plops" when the 
 box boots and the amplifier is already running...)

not tested with newer dvb.c
(Patch may fail.)

Problem: all cards are set to one volume...

dvb-20010927/driver/Makefile:   insmod dvb.o  debug=1 init_chan=2 pids_off=0 volume=200;


34,46c34,35
< /*
<  2001-11-07 zoc    added "volume" parameter
< */

< MODULE_PARM(volume,"i"); /* Initial analog output volume, usefull range 0..255 (0=min,255=max) */

1666,1667c1569,1570
?<                 volleft=127-(volleft/2);
?<                 volright=127-(volright/2);
---
?>                 volleft=127-((volleft*100)/255);
?>                 volright=127-((volright*100)/255);


160c139
< istatic int volume=0xff; // to be compatible:Full power
---

3153,3165c2709,2710
<
<         {
<           int err=SetVolume(dvb, 0, 0); // full power white noise while tuning
<                               // is maybe no joke for the speakers.(OK, it's digital..)
<                               // Ignore return status is (almost) OK,
<                               // because not all cards (budget) have "sound".
<           tune(dvb, &para);
<
<           if (err>=0)  // don't waste more time: the audio is broken/non existing.
<           {  SetVolume(dvb, (volume/2)&0xFF, (volume/2)&0xFF); // no "plopp", take a little care of speakers
<              SetVolume(dvb, volume&0xFF, volume&0xFF);
<           }
<         }
---
>       tune(dvb, &para);
>       SetVolume(dvb, 0xff, 0xff);



(those funny/senseless/useless/idiotic/dummy texts behind the "//" are 
 so called "comments"... (explaining "why" it is done or what was 
 "intended" to be done ;-))
)



Home | Main Index | Thread Index