Re: [linux-dvb] new driver for: Twinhan Hybrid DTV-DVB 3056 PCI [1822:0022] as card=118 in cardlist.saa7134

2007-12-23 Thread sioux
Hi Terry,

Fedora 8... dependency list
I don't know, I use UBUNTU... it loads by default all the saa7134 modules

Listen FM while DVB-T is running, yes that's right!

Merry Christmas and happy new year to you and all members on this lists.
Sioux.

_
Terry Barnaby ha scritto:
 Hi Sioux,

 Thanks for the info, I now have FM radio.
 I had to load the saa7134_alsa module as well to get the ALSA device,
 my Fedora 8 system had not loaded it by default. I this a minor bug
 in the module dependency lists ?

 I presume it is not possible to listen to stream FM radio
 while streaming DVB TV with this card ?

 Cheers

 Terry

 sioux wrote:
 Hi,
 I am happy to see my patch is ok.
 For audio stream you have to use sox... here is an example:

 sox -r 32000 -w -t alsa hw:1,0 -t alsa hw:0,0

 Ciao
 Sioux.

 __

 Terry Barnaby ha scritto:
 Hi,

 I have tried the sioux.patch on my AzureWave AD-TP500 3056 PCI board.
 With the dvb-fe-tda10045.fw and dvb-fe-tda10046.fw firmware files 
 installed
 in /lib/firmware for Fedora 8. It seems to work fine in DVB mode.

 I now want to try the FM Tuner but am at a loss on how to capture a 
 stream
 from this. Eventually I want to stream the FM audio across the network.
 Any info on:
 1. How can I stream the FM Tuners output using VLC or something else ?
 2. I can see how to tune set the FM Tuners frequency, but how can I 
 get a raw
 data stream from the card using the V4L/DVB API ?

 Some initial pointers would be appreciated.

 Cheers

 Terry

 ___
 linux-dvb mailing list
 linux-dvb@linuxtv.org
 http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

   



___
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb


Re: [linux-dvb] new driver for: Twinhan Hybrid DTV-DVB 3056 PCI [1822:0022] as card=118 in cardlist.saa7134

2007-12-22 Thread sioux
Hi,
I am happy to see my patch is ok.
For audio stream you have to use sox... here is an example:

sox -r 32000 -w -t alsa hw:1,0 -t alsa hw:0,0

Ciao
Sioux.

__

Terry Barnaby ha scritto:
 Hi,

 I have tried the sioux.patch on my AzureWave AD-TP500 3056 PCI board.
 With the dvb-fe-tda10045.fw and dvb-fe-tda10046.fw firmware files installed
 in /lib/firmware for Fedora 8. It seems to work fine in DVB mode.

 I now want to try the FM Tuner but am at a loss on how to capture a stream
 from this. Eventually I want to stream the FM audio across the network.
 Any info on:
 1. How can I stream the FM Tuners output using VLC or something else ?
 2. I can see how to tune set the FM Tuners frequency, but how can I get a raw
   data stream from the card using the V4L/DVB API ?

 Some initial pointers would be appreciated.

 Cheers

 Terry

 ___
 linux-dvb mailing list
 linux-dvb@linuxtv.org
 http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

   

___
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb


Re: [linux-dvb] new driver for: Twinhan Hybrid DTV-DVB 3056 PCI [1822:0022] as card=118 in cardlist.saa7134

2007-12-12 Thread sioux
Strange I received this message... my ISP do not use 212. ips...

Hermann I resend the email.

___


Hi Hermann,

I have been a little busy... but I did the test as you said.

Before to procede with the test and install the patch I have cleared my 
sys as follow:

1. Cleared all previous files under /src/usr/v4l-dvb following:
sudo make clean
sudo make distclean

2. Cleared aliases with sudo gedit /etc/modprobe.d/aliases to the origin as:
alias char-major-81 * videodev
alias char-major-81-* saa7134

3. Cleared the modprobe option with sudo gedit /etc/modprobe.d/options 
to the origin as:
# Enable double-buffering so gstreamer et. al. work
options quickcam compatible=2

# Default hostap to managed mode
options hostap_pci iw_mode=2
options hostap_cs iw_mode=2

4. Cleared the previous saa7134 script under /etc/modprobe.d with sudo 
rm saa*

5. Cleared all the dir V4l-dvb and v4l-app under /usr/src

6. Rebooted the sys...

and this is the virgin dmesg of my Twinhan:

