FV2K Audio paths (was Re: GPIO readout from FV2K)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi Shaun,

Bingo!
(Slapping myself on the head)

0x8000 is used to toggle the Output Enable line on the HEF4052. I haven't
looked at the card definitions lately, so I didn't notice the changes made
to the FV3K definition. Now it matches the FV3K definitions other than for
TV viewing (due to Chip differences, I see that FV3K basically mutes the
analog audio paths and select a different audio out instead).

Somehow on my card the default value for that bit goes to 0, so I never
had audio problems unlike other folks.

[I wonder if FV3K TV audio would also work using the FV2K settings?]

This means that FV2K muting can also be controlled using the Enable line
(which makes more sense than my earlier attempt to use LINE1, which was
silent on my card).

I'm also taking a stab in the dark, and copied over the definition for
the radio entry, to include the gpiomask from the FV3K settings.
Someone ought to try this out and see if radio works properly.

T.C.
----
Wan Tat Chee (Lecturer)
School of Computer Science, Univ. Science Malaysia,
11800 Minden, Penang, Malaysia.          Ofc Ph: +604 653-3888 x 3617
Internet: tcwan@xxxxxxxxx            Web: http://nrg.cs.usm.my/~tcwan
GPG Key : http://nrg.cs.usm.my/~tcwan/tcw_gpg-20030322.asc
F'print : DCF2 B9B2 FA4D 1208 AD59  14CA 9A8F F54D B2C4 63C7

On Tue, 8 Apr 2003, Shaun Jackman wrote:

> Here's the very minimum diff to enable sound on my FV2k. It sets one 
> extra bit (bit 15) of the gpiomask. Unless this causes somebody 
> else's card to break, I suggest this be incorporated into the main 
> tree:
> 
> Cheers,
> Shaun
> 
> 
> --- saa7134-cards.c-    Tue Apr  8 04:18:26 2003
> +++ saa7134-cards.c     Tue Apr  8 21:42:31 2003
> @@ -108,7 +108,7 @@
>                 .name           = "LifeView FlyVIDEO2000",
>                 .audio_clock    = 0x00200000,
>                 .tuner_type     = TUNER_LG_PAL_NEW_TAPC,
> -               .gpiomask       = 0x6000,
> +               .gpiomask       = 0xe000,
>                 .inputs         = {{
>                         .name = name_tv,
>                         .vmux = 1,
> 
> 
> On Tue April 8, 2003 12h07, you wrote:
> > I still need to make the following change to the gpiomask to enable
> > sound on my card. It does not work without this line. I found
> > though my previous audio_clock change (to 0x00187de7) was not
> > necessary. I expect it's one single bit of the seven that I've
> > turned on that makes audio work. My next work will be to find out
> > exactly which bit.
> >
> > Cheers,
> > Shaun
> >
> >
> > --- saa7134-cards.c-    Tue Apr  8 04:18:26 2003
> > +++ saa7134-cards.c     Tue Apr  8 12:01:06 2003
> > @@ -108,7 +108,7 @@
> >                 .name           = "LifeView FlyVIDEO2000",
> >                 .audio_clock    = 0x00200000,
> >                 .tuner_type     = TUNER_LG_PAL_NEW_TAPC,
> > -               .gpiomask       = 0x6000,
> > +               .gpiomask       = 0x8018e700,
> >                 .inputs         = {{
> >                         .name = name_tv,
> >                         .vmux = 1,
> >
> > On Mon April 7, 2003 03h41, you wrote:
> > > Gerd,
> > >
> > > My dmesg dump for GPIO detection (FlyVideo 2000, PAL B/G, no FM
> > > radio, no remote, no EEPROM) using Apr 3 snapshot:
> > >
> > > saa7130[0]: found at 00:0b.0, rev: 1, irq: 5, latency: 32, mmio:
> > > 0xe5000000
> > > saa7130[0]: subsystem: 1131:0000, board: LifeView FlyVIDEO2000
> > > [card=3,insmod option]
> > > saa7130[0]: flyvideo: gpio is 0x30500
> > > i2c-core.o: adapter saa7130[0] registered as adapter 0.
> > > saa7130[0]: Huh, no eeprom present (err=-5)?
> > > i2c-core.o: driver i2c TV tuner driver registered.
> > > tuner: chip found @ 0xc2
> > > tuner: type set to 37 (LG PAL (newer TAPC series))
> > > i2c-core.o: client [LG PAL (newer TAPC series)] registered to
> > > adapter [saa7130[0]](pos. 0).
> > >
> > > T.C.
> > > ----
> > > Wan Tat Chee (Lecturer)
> > > School of Computer Science, Univ. Science Malaysia,
> > > 11800 Minden, Penang, Malaysia.          Ofc Ph: +604 653-3888 x
> > > 3617 Internet: tcwan@xxxxxxxxx            Web:
> > > http://nrg.cs.usm.my/~tcwan GPG Key :
> > > http://nrg.cs.usm.my/~tcwan/tcw_gpg-20030322.asc F'print : DCF2
> > > B9B2 FA4D 1208 AD59  14CA 9A8F F54D B2C4 63C7
> 
> 
> 
> 
--- saa7134-cards.c.orig	2003-03-26 21:54:27.000000000 +0800
+++ saa7134-cards.c	2003-04-09 15:10:59.000000000 +0800
@@ -102,7 +102,7 @@
 		.name           = "LifeView FlyVIDEO2000",
 		.audio_clock    = 0x00200000,
 		.tuner_type     = TUNER_LG_PAL_NEW_TAPC,
-		.gpiomask       = 0x6000,
+		.gpiomask       = 0xe000,
 		.inputs         = {{
 			.name = name_tv,
 			.vmux = 1,
@@ -128,10 +128,12 @@
                 .radio = {
                         .name = name_radio,
                         .amux = LINE2,
+			.gpio = 0x2000,
                 },
 		.mute = {
 			.name = name_mute,
-			.amux = LINE1,
+			.amux = LINE2,
+			.gpio = 0x8000,
 		},
 	},
 	[SAA7134_BOARD_EMPRESS] = {

[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux