(ok sourceforge ate my previous mail, so here it is again without the
dmesg output, I'll post it separately)

So, I still can't get the radio on this card working, but I've tried
some debugging options and it seems that the tda9887 produces different
output each time I run the ivtv-radio tool, even though I use the same
parameters... wierd.

The attached logs should be self explaining - just note that I stripped
the attempt logs for cx25840 entries in order to keep the size down.

Maybe someone on this list can use this information and fix a solution -
I don't have enough knowledge of the inner workings of this particular card.
If anyone need more testing and info on this topic, just let me know :)

/Miwer


first attempt:

# ivtv-radio -d /dev/v4l/radio0 -f 96.1

myth ivtv: Allocate encoder radio stream
myth tuner: tv 0x1b 0x6f 0xce 0x02
myth tda9885/6/7: configure for: Radio Stereo
myth tda9885/6/7: writing: b=0x0c c=0x90 e=0x1d
myth tda9885/6/7: write: byte B 0x0c
myth B0   video mode      : sound trap
myth B1   auto mute fm    : no
myth B2   carrier mode    : QSS
myth B3-4 tv sound/radio  : FM/radio
myth B5   force mute audio: no
myth B6   output port 1   : low (active)
myth B7   output port 2   : low (active)
myth tda9885/6/7: write: byte C 0x90
myth C0-4 top adjustment  : 0 dB
myth C5-6 de-emphasis     : no
myth C7   audio gain      : -6
myth tda9885/6/7: write: byte E 0x1d
myth E0-1 sound carrier   : 5.5 MHz
myth E6   l pll ganting   : 13
myth E2-4 video if        : 44 MHz
myth E7   vif agc output  : fm radio carrier afc
myth --
myth tda9885/6/7: read: 0x88
myth after power on : no
myth afc            : -112.5 kHz
myth fmif level     : low
myth afc window     : out
myth vfi level      : high
myth tuner: radio freq set to 0.00
myth tuner: radio freq (0.00) out of range (65-108)
myth tuner: radio freq set to 96.06
myth tuner: radio 0x06 0xac 0xce 0xa4
myth tuner: tv 0x08 0x70 0xce 0x01
myth tuner: tv freq set to 647.25
myth tuner: tv 0x2a 0xe3 0xce 0x04
myth tda9885/6/7: configure for: PAL-BG
myth tda9885/6/7: writing: b=0x14 c=0x70 e=0x09
myth tda9885/6/7: write: byte B 0x14
myth B0   video mode      : sound trap
myth B1   auto mute fm    : no
myth B2   carrier mode    : QSS
myth B3-4 tv sound/radio  : FM/TV
myth B5   force mute audio: no
myth B6   output port 1   : low (active)
myth B7   output port 2   : low (active)
myth tda9885/6/7: write: byte C 0x70
myth C0-4 top adjustment  : 0 dB
myth C5-6 de-emphasis     : 50
myth C7   audio gain      : 0
myth tda9885/6/7: write: byte E 0x09
myth E0-1 sound carrier   : 5.5 MHz
myth E6   l pll ganting   : 13
myth E2-4 video if        : 38.9 MHz
myth E5   tuner gain      : normal
myth E7   vif agc output  : pin3+pin22 port
myth --
myth tda9885/6/7: read: 0xe0
myth after power on : no
myth afc            : - 12.5 kHz
myth fmif level     : high
myth afc window     : in
myth vfi level      : high
myth ivtv: Allocate encoder radio stream
myth tuner: tv 0x1b 0x6f 0xce 0x02
myth tda9885/6/7: configure for: Radio Stereo
myth tda9885/6/7: writing: b=0x0c c=0x90 e=0x1d
myth tda9885/6/7: write: byte B 0x0c
myth B0   video mode      : sound trap
myth B1   auto mute fm    : no
myth B2   carrier mode    : QSS
myth B3-4 tv sound/radio  : FM/radio
myth B5   force mute audio: no
myth B6   output port 1   : low (active)
myth B7   output port 2   : low (active)
myth tda9885/6/7: write: byte C 0x90
myth C0-4 top adjustment  : 0 dB
myth C5-6 de-emphasis     : no
myth C7   audio gain      : -6
myth tda9885/6/7: write: byte E 0x1d
myth E0-1 sound carrier   : 5.5 MHz
myth E6   l pll ganting   : 13
myth E2-4 video if        : 44 MHz
myth E7   vif agc output  : fm radio carrier afc
myth --
myth tda9885/6/7: read: 0x84
myth after power on : no
myth afc            : - 62.5 kHz
myth fmif level     : low
myth afc window     : out
myth vfi level      : high
myth tuner: radio freq set to 96.06
myth tuner: radio 0x06 0xac 0xce 0xa4
myth tuner: radio freq set to 96.06
myth tuner: radio 0x06 0xac 0xce 0xa4
myth tuner: radio freq set to 96.06
myth tuner: radio 0x06 0xac 0xce 0xa4