[EMAIL PROTECTED]:~$ dmesg | grep saa
[   37.551793] saa7130/34: v4l2 driver version 0.2.14 loaded
[   37.553908] saa7133[0]: found at :02:09.0, rev: 209, irq: 18, 
latency: 32, mmio: 0xed00
[   37.553917] saa7133[0]: subsystem: 1822:0022, board: UNKNOWN/GENERIC 
[card=0,autodetected]
[   37.553934] saa7133[0]: board init: gpio is 4
[   37.751425] saa7133[0]: i2c eeprom 00: 22 18 22 00 54 20 1c 00 43 43 
a9 1c 55 d2 b2 92
[   37.751443] saa7133[0]: i2c eeprom 10: 00 01 fb 00 ff 20 ff ff ff ff 
ff ff ff ff ff ff
[   37.751458] saa7133[0]: i2c eeprom 20: 01 40 01 02 03 01 01 03 08 ff 
00 10 ff ff ff ff
[   37.751472] saa7133[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff
[   37.751486] saa7133[0]: i2c eeprom 40: ff 21 00 c2 84 10 03 32 15 50 
ff ff ff ff ff ff
[   37.751501] saa7133[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff
[   37.751515] saa7133[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff
[   37.751530] saa7133[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff
[   37.751544] saa7133[0]: i2c eeprom 80: ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff
[   37.751558] saa7133[0]: i2c eeprom 90: ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff
[   37.751573] saa7133[0]: i2c eeprom a0: ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff
[   37.751587] saa7133[0]: i2c eeprom b0: ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff
[   37.751602] saa7133[0]: i2c eeprom c0: ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff
[   37.751616] saa7133[0]: i2c eeprom d0: ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff
[   37.751630] saa7133[0]: i2c eeprom e0: ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff
[   37.751645] saa7133[0]: i2c eeprom f0: ff ff ff ff ff ff ff ff ff ff 
ff ff ff ff ff ff
[   37.753643] saa7133[0]: registered device video0 [v4l2]
[   37.753880] saa7133[0]: registered device vbi0
[   38.044982] saa7134 ALSA driver for DMA sound loaded
[   38.045031] saa7133[0]/alsa: saa7133[0] at 0xed00 irq 18 
registered as card -2
[EMAIL PROTECTED]:~$

Fine,
soon after I tested the Hermann-Sioux collaboration patch as follow:

1. Reinstalled virgin v4l-dvb and  dvb-app with HG clone
2. copied the patch in /usr/src/v4l-dvb and renamed it as sioux.patch
3. launched the command: sudo patch --dry-run -p1  sioux.patch (see 
below the rsults)

[EMAIL PROTECTED]:/usr/src/v4l-dvb$ sudo patch --dry-run -p1  sioux.patch
patching file linux/drivers/media/video/saa7134/saa7134-cards.c
Hunk #1 succeeded at 3601 (offset 1 line).
Hunk #2 succeeded at 4400 (offset 1 line).
Hunk #3 succeeded at 4820 (offset 2 lines).
patching file linux/drivers/media/video/saa7134/saa7134-dvb.c
Hunk #1 succeeded at 779 (offset 1 line).
Hunk #2 succeeded at 1059 (offset 1 line).
patching file linux/drivers/media/video/saa7134/saa7134.h
[EMAIL PROTECTED]:/usr/src/v4l-dvb$

Ok, I diden't see errors... than I made this command: sudo patch -p1  
sioux.patch (see below the rsults)

[EMAIL PROTECTED]:/usr/src/v4l-dvb$ sudo patch -p1  sioux.patch
patching file linux/drivers/media/video/saa7134/saa7134-cards.c
Hunk #1 succeeded at 3601 (offset 1 line).
Hunk #2 succeeded at 4400 (offset 1 line).
Hunk #3 succeeded at 4820 (offset 2 lines).
patching file linux/drivers/media/video/saa7134/saa7134-dvb.c
Hunk #1 succeeded at 779 (offset 1 line).
Hunk #2 succeeded at 1059 (offset 1 line).
patching file linux/drivers/media/video/saa7134/saa7134.h
[EMAIL PROTECTED]:/usr/src/v4l-dvb$


I made some check in saa7134.h, saa7134-cards.c, saa7134-dvb.c with 
gedit and searching for 3056... and this is what I sow:

saa7134.h
starting row 250
#define SAA7134_BOARD_TWINHAN_DTV_DVB_3056 118

_

saa7134-cards.c
starting row 3604

[SAA7134_BOARD_TWINHAN_DTV_DVB_3056] = {
.name   = Twinhan Hybrid DTV-DVB 3056 PCI,
.audio_clock= 0x00187de7,
.tuner_type = TUNER_PHILIPS_TDA8290,
.radio_type = UNSET,
.tuner_addr

Re: [linux-dvb] new driver for: Twinhan Hybrid DTV-DVB 3056 PCI [1822:0022] as card=118 in cardlist.saa7134

2007-12-08 Thread sioux

All  :-)

Sioux is back  :-)

I see my email has generate a  big work...  
Thanks guys


I am happy... even if I hope none of you will get money for that becouse 
otherwise I want some cents for me too. :-)
and also I hope no RIAA or SIAE or any yellow finace police in futures 
days will ring to my door for have done only few stupid testing and 
report on this mail list :-)


So,
Hermann give me instruction what I have to do for test the patch you 
sent me like:


1. what I have to type on my keyboard to test the file you sent (how I 
install that)?

2. what you need for my signed-off?

I told you I am not a developer... just a crazy sioux...

Before start the test I must clean some alias.

Ciao.

P.S.
I don't like give you my signed-off with my real name :-)  if ok I can 
do it with my nick name..

that's ok for you?

_

hermann pitton ha scritto:

Am Dienstag, den 04.12.2007, 01:23 +0100 schrieb hermann pitton:
  

Am Dienstag, den 04.12.2007, 00:23 +0100 schrieb hermann pitton:


[...]
  

Since it is more than six months back, that the card could have been
added, guess I'll try this next pointing at the state of affairs we have
here now.


Missing commas tend to spread ... ;)

