From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from fg-out-1718.google.com ([72.14.220.156]:50280 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755991AbZGOSew (ORCPT ); Wed, 15 Jul 2009 14:34:52 -0400 Received: by fg-out-1718.google.com with SMTP id e21so1165578fga.17 for ; Wed, 15 Jul 2009 11:34:51 -0700 (PDT) Date: Wed, 15 Jul 2009 20:35:01 +0200 To: "linux-media@vger.kernel.org" Subject: Re: Report: Compro Videomate Vista T750F From: Samuel Rakitnican Content-Type: text/plain; format=flowed; delsp=yes; charset=windows-1250 MIME-Version: 1.0 References: <1247434386.5152.28.camel@pc07.localdom.local> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <1247434386.5152.28.camel@pc07.localdom.local> Sender: linux-media-owner@vger.kernel.org List-ID: On Sun, 12 Jul 2009 23:33:06 +0200, hermann pitton wrote: > Hi Samuel, > > Am Sonntag, den 12.07.2009, 13:30 +0200 schrieb Samuel Rakitnican: >> As the card=139 (Compro Videomate T750) >> >> DVB: Not working, not implemented >> Analog: Not working >> Audio In: ? (my T750F has additional connector ?) > > if amux LINE2 doesn't work it is usually LINE1. > If both don't work, there is a external gpio controlled switch/mux chip. > > Default is loop through for external audio in. > Means, if the saa7134 driver is unloaded, should be passed through to > audio out. If not, there is such a mux chip involved. > [snip] Well, I haven't managed to get sound from Audio In connector, it's possible however that I'm doing something wrong. I tried selecting in tvtime both Composite and S-Video, and I've tried using SoX: console$> ls /dev/dsp* dsp dsp1 console$> sox -c 2 -s -r 32000 -t ossdsp /dev/dsp1 -t ossdsp -r 32000 /dev/dsp & for both .amux = LINE1 and LINE2 in saa7134-cards.c source file. RegSpy log: I have used RegSpy that comes with DScaler version 4.1.15. I'm hoping that they are of some use for both Analog television and Audio In. I have found out values crucial to changing inputs for both audio and video. Note that SAA7134_GPIO_GPSTATUS keeps changing all the time between 84ff00 and 94bf00 nevertheless of the device status. I have used VirtualDub (v1.7.7) as capturing application because it gives more control on input selecting (I can change audio input, not depending on video). From that I manage to distinguish values changing between video and audio. The crucial value for video seems to be SAA7134_ANALOG_IN_CTRL1 while for audio seems to be values SAA7133_AUDIO_CLOCK_NOMINAL and SAA7133_PLL_CONTROL. Changes: State 0 -> State 1: *****************************(Switch: Analog TV -> Composite) SAA7134_GPIO_GPSTATUS: 0094ff00 -> 0494ff00 (-----0-- -------- -------- --------) SAA7134_ANALOG_IN_CTRL1: 83 -> 81 (------1-) SAA7133_AUDIO_CLOCK_NOMINAL: 03187de7 -> 43187de7 (-0------ -------- -------- --------) SAA7133_PLL_CONTROL: 03 -> 43 (-0------) Changes: State 1 -> State 2: *****************************(Switch: Composite -> S-Video) SAA7134_GPIO_GPSTATUS: 0494ff00 -> 0284ff00 (-----10- ---1---- -------- --------) SAA7134_ANALOG_IN_CTRL1: 81 -> 88 (----0--1) Changes: State 2 -> State 3: ***(Switch: Audio Source -> Audio Tuner (Still in S-Video mode)) SAA7134_GPIO_GPSTATUS: 0284ff00 -> 0294ff00 (-------- ---0---- -------- --------) SAA7133_AUDIO_CLOCK_NOMINAL: 43187de7 -> 03187de7 (-1------ -------- -------- --------) (same as 0) SAA7133_PLL_CONTROL: 43 -> 03 (-1------) (same as 0) Changes: State 3 -> State 4: ******(Switch: Audio Source -> Audio Line (Still in S-Video mode)) SAA7134_GPIO_GPSTATUS: 0294ff00 -> 0484ff00 (-----01- ---1---- -------- --------) SAA7133_AUDIO_CLOCK_NOMINAL: 03187de7 -> 43187de7 (-0------ -------- -------- --------) (same as 1, 2) SAA7133_PLL_CONTROL: 03 -> 43 (-0------) (same as 1, 2) (full log: http://pastebin.com/f5f8e6184)