(CTRL-C and cleanup)

myth tuner: tv 0x08 0x70 0xce 0x01
myth tuner: tv freq set to 647.25
myth tuner: tv 0x2a 0xe3 0xce 0x04
myth tda9885/6/7: configure for: PAL-BG
myth tda9885/6/7: writing: b=0x14 c=0x70 e=0x09
myth tda9885/6/7: write: byte B 0x14
myth B0   video mode      : sound trap
myth B1   auto mute fm    : no
myth B2   carrier mode    : QSS
myth B3-4 tv sound/radio  : FM/TV
myth B5   force mute audio: no
myth B6   output port 1   : low (active)
myth B7   output port 2   : low (active)
myth tda9885/6/7: write: byte C 0x70
myth C0-4 top adjustment  : 0 dB
myth C5-6 de-emphasis     : 50
myth C7   audio gain      : 0
myth tda9885/6/7: write: byte E 0x09
myth E0-1 sound carrier   : 5.5 MHz
myth E6   l pll ganting   : 13
myth E2-4 video if        : 38.9 MHz
myth E5   tuner gain      : normal
myth E7   vif agc output  : pin3+pin22 port
myth --
myth tda9885/6/7: read: 0xe0
myth after power on : no
myth afc            : - 12.5 kHz
myth fmif level     : high
myth afc window     : in
myth vfi level      : high

second attempt:

# ivtv-radio -d /dev/v4l/radio0 -f 96.1

myth ivtv: Allocate encoder radio stream
myth cx25840: decoder disable output
myth tuner: tv 0x1b 0x6f 0xce 0x02
myth tda9885/6/7: configure for: Radio Stereo
myth tda9885/6/7: writing: b=0x0c c=0x90 e=0x1d
myth tda9885/6/7: write: byte B 0x0c
myth B0   video mode      : sound trap
myth B1   auto mute fm    : no
myth B2   carrier mode    : QSS
myth B3-4 tv sound/radio  : FM/radio
myth B5   force mute audio: no
myth B6   output port 1   : low (active)
myth B7   output port 2   : low (active)
myth tda9885/6/7: write: byte C 0x90
myth C0-4 top adjustment  : 0 dB
myth C5-6 de-emphasis     : no
myth C7   audio gain      : -6
myth tda9885/6/7: write: byte E 0x1d
myth E0-1 sound carrier   : 5.5 MHz
myth E6   l pll ganting   : 13
myth E2-4 video if        : 44 MHz
myth E7   vif agc output  : fm radio carrier afc
myth --
myth tda9885/6/7: read: 0x90
myth after power on : no
myth afc            : +187.5 kHz [max]
myth fmif level     : low
myth afc window     : out
myth vfi level      : high
myth tuner: radio freq set to 96.06
myth tuner: radio 0x06 0xac 0xce 0xa4
myth tuner: radio freq set to 96.06
myth tuner: radio 0x06 0xac 0xce 0xa4
myth tuner: tv 0x08 0x70 0xce 0x01
myth tuner: tv freq set to 647.25
myth tuner: tv 0x2a 0xe3 0xce 0x04
myth tda9885/6/7: configure for: PAL-BG
myth tda9885/6/7: writing: b=0x14 c=0x70 e=0x09
myth tda9885/6/7: write: byte B 0x14
myth B0   video mode      : sound trap
myth B1   auto mute fm    : no
myth B2   carrier mode    : QSS
myth B3-4 tv sound/radio  : FM/TV
myth B5   force mute audio: no
myth B6   output port 1   : low (active)
myth B7   output port 2   : low (active)
myth tda9885/6/7: write: byte C 0x70
myth C0-4 top adjustment  : 0 dB
myth C5-6 de-emphasis     : 50
myth C7   audio gain      : 0
myth tda9885/6/7: write: byte E 0x09
myth E0-1 sound carrier   : 5.5 MHz
myth E6   l pll ganting   : 13
myth E2-4 video if        : 38.9 MHz
myth E5   tuner gain      : normal
myth E7   vif agc output  : pin3+pin22 port
myth --
myth tda9885/6/7: read: 0xfe
myth after power on : no
myth afc            : + 12.5 kHz
myth fmif level     : high
myth afc window     : in
myth vfi level      : high
myth ivtv: Allocate encoder radio stream
myth tuner: tv 0x1b 0x6f 0xce 0x02
myth tda9885/6/7: configure for: Radio Stereo
myth tda9885/6/7: writing: b=0x0c c=0x90 e=0x1d
myth tda9885/6/7: write: byte B 0x0c
myth B0   video mode      : sound trap
myth B1   auto mute fm    : no
myth B2   carrier mode    : QSS
myth B3-4 tv sound/radio  : FM/radio
myth B5   force mute audio: no
myth B6   output port 1   : low (active)
myth B7   output port 2   : low (active)
myth tda9885/6/7: write: byte C 0x90
myth C0-4 top adjustment  : 0 dB
myth C5-6 de-emphasis     : no
myth C7   audio gain      : -6
myth tda9885/6/7: write: byte E 0x1d
myth E0-1 sound carrier   : 5.5 MHz
myth E6   l pll ganting   : 13
myth E2-4 video if        : 44 MHz
myth E7   vif agc output  : fm radio carrier afc
myth --
myth tda9885/6/7: read: 0x90
myth after power on : no
myth afc            : +187.5 kHz [max]
myth fmif level     : low
myth afc window     : out
myth vfi level      : high
myth tuner: radio freq set to 96.06
myth tuner: radio 0x06 0xac 0xce 0xa4
myth tuner: radio freq set to 96.06
myth tuner: radio 0x06 0xac 0xce 0xa4
myth tuner: radio freq set to 96.06
myth tuner: radio 0x06 0xac 0xce 0xa4
myth ivtv: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB 
total)
myth ivtv: Setup VBI API header 0x0000bd0c pkts 1 buffs 48 ln 34 sz 64
myth ivtv: Setup VBI start 0x002fea04 frames 48 fpi 1 lines 0x00000140

(CTRL-C and cleanup)

myth tuner: tv 0x08 0x70 0xce 0x01
myth tuner: tv freq set to 647.25
myth tuner: tv 0x2a 0xe3 0xce 0x04
myth tda9885/6/7: configure for: PAL-BG
myth tda9885/6/7: writing: b=0x14 c=0x70 e=0x09
myth tda9885/6/7: write: byte B 0x14
myth B0   video mode      : sound trap
myth B1   auto mute fm    : no
myth B2   carrier mode    : QSS
myth B3-4 tv sound/radio  : FM/TV
myth B5   force mute audio: no
myth B6   output port 1   : low (active)
myth B7   output port 2   : low (active)
myth tda9885/6/7: write: byte C 0x70
myth C0-4 top adjustment  : 0 dB
myth C5-6 de-emphasis     : 50
myth C7   audio gain      : 0
myth tda9885/6/7: write: byte E 0x09
myth E0-1 sound carrier   : 5.5 MHz
myth E6   l pll ganting   : 13
myth E2-4 video if        : 38.9 MHz
myth E5   tuner gain      : normal
myth E7   vif agc output  : pin3+pin22 port
myth --
myth tda9885/6/7: read: 0xfe
myth after power on : no
myth afc            : + 12.5 kHz
myth fmif level     : high
myth afc window     : in
myth vfi level      : high

third attempt:

# ivtv-radio -d /dev/v4l/radio0 -f 96.1

