Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sound question and report of a success with Dazzle To Go
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
LordManta
n00b
n00b


Joined: 23 Aug 2006
Posts: 18
Location: Paris

PostPosted: Sat Jul 28, 2007 11:56 pm    Post subject: Sound question and report of a success with Dazzle To Go Reply with quote

First of all Thanks to all the Linux community to make this happen.

I would to find a low cost solution to acquire analogic video from an old video camcoder, and also be able to use my PBG4 as a TV monitor for the holidays, and to display Wii games on the screen ;-). A USB adapter sounds to be a good candidate for that job... I wanted a low cost solution, while almost every thing build for MacOS X is just expensive with no real good reason.
Never mind, on the Windows side there are a lot of low cost solutions. So I choose to try a (Windows only ?!) "Dazzle To Go" box on my mac. I didn't succeed to make it work on MacOS X (I haven't searched that much) and immediately tried to make it work on my Gentoo hopping that video4Linux would do it. And ...
It did it :).
just enabling v4l in my kernel config (2.6.21-r4) and taking care to add em28xx drivers and to allow usb sound devices. I have built my new kernel and just after plugging the box I could see dmesg info identifying the dongle.
Code:
[ 8557.306078] usb 1-2: new high speed USB device using ehci_hcd and address 7
[ 8557.427592] usb 1-2: configuration #1 chosen from 1 choice
[ 8557.427848] em28xx new video device (0423:0802): interface 0, class 255
[ 8557.427862] em28xx #0: Alternate settings: 8
[ 8557.427868] em28xx #0: Alternate setting 0, max size= 0
[ 8557.427874] em28xx #0: Alternate setting 1, max size= 1024
[ 8557.427880] em28xx #0: Alternate setting 2, max size= 1448
[ 8557.427886] em28xx #0: Alternate setting 3, max size= 2048
[ 8557.427892] em28xx #0: Alternate setting 4, max size= 2304
[ 8557.427899] em28xx #0: Alternate setting 5, max size= 2580
[ 8557.427905] em28xx #0: Alternate setting 6, max size= 2892
[ 8557.427911] em28xx #0: Alternate setting 7, max size= 3072
[ 8557.947521] saa7115 4-0025: saa7113 found (1f7113d0e100000) @ 0x4a (em28xx #0)
[ 8558.327071] tuner 4-0043: chip found @ 0x86 (em28xx #0)
[ 8558.327180] tda9887 4-0043: tda988[5/6/7] found @ 0x43 (tuner)
[ 8558.329527] tuner 4-0063: chip found @ 0xc6 (em28xx #0)
[ 8558.329616] tuner 4-0063: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3))
[ 8558.329625] tuner 4-0063: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3))
[ 8558.366018] em28xx #0: i2c eeprom 00: 1a eb 67 95 04 23 08 02 10 00 1e 03 98 1e 6a 2e
[ 8558.366053] em28xx #0: i2c eeprom 10: 00 00 06 57 6e 00 00 00 8e 00 00 00 07 00 00 00
[ 8558.366072] em28xx #0: i2c eeprom 20: 16 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 8558.366091] em28xx #0: i2c eeprom 30: 00 00 20 40 20 80 02 20 10 01 00 00 00 00 00 00
[ 8558.366110] em28xx #0: i2c eeprom 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 8558.366128] em28xx #0: i2c eeprom 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 8558.366146] em28xx #0: i2c eeprom 60: 00 00 00 00 00 00 00 00 00 00 2e 03 50 00 69 00
[ 8558.366165] em28xx #0: i2c eeprom 70: 6e 00 6e 00 61 00 63 00 6c 00 65 00 20 00 53 00
[ 8558.366184] em28xx #0: i2c eeprom 80: 79 00 73 00 74 00 65 00 6d 00 73 00 20 00 47 00
[ 8558.366203] em28xx #0: i2c eeprom 90: 6d 00 62 00 48 00 00 00 1e 03 50 00 43 00 54 00
[ 8558.366222] em28xx #0: i2c eeprom a0: 56 00 20 00 55 00 53 00 42 00 32 00 20 00 50 00
[ 8558.366241] em28xx #0: i2c eeprom b0: 41 00 4c 00 00 00 06 03 31 00 00 00 00 00 00 00
[ 8558.366260] em28xx #0: i2c eeprom c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 8558.366278] em28xx #0: i2c eeprom d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 8558.366297] em28xx #0: i2c eeprom e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 8558.366315] em28xx #0: i2c eeprom f0: 00 00 00 00 00 00 00 00 0e 5d 62 35 03 ad 93 a5
[ 8558.366334] EEPROM ID= 0x1aeb6795
[ 8558.366339] Vendor/Product ID= 0423:0802
[ 8558.366343] No audio on board.
[ 8558.366347] 500mA max power
[ 8558.366353] Table at 0x06, strings=0x981e, 0x6a2e, 0x0000
[ 8558.553185] registered VBI
[ 8558.586066] em28xx #0: V4L2 device registered as /dev/video0 and /dev/vbi0
[ 8558.586081] em28xx #0: Found Pinnacle PCTV USB 2
[ 8558.586360] em28xx audio device (0423:0802): interface 1, class 1

