Hello, v4l folks!

I have been trying for some time to get sound to work on my no-name card
(a 3DeMON TV-Tuner), but so far to no avail. What I need from you is
some guidance as to what the various members of the "tvcard" strcture in
bttv.c are for.

The documentation is pretty useless in regards to this aspect, and it
got me very confused. I tried everything I could through
trial-and-error, but alas, nothing worked. From what I understood, there
are two parts of the struct that involve sound activation:

1. the gpiomask field
2. the audiomux array

The documentation says I need to "figure out" the correct values for
these, perhaps from the Windows drivers. I also found a file in the
Xawtv distribution called "Miro_gpio.txt", but (and that's strange),
none of the values in that file appear in the bttv.c struct at the
"Miro-pro" section.
Then I looked into the .inf file from Windows, and I did find some
values (gpio\GPDATA and gpio\GPOE), and I put the GPOE value into the
gpiomask field, then the GPDATA value in the audiomux array in all the
places, but still no sound initialization, not even a hint as to whether
I was on the right track or not.

The next thing I tried (as written in the docs) was to enable that part
about printing values read from the registers before initializong them
(it said this might help with a "new card"). I initialized the card in
Windows, then I started loadlin, and sure enough, I got some values. I
put one in gpiomask, the other in audiomux (all places), but alas, it
didn't work.

One thing I noticed by doing this is that after I exited Windows
(leaving the card initialized), I could hear sound in Linux no matter
what I did (I even tried a hard-boot, and it still worked, as long as I
didn't enter Windows to reset the sound again). This is interesting, and
goes to show that all I need is those darn values to be able to
initialize the card _from_linux_, to avoid the nasty "boot to Win, then
shutdown and back to Linux" stuff.

Some details about my setup:

I use Linux 2.2.15 on a Slackware 7 GNU/Linux distribution, and I hacked
the bttv.c file from the kernel sources. I also tried the
bttv-7.i-don-t-know-what thingie, but had no luck with that either.
After every modification, I did a
make modules && cp bttv.o /lib/modules/blablabla && rmmod bttv
&& modprobe bttv pll=1 card=20
(20 being the next available slot in the array for the Linux
source-version).
The card works flawlessly in Windows and Linux too (besides this
no-sound thing) and I plugged the speakers directly into the card, so
there is no sound-card/sound-driver/passthru-cable related problem.


Thank you in advance for any help, and for bringing TV to Linux...

Mihnea

--
Mihnea-Costin Grigore          [ "Tenebus Ipsilo Ibinem Catehens" ]
E-mail: [EMAIL PROTECTED]




-- 
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to