Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#185067 - 16/10/2003 23:47 tuner programming
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
Someone might know the answer; Otherwise I plan to look sometime tomorrow. I want to change the tuner frequency from within a program. Someone who'd done Linux stuff before might guess that drivers/char/radio-empeg.c implements a driver for /dev/radio and that the VIDIOCSFREQ ioctl would be what one wants. However, it's not compiled into Hijack, which means that's not what the player is doing.

Did I:
1) guess wrong on device name
2) miss some other interface for doing this that I should be using
3) incorrectly assume the player isn't monkeying on the i2c bus itself and just try compiling the module in

If no one knows, well, perhaps over the weekend I'll have some time and visit the car with a serial cable and try it.


Top
#185068 - 17/10/2003 04:46 Re: tuner programming [Re: Daria]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
radio-empeg.c is for the Mk1's internal FM radio I believe.

The Mk2 must just send out commands on the tuner's serial port and not have a kernel driver for it.

Top
#185069 - 17/10/2003 08:30 Re: tuner programming [Re: tman]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
radio-empeg.c is for the Mk1's internal FM radio I believe.


I considered that, but that module isn't compiled in for hijack for mk1 kernels either, so the player must be "special" regardless.

Yay?

Top
#185070 - 17/10/2003 08:53 Re: tuner programming [Re: Daria]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
? I've not personally tried it, but it's definately turned on in the config for the Mk1. It's not compiled in the Mk2 however.

jade:~/empeg/hijack/v300/arch/arm/def-configs$ grep CONFIG_RADIO_EMPEG empeg-car1
CONFIG_RADIO_EMPEG=y

jade:~/empeg/hijack/v300/arch/arm/def-configs$ grep CONFIG_RADIO_EMPEG empeg-car2

jade:~/empeg/hijack/v300/drivers/char$ grep CONFIG_RADIO_EMPEG Config.in
dep_tristate 'empeg-car FM Radio support' CONFIG_RADIO_EMPEG $CONFIG_VIDEO_DEV

Top
#185071 - 17/10/2003 09:04 Re: tuner programming [Re: tman]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
You're right. I'm blind.

Top
#185072 - 17/10/2003 09:08 Re: tuner programming [Re: Daria]
Daria
carpal tunnel

Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
Eh. I guess the answer is trace tuner + fake tuner plus sit around tuning to different stations and seeing what happens.

Top