lsmod shows me that em28xx module was loaded. and I get a new set of devices and especially
Code:
/dev/video0
/dev/snd/controlC1
...

Then I just emerged sox tools and tvtime, I also reemerged mplayer with v4l support and go:
with sox you can redirect audio from the Dazzle device to your sound card
Code:
sox -r 86000 -t ossdsp /dev/dsp1 -t ossdsp /dev/dsp

then just play with tvtime to get the video !
Note that the sound is usually forwarded only when tvtime is active.
For those of you who understand French you can go to this link to get all the details.

Many things described on this page are useless on gentoo. I don't know if it exist an English page equivalent.

So now my question : I didn't have played much with audio on Linux until now. I only use mplayer which works well on my system. But trying to make the Dazzle To Go work on my system. I discovered that my configuration didn't start alsasound at startup so no /dev/dsp or /dev/mixer were created. So how could mplayer (or even mol which allows my virtualized OS X to play sound) could work without alsasound not started ?
If someone could give me some hints on that mystery ;-) ...

edit by nixnut: wrapped url in tags to prevent mile wide html page
Back to top
View user's profile Send private message
Macrex
n00b
n00b


Joined: 09 Oct 2006
Posts: 6

PostPosted: Thu Aug 30, 2007 2:38 am    Post subject: Reply with quote

It seems to me that this problem happens because you are using oss. Anyway, this way of capturing the sound appears to solve the problem for me:

Code:

arecord -D hw:1,0 -r 32000 -c 2 -f S16_LE | aplay


As you can see, this one uses alsa interface.
Furthermore, I didn't test this new way of capturing the audio for a long period of time, what means that it may be possible that a lag still occurs after a long time of tv-watching. If this happens, I wrote a shell script to run tvtime with audio and also auto restart the capture after a period of time:

Code:

#Starts TVTime:
/usr/bin/tvtime &
PROCIDTVTIME=`pgrep tvtime`
TESTETV=`pgrep tvtime`

#while tvtime is working do:
while [ $TESTETV -eq $PROCIDTVTIME  ]; do
        #sox -q -w -r 32000 -t ossdsp /dev/dsp1 -t ossdsp /dev/dsp & #this causes a delay
        arecord -D hw:1,0 -r 32000 -c 2 -f S16_LE | aplay & #em teste
        sleep 4m #wait 4 minutes
        #killall -9 sox
        killall -9 arecord
        killall -9 aplay
        TESTETV=`pgrep tvtime`
done


Hope you enjoy the show, now!
Back to top
View user's profile Send private message
Macrex
n00b
n00b


Joined: 09 Oct 2006
Posts: 6

PostPosted: Thu Sep 06, 2007 5:04 pm    Post subject: Reply with quote

Another way of capturing the sound seems to work better for me, now:
Code:
arecord -D hw:1,0 -r 32000 -c 2 -f S16_LE | sox -q -c 2 -r 32000 -w -t wav - -t alsa hw:0,0


If you want to see the a good guide (from where I collected this information), you may want to take a look at:
http://www.linuxtv.org/v4lwiki/index.php/Saa7134-alsa

Now this issue seems to be solved. If those tips work for you, please mark this topic as solved.

:D
Back to top
View user's profile Send private message
mike74
n00b
n00b


Joined: 22 May 2010
Posts: 1

PostPosted: Sat May 22, 2010 5:59 pm    Post subject: Reply with quote

Macrex wrote:
Another way of capturing the sound seems to work better for me, now:
Code:
arecord -D hw:1,0 -r 32000 -c 2 -f S16_LE | sox -q -c 2 -r 32000 -w -t wav - -t alsa hw:0,0


If you want to see the a good guide (from where I collected this information), you may want to take a look at:
http://www.linuxtv.org/v4lwiki/index.php/Saa7134-alsa

Now this issue seems to be solved. If those tips work for you, please mark this topic as solved.

:D

It works fine with this command but what about streaming the sound with vlc? any idea
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum