Re: AVerMedia AVerTV GO 007 FM, no radio sound (with routing enabled)

2009-07-17 Thread Mauro Carvalho Chehab
Em Fri, 17 Jul 2009 10:57:38 +0700
Pham Thanh Nam phamthanhnam@gmail.com escreveu:

 Hi
 So, should we add an option for this card? For example:
 modprobe saa7134 card=57 radioontv

IMO, we should just apply a patch doing the right thing.

I couldn't find any explanation for the change. Let's just fix it with a good
explanation and hope that this will work with all AverTV GO 007 FM boards. If
not, someone will complain.



Cheers,
Mauro
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: AVerMedia AVerTV GO 007 FM, no radio sound (with routing enabled)

2009-07-17 Thread hermann pitton
Hi,

Am Freitag, den 17.07.2009, 05:19 -0300 schrieb Mauro Carvalho Chehab:
 Em Fri, 17 Jul 2009 10:57:38 +0700
 Pham Thanh Nam phamthanhnam@gmail.com escreveu:
 
  Hi
  So, should we add an option for this card? For example:
  modprobe saa7134 card=57 radioontv
 
 IMO, we should just apply a patch doing the right thing.
 
 I couldn't find any explanation for the change. Let's just fix it with a good
 explanation and hope that this will work with all AverTV GO 007 FM boards. If
 not, someone will complain.
 
 
 
 Cheers,
 Mauro

have looked up some details and agree with Mauro here.

First, Avermedia cards on the saa7134 driver are all identified safely
by PCI subsystem. No problems and we deal with GO 007 FM tda8275c1 and
not the later tda8275ac1.

Assaf reported the radio working, _but later_ he reported also that the
frequencies are off. I saw the same later too and lots of ghosting radio
stations with Asus P7131 Dual until Hartmut added radio IF support for
saa7133/35/31e and all tda8290 tuners with the 5.5MHz filter.

LINE1 was never changed for radio on the GO 007. Assaf's patch came in
with a bunch of patches Nickolay collected that time.
http://linuxtv.org/hg/v4l-dvb/rev/291d5d1089eb

Then Hartmut added correct basic radio IF support and I guess this did
break the previous ghost radio.
http://linuxtv.org/hg/v4l-dvb/rev/b9edd4165113

Else there was only this change unrelated to radio.


hg export 5481
# HG changeset patch
# User Mauro Carvalho Chehab mche...@infradead.org
# Date 1175168859 10800
# Node ID 9f42fb6940eeaa63305b1048811ea25d74c9e806
# Parent  bcf83c0130363da08eabac5092013ed6fec1d9eb
4linux: Fix audio input for AverTv Go 007

From: Damian Minkov damen...@damencho.com

Fix audio input source for capturing(playing) audio on AverTv Go 007 cards.

Signed-off-by: Damian Minkov damen...@damencho.com
Signed-off-by: Andrew Morton a...@linux-foundation.org
Signed-off-by: Mauro Carvalho Chehab mche...@infradead.org

