Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jun 1999 08:15:21 -0700 (PDT)
From:      just matt <matt@dqc.org>
To:        multimedia@FreeBSD.ORG
Subject:   Hauppauge audio (was no sound with fxtv)
Message-ID:  <Pine.BSO.4.10.9906130758290.10124-100000@dqc.org>

next in thread | raw e-mail | index | archive | help

Let me see if I can answer everyone's questions...

Daniel McRobb <dwm@caida.org>
>Have you tried switching to 'Audio Internal' under the fxtv 'Input'
>menu?  Works for me.  I have a model 401 with FM tuner, but it also has
>the MSP3430G-A1:

Yup, I've tried that.  No dice.  

Roger Hardiman <roger@cs.strath.ac.uk>
>> I know it isn't supposed to tune to FM radio stations.
>This is interesting.
>Can you tell me
>a) if the tuner module has 2 external connectors or just 1
>b) can you email me the output of 
>  fxtv -debug startup

a) The tuner has 4 ports on the card, a standard RCA jack (video in), a
standard cable jack (cable tv in), and a stereo line in and stereo line
out standard 1/8" earphone jacks.  Nothing else.

b) 

% fxtv -debug startup
Fxtv v0.48

DETECTED CAPTURE CARD(S) [DRIVER PROBES]:
    bktr0: <BrookTree 878> rev 0x02 int a irq 11 on pci0.4.0
    bti2c0: <bt848 Hard/Soft I2C controller>

SYSCTL MIB VALUES:
    kern.version: FreeBSD 3.1-RELEASE #0: Sun Jan  2 02:59:59 GMT 2000
        matt@192.168.1.69:/usr/src/sys/compile/POSHIZBEST
    
    hw.bt848.card: -1
    hw.bt848.tuner: -1
    hw.bt848.reverse_mute: -1
    hw.bt848.format: -1

TUNER SIGNATURE (0x01 - 0xff):
    00 00 00 00 00 00 00 00 01 00 01 00 02 00 00 00
    01 36 00 08 10 d7 bf ef 26 2a 00 08 ea 00 00 00
    00 00 00 00 00 94 07 28 01 00 00 00 68 f9 00 08
    d4 d7 bf 30 1f 33 07 08 0a 00 00 00 eb d6 bf ef
    01 00 00 00 5c 38 10 28 00 00 00 00 00 94 07 28
    81 36 00 08 4f 97 04 08 b8 14 00 08 68 f9 00 08
    00 00 00 00 44 fa 21 28 01 0d 11 28 68 d7 bf ef
    e1 2c 00 08 68 f9 00 08 68 d7 bf ef 7d 2a 00 08

TUNER I2C DEVICES FOUND AT:
    0x80, 0xa0, 0xc2

CAPTURE CARD EEPROM CONTENTS:
   Read 256 EEPROM bytes (0x00 - 0xff)
    84 12 00 00 05 50 0e 49 08 0a 01 b7 ee 40 0b 84
    00 00 00 00 00 84 0a 00 01 01 20 77 00 40 2d 90
    10 00 74 02 01 07 02 79 0a 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 13 eb 00 70
    84 12 00 00 05 50 0e 49 08 0a 01 b7 ee 40 0b 84
    00 00 00 00 00 84 0a 00 01 01 20 77 00 40 2d 90
    10 00 74 02 01 07 02 79 0a 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 13 eb 00 70

Supported RGB Capture Pixel Formats:
   bpp  Bpp  RGB Masks                     Swap
   ---  ---  ----------------------------  ----
    15   2   00007c00, 000003e0, 0000001f  NB  
    16   2   0000f800, 000007e0, 0000001f  NB  
    24   3   00ff0000, 0000ff00, 000000ff   B  
    24   4   00ff0000, 0000ff00, 000000ff  NBWb

Supported YUV Capture Pixel Formats:
   YUVSize  HSamp  VSamp  Pack    CompOrder  T->B  L->R  YTrans
   -------  -----  -----  ------  ---------  ----  ----  ------
    8,8,8   1,2,2  1,1,1  PLANAR  YUV         Y     Y      N
    8,8,8   1,2,2  1,1,1  PACKED  YUYV        Y     Y      N
    8,8,8   1,2,2  1,2,2  PLANAR  YUV         Y     Y      N


XSERVER: 'The XFree86 Project, Inc' v3330,  Protocol Verson 11.0
         Screen Res = 1024x768, DefDepth = 16; NumScreens = 1
         Bitmap Unit/BitOrder/Pad = 32/LSBFirst/32, Image ByteOrder = LSBFirst

XF86DGAQueryVersion() succeeded - vers = 1.00
   BaseAddr = 0xe1000000, Pitch = 1024, BankSize/RamSize = 8355840/8355840

Rating Available Visuals:
   Rating  Class        bpp  Bpp  R,G,B Masks                   Swap DirectVid
   ------  -----------  ---  ---  ----------------------------  ---- ---------
     5     TrueColor     16  2,2  00007c00, 000003e0, 0000001f   --     Yes

Default Visual is 16-bpp TrueColor

XF86VidModeQueryVersion() succeeded - version = 0.08


>> BKTR_NO_MSP_RESET and did a soft boot after initializing the windoze
>> driver with no luck, so that is out.
>
>Now that is weird. That was supposed to work.

I looked into that and for some reason the option wasn't configured in
i386.options in /usr/src/sys/i386/conf.  I just fixed it and recompiled
and will boot into (shudder) windows momentarily to give it a try.  It's
an ugly solution, but I rarely reboot so I guess it's not a huge deal.

>To check that the audio will work, you need to edit brooktree848.c and
>look for the msp_autodetect() function.
>Change this line
>   /* msp_write(bktr, 0x12, 0x0014, 0x7f40); */ 
>to
>   msp_write(bktr, 0x12, 0x0014, 0x7f40);

Yes, there is an ear piercing tone now.  Juha.Nurmela@quicknet.inet.fi
suggested I try doing a msp_write(bktr, 0x10, 0x0030, ???) and use the
tables in the data sheet for this particular processor as a guideline,
though I haven't had time to more than skim the data sheet so far.  


Thanks for all the replies thus far!

			Matt



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSO.4.10.9906130758290.10124-100000>