myth ivtv: Allocate encoder radio stream
myth tuner: tv 0x1b 0x6f 0xce 0x02
myth tda9885/6/7: configure for: Radio Stereo
myth tda9885/6/7: writing: b=0x0c c=0x90 e=0x1d
myth tda9885/6/7: write: byte B 0x0c
myth B0   video mode      : sound trap
myth B1   auto mute fm    : no
myth B2   carrier mode    : QSS
myth B3-4 tv sound/radio  : FM/radio
myth B5   force mute audio: no
myth B6   output port 1   : low (active)
myth B7   output port 2   : low (active)
myth tda9885/6/7: write: byte C 0x90
myth C0-4 top adjustment  : 0 dB
myth C5-6 de-emphasis     : no
myth C7   audio gain      : -6
myth tda9885/6/7: write: byte E 0x1d
myth E0-1 sound carrier   : 5.5 MHz
myth E6   l pll ganting   : 13
myth E2-4 video if        : 44 MHz
myth E7   vif agc output  : fm radio carrier afc
myth --
myth tda9885/6/7: read: 0x9e
myth after power on : no
myth afc            : + 12.5 kHz
myth fmif level     : low
myth afc window     : out
myth vfi level      : high
myth tuner: radio freq set to 96.06
myth tuner: radio 0x06 0xac 0xce 0xa4
myth tuner: radio freq set to 96.06
myth tuner: radio 0x06 0xac 0xce 0xa4
myth tuner: tv 0x08 0x70 0xce 0x01
myth tuner: tv freq set to 647.25
myth tuner: tv 0x2a 0xe3 0xce 0x04
myth tda9885/6/7: configure for: PAL-BG
myth tda9885/6/7: writing: b=0x14 c=0x70 e=0x09
myth tda9885/6/7: write: byte B 0x14
myth B0   video mode      : sound trap
myth B1   auto mute fm    : no
myth B2   carrier mode    : QSS
myth B3-4 tv sound/radio  : FM/TV
myth B5   force mute audio: no
myth B6   output port 1   : low (active)
myth B7   output port 2   : low (active)
myth tda9885/6/7: write: byte C 0x70
myth C0-4 top adjustment  : 0 dB
myth C5-6 de-emphasis     : 50
myth C7   audio gain      : 0
myth tda9885/6/7: write: byte E 0x09
myth E0-1 sound carrier   : 5.5 MHz
myth E6   l pll ganting   : 13
myth E2-4 video if        : 38.9 MHz
myth E5   tuner gain      : normal
myth E7   vif agc output  : pin3+pin22 port
myth --
myth tda9885/6/7: read: 0xe0
myth after power on : no
myth afc            : - 12.5 kHz
myth fmif level     : high
myth afc window     : in
myth vfi level      : high
myth ivtv: Allocate encoder radio stream
myth tuner: tv 0x1b 0x6f 0xce 0x02
myth tda9885/6/7: configure for: Radio Stereo
myth tda9885/6/7: writing: b=0x0c c=0x90 e=0x1d
myth tda9885/6/7: write: byte B 0x0c
myth B0   video mode      : sound trap
myth B1   auto mute fm    : no
myth B2   carrier mode    : QSS
myth B3-4 tv sound/radio  : FM/radio
myth B5   force mute audio: no
myth B6   output port 1   : low (active)
myth B7   output port 2   : low (active)
myth tda9885/6/7: write: byte C 0x90
myth C0-4 top adjustment  : 0 dB
myth C5-6 de-emphasis     : no
myth C7   audio gain      : -6
myth tda9885/6/7: write: byte E 0x1d
myth E0-1 sound carrier   : 5.5 MHz
myth E6   l pll ganting   : 13
myth E2-4 video if        : 44 MHz
myth E7   vif agc output  : fm radio carrier afc
myth --
myth tda9885/6/7: read: 0x80
myth after power on : no
myth afc            : - 12.5 kHz
myth fmif level     : low
myth afc window     : out
myth vfi level      : high
myth tuner: radio freq set to 96.06
myth tuner: radio 0x06 0xac 0xce 0xa4
myth tuner: radio freq set to 96.06
myth tuner: radio 0x06 0xac 0xce 0xa4
myth tuner: radio freq set to 96.06
myth tuner: radio 0x06 0xac 0xce 0xa4
myth ivtv: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB 
total)
myth ivtv: Setup VBI API header 0x0000bd0c pkts 1 buffs 48 ln 34 sz 64
myth ivtv: Setup VBI start 0x002fea04 frames 48 fpi 1 lines 0x00000140

(CTRL-C and cleanup)

myth tuner: tv 0x08 0x70 0xce 0x01
myth tuner: tv freq set to 647.25
myth tuner: tv 0x2a 0xe3 0xce 0x04
myth tda9885/6/7: configure for: PAL-BG
myth tda9885/6/7: writing: b=0x14 c=0x70 e=0x09
myth tda9885/6/7: write: byte B 0x14
myth B0   video mode      : sound trap
myth B1   auto mute fm    : no
myth B2   carrier mode    : QSS
myth B3-4 tv sound/radio  : FM/TV
myth B5   force mute audio: no
myth B6   output port 1   : low (active)
myth B7   output port 2   : low (active)
myth tda9885/6/7: write: byte C 0x70
myth C0-4 top adjustment  : 0 dB
myth C5-6 de-emphasis     : 50
myth C7   audio gain      : 0
myth tda9885/6/7: write: byte E 0x09
myth E0-1 sound carrier   : 5.5 MHz
myth E6   l pll ganting   : 13
myth E2-4 video if        : 38.9 MHz
myth E5   tuner gain      : normal
myth E7   vif agc output  : pin3+pin22 port
myth --
myth tda9885/6/7: read: 0xe0
myth after power on : no
myth afc            : - 12.5 kHz
myth fmif level     : high
myth afc window     : in
myth vfi level      : high

alias char-major-81 videodev
alias char-major-81-0 ivtv
alias char-major-81-1 ivtv
options ivtv tda9887=0,0
options tda9887 port1=0 port2=0 debug=3
options tuner debug=1

Reply via email to