diff -r 27b2c6a80826 linux/drivers/media/video/saa7134/saa7134-cards.c
--- a/linux/drivers/media/video/saa7134/saa7134-cards.c Fri Nov 30
18:27:26 2007 +0200
+++ b/linux/drivers/media/video/saa7134/saa7134-cards.c Tue Dec 04
00:06:19 2007 +0100
@@ -3600,6 +3600,36 @@ struct saa7134_board saa7134_boards[] = 
 			.tv = 1,
  

Broken lines, not compatible editors and mail clients ...

I'm back to Mike Isely and will ignore all other stuff not officially
documented, ... until it works.




Hi,

OK, seems we have enough rules and documentation now.

Based on what I seem to know about the card and is prior in this thread
on the linux-dvb ML, the patch is correct. Some spaces, also between
braces, are introduced by checkpatch.pl. Please review.

Sioux, please test and check and Sign-off with me or take at least some
credit for your work on it.

Cheers,
Hermann


 - saa7134: add Twinhan Hybrid DTV-DVB 3056 PCI

 - Thanks go to Sioux for providing code and asking to fix the auto
   detection.

 - S-Video seems to be untested and likely a Composite over S-Video
   input is also there. The remote is not yet investigated.

Signed-off-by: Hermann Pitton [EMAIL PROTECTED]


diff -r 27b2c6a80826 linux/drivers/media/video/saa7134/saa7134-cards.c
--- a/linux/drivers/media/video/saa7134/saa7134-cards.c Fri Nov 30 18:27:26 
2007 +0200
+++ b/linux/drivers/media/video/saa7134/saa7134-cards.c Tue Dec 04 00:06:19 
2007 +0100
@@ -3600,6 +3600,36 @@ struct saa7134_board saa7134_boards[] = 
 			.tv = 1,

}},
},
+   [SAA7134_BOARD_TWINHAN_DTV_DVB_3056] = {
+   .name   = Twinhan Hybrid DTV-DVB 3056 PCI,
+   .audio_clock= 0x00187de7,
+   .tuner_type = TUNER_PHILIPS_TDA8290,
+   .radio_type = UNSET,
+   .tuner_addr = ADDR_UNSET,
+   .radio_addr = ADDR_UNSET,
+   .tuner_config   = 2,
+   .mpeg   = SAA7134_MPEG_DVB,
+   .gpiomask   = 0x020,
+   .inputs = {{
+   .name   = name_tv,
+   .vmux   = 1,
+   .amux   = TV,
+   .tv = 1,
+   }, {
+   .name   = name_comp1,
+   .vmux   = 3,
+   .amux   = LINE1,
+   }, {
+   .name   = name_svideo,
+   .vmux   = 8,
+   .amux   = LINE1,
+   } },
+   .radio = {
+   .name   = name_radio,
+   .amux   = TV,
+   .gpio   = 0x020,
+   },
+   },
 };
 
 const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards);

@@ -4369,7 +4399,13 @@ struct pci_device_id saa7134_pci_tbl[] =
.device   = PCI_DEVICE_ID_PHILIPS_SAA7133,
.subvendor= 0x4e42,
.subdevice= 0x3502,
-   .driver_data  = SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS
+   .driver_data  = SAA7134_BOARD_FLYDVBT_HYBRID_CARDBUS,
+   }, {
+   .vendor   = PCI_VENDOR_ID_PHILIPS,
+   .device   = PCI_DEVICE_ID_PHILIPS_SAA7133,
+   .subvendor= 0x1822, /*Twinhan Technology Co. Ltd*/
+   .subdevice= 0x0022,
+   .driver_data  = SAA7134_BOARD_TWINHAN_DTV_DVB_3056,
},{
/* --- boards without eeprom + subsystem ID --- */
.vendor   = PCI_VENDOR_ID_PHILIPS,
@@ -4782,6 +4818,7 @@ int saa7134_board_init2(struct saa7134_d
case SAA7134_BOARD_ASUSTeK_P7131_DUAL