diff -r bcf83c013036 -r 9f42fb6940ee 
linux/drivers/media/video/saa7134/saa7134-cards.c
--- a/linux/drivers/media/video/saa7134/saa7134-cards.c Thu Mar 29 08:47:04 
2007 -0300
+++ b/linux/drivers/media/video/saa7134/saa7134-cards.c Thu Mar 29 08:47:39 
2007 -0300
@@ -1544,12 +1544,12 @@
},{
.name = name_comp1,
.vmux = 0,
-   .amux = LINE2,
+   .amux = LINE1,
.gpio = 0x02,
},{
.name = name_svideo,
.vmux = 6,
-   .amux = LINE2,
+   .amux = LINE1,
.gpio = 0x02,
}},
.radio = {
--

And furthermore it has .gpiomask = 0x0033
and gpio21 is set high for radio and low for TV.

.radio = {
.name = name_radio,
.amux = LINE1,
.gpio = 0x0031,
},

That is why changing the radio amux to TV just works.

Cheers,
Hermann




--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


AVerMedia AVerTV GO 007 FM, no radio sound (with routing enabled)

2009-07-16 Thread Laszlo Kustan
Hi all,
I have problems with my AVerMedia AVerTV GO 007 FM tuner, kernel
version 2.6.28. TV and remote are working correctly, but the radio
does not have any sound.
I already tried the steps described in
http://www.linuxtv.org/wiki/index.php/AVerMedia_AVerTV_GO_007_FM but
still no success. According to this:
The *latest revision*(PCI ID 1461:f31f) of the Avermedia AVerTV GO
007 FM works out of the box in recent kernels
but it's not the case for me.
/dev/radio0 is created, but radio is not functional. I can tune to
different frequencies, but no change in the sound. The antenna icon
of gnomeradio does not show any signal.
If I try to scan with gnomeradio, it dies.
I tried different tuner=xx insmod options, the maximum I could achieve
was that gnomeradio finds some stations and the antenna icon shows
that there is a signal, but still cannot hear anything.
I enabled sound routing (that's how tvtime works correctly), but the
radio is not functional yet:
#!/bin/sh
sox -c 2 -s -r 32000 -t ossdsp /dev/dsp1 -t ossdsp -r 32000 /dev/dsp 
gnomeradio --mixer=/dev/mixer:pcm
wait gnomeradio
t=`pidof sox`;
kill $t;
amixer -c 0 sset PCM 80%,80%  unmute

dmesg output:
[ 1360.408481] saa7130/34: v4l2 driver version 0.2.15 loaded
[ 1360.408582] saa7133[0]: found at :01:06.0, rev: 208, irq: 19,
latency: 64, mmio: 0xd800
[ 1360.408593] saa7133[0]: subsystem: 1461:f31f, board: Avermedia
AVerTV GO 007 FM [card=57,autodetected]
[ 1360.408663] saa7133[0]: board init: gpio is 80185
[ 1360.408793] input: saa7134 IR (Avermedia AVerTV GO as
/devices/pci:00/:00:04.0/:01:06.0/input/input7
[ 1360.568037] saa7133[0]: i2c eeprom 00: 61 14 1f f3 ff ff ff ff ff
ff ff ff ff ff ff ff
[ 1360.568054] saa7133[0]: i2c eeprom 10: ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff
[ 1360.568068] saa7133[0]: i2c eeprom 20: ff d2 fe ff ff ff ff ff ff
ff ff ff ff ff ff ff
[ 1360.568082] saa7133[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff
[ 1360.568094] saa7133[0]: i2c eeprom 40: ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff
[ 1360.568107] saa7133[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff
[ 1360.568120] saa7133[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff
[ 1360.568133] saa7133[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff
[ 1360.568146] saa7133[0]: i2c eeprom 80: ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff
[ 1360.568159] saa7133[0]: i2c eeprom 90: ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff
[ 1360.568172] saa7133[0]: i2c eeprom a0: ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff
[ 1360.568185] saa7133[0]: i2c eeprom b0: ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff
[ 1360.568198] saa7133[0]: i2c eeprom c0: ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff
[ 1360.568211] saa7133[0]: i2c eeprom d0: ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff
[ 1360.568224] saa7133[0]: i2c eeprom e0: ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff
[ 1360.568237] saa7133[0]: i2c eeprom f0: ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff
[ 1360.608210] tuner 2-004b: chip found @ 0x96 (saa7133[0])
[ 1360.688029] tda829x 2-004b: setting tuner address to 61
[ 1360.752032] tda829x 2-004b: type set to tda8290+75
[ 1365.492142] saa7133[0]: registered device video0 [v4l2]
[ 1365.492181] saa7133[0]: registered device vbi0
[ 1365.492218] saa7133[0]: registered device radio0
[ 1365.502229] saa7134 ALSA driver for DMA sound loaded
[ 1365.502288] saa7133[0]/alsa: saa7133[0] at 0xd800 irq 19
registered as card -2

On the tuner I see a SAA7131 and a TDA8275 integrated circuit.
Please help me get my radio working.
Thanks, Laszlo
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: AVerMedia AVerTV GO 007 FM, no radio sound (with routing enabled)

2009-07-16 Thread Pham Thanh Nam
I read somewhere that the radio had ever worked for this card but has
stopped working with newer kernels. I had the same problem when I used
my card (AverMedia AverTV GO 007 FM Plus) with card=57 before. Radio had
worked with old kernel versions.
Try this:
hg clone http://linuxtv.org/hg/v4l-dvb
Edit v4l-dvb/linux/drivers/media/video/saa7134/saa7134-cards.c, go to
entry [SAA7134_BOARD_AVERMEDIA_GO_007_FM], in .radio = { ... },
change .amux = LINE1 to .amux = TV
make
then
sudo make install
and reboot.
I don't know why someone has changed it to LINE1. But if the
modification works for you, I think we need to modify a bit.
Please let us know if it works.

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: AVerMedia AVerTV GO 007 FM, no radio sound (with routing enabled)

2009-07-16 Thread hermann pitton
Hi Pham Thanh Nam,

you are exactly at the point!

Am Freitag, den 17.07.2009, 08:32 +0700 schrieb Pham Thanh Nam:
 I read somewhere that the radio had ever worked for this card but has
 stopped working with newer kernels. I had the same problem when I used
 my card (AverMedia AverTV GO 007 FM Plus) with card=57 before. Radio had
 worked with old kernel versions.
 Try this:
 hg clone http://linuxtv.org/hg/v4l-dvb
 Edit v4l-dvb/linux/drivers/media/video/saa7134/saa7134-cards.c, go to
 entry [SAA7134_BOARD_AVERMEDIA_GO_007_FM], in .radio = { ... },
 change .amux = LINE1 to .amux = TV
 make
 then
 sudo make install
 and reboot.
 I don't know why someone has changed it to LINE1. But if the
 modification works for you, I think we need to modify a bit.
 Please let us know if it works.

The AVerMedia AVerTV GO 007 FM was the first card ever reported working
with the new saa7131e chip, including the previously external tda8290
demodulator built into that chip, by Assaf Gillat.

This did include working radio on LINE* input.

No other later card does have such and all LINE* input for radio was not
working on all other later cards.

However, all later cards did use gpio21 to switch those stuff into radio
mode, having it either high or later also low. (vice versa/swapped)

That single gpio did trigger a cascade of further switches on later
cards, starting with selecting the right antenna input on a further
microscopic switch later in the row and routing the radio IF to the TV
input for decoding on chip.

This did also include that the radio IF has to go over that
extra/special 7.5MHz ceramic filter on these cards, also present on the
007.

I can tell, that this huge ceramic filter on recent cards is not any
longer easily to identify, there are SMD replacements for it, and with
recent circuits for additional external LNAs, all looks even much more
interesting ;)

Fact is so far, with the previous reports the card should work with
kernels around 2.6.13,14,15.

Since all other later cards did not work for radio that way, Hartmut
introduced decoding from radio IF at amux TV (saa7133/35/31e only) and
that maybe did break this one.

Or the other way round, before he introduced that, it might have been
working. I don't have the specs, but as long nothing else is reported, I
can't exclude that the tda8275 in combination with a tda8290 can deliver
base band radio stereo sound to some pair of stereo LINE input of the
saa7131e.

Cheers,
Hermann








 

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: AVerMedia AVerTV GO 007 FM, no radio sound (with routing enabled)

2009-07-16 Thread Pham Thanh Nam
Hi
So, should we add an option for this card? For example:
modprobe saa7134 card=57 radioontv
Regards

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: AVerMedia AVerTV GO 007 FM, no radio sound (with routing enabled)

2009-07-16 Thread Laszlo Kustan
Hi Pham Thanh Nam,
Thanks for your help, now it works correctly!
Cheers, Laszlo

On Fri, Jul 17, 2009 at 4:32 AM, Pham Thanh
Namphamthanhnam@gmail.com wrote:
 change .amux = LINE1 to .amux = TV
 Please let us know if it works.
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html