Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65747
b: refs/heads/master
c: fa40b22
h: refs/heads/master
i:
  65745: bee93be
  65743: 252dcf0
v: v3
  • Loading branch information
Trent Piepho authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent c2745f9 commit ee20ae5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 82e67246cd2a860637ee9d27776ad48d32734f6c
refs/heads/master: fa40b2237ab6ed239967f76432438080232b88fe
11 changes: 10 additions & 1 deletion trunk/drivers/media/video/cx88/cx88-tvaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ static unsigned int always_analog = 0;
module_param(always_analog,int,0644);
MODULE_PARM_DESC(always_analog,"force analog audio out");

static unsigned int radio_deemphasis = 0;
module_param(radio_deemphasis,int,0644);
MODULE_PARM_DESC(radio_deemphasis, "Radio deemphasis time constant, "
"0=None, 1=50us (elsewhere), 2=75us (USA)");

#define dprintk(fmt, arg...) if (audio_debug) \
printk(KERN_DEBUG "%s/0: " fmt, core->name , ## arg)
Expand Down Expand Up @@ -678,6 +682,10 @@ static void set_audio_standard_FM(struct cx88_core *core,
};

/* It is enough to leave default values? */
/* No, it's not! The deemphasis registers are reset to the 75us
* values by default. Analyzing the spectrum of the decoded audio
* reveals that "no deemphasis" is the same as 75 us, while the 50 us
* setting results in less deemphasis. */
static const struct rlist fm_no_deemph[] = {

{AUD_POLYPH80SCALEFAC, 0x0003},
Expand All @@ -688,6 +696,7 @@ static void set_audio_standard_FM(struct cx88_core *core,
set_audio_start(core, SEL_FMRADIO);

switch (deemph) {
default:
case FM_NO_DEEMPH:
set_audio_registers(core, fm_no_deemph);
break;
Expand Down Expand Up @@ -757,7 +766,7 @@ void cx88_set_tvaudio(struct cx88_core *core)
set_audio_standard_EIAJ(core);
break;
case WW_FM:
set_audio_standard_FM(core, FM_NO_DEEMPH);
set_audio_standard_FM(core, radio_deemphasis);
break;
case WW_NONE:
default:
Expand Down

0 comments on commit ee20ae5

Please sign in to comment.