Can't record from second device empia em28xx

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

 



Hello to all,
I'm using a USB DVB-T dongle to connect a Playstation system to my laptop,
It's a WinTV HVR 900 (Empia) by Hauppauge with an adapter for RCA connectors.
If i run:
mplayer  -aspect 16/9  tv:// -tv input=1:alsa:adevice=hw.1:immediatemode=0
I can se the video and hear the sounds, but it's quite impossible to
play games since there is a big delay (about 1 second)
between the joypad input and the video. From mplayer man page:

       immediatemode=<bool>
                      A value of 0 means capture and buffer audio and
video together (default for MEncoder).  A value of 1
                      (default for MPlayer) means to do video capture
only and let the audio go through a  loopback  cable
                      from the TV card to the sound card

If I omit the option immediatemode=0 or I set it to 1, there's no
sound but also no delay.

Is it possible to capture/playback the sound with another process in
parallel with the video capture?
I've disabled pulseaudio management on the USB device hw:1,0 but when
I run arecord it get stuck
and exit with error:

[fabio@darkstar ~]$ arecord -Dhw:1,0 -f S16_LE --rate=48000 -c2
Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
RIFF$�WAVEfmt ���data�arecord: pcm_read:1828: read error:
Input/output error

Thank you in advance for any help,
my kindest regard,

 - Fabio

This is the system configuration:
[fabio@darkstar ~]$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version k3.7.9-1-ARCH.

[fabio@darkstar ~]$ cat /proc/asound/cards
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xdfffc000 irq 45
 1 [Em28xxAudio    ]: Em28xx-Audio - Em28xx Audio
                      Empia Em28xx Audio

[fabio@darkstar ~]$ cat /proc/asound/pcm
00-00: STAC92xx Analog : STAC92xx Analog : playback 1 : capture 1
00-01: STAC92xx Digital : STAC92xx Digital : playback 1
01-00: Em28xx Audio : Empia 28xx Capture : capture 1

[fabio@darkstar ~]$ cat /proc/asound/modules
 0 snd_hda_intel
 1 em28xx_alsa


[fabio@darkstar ~]$ cat /proc/asound/devices
  2: [ 0- 1]: digital audio playback
  3: [ 0- 0]: digital audio playback
  4: [ 0- 0]: digital audio capture
  5: [ 0- 0]: hardware dependent
  6: [ 0]   : control
  7: [ 1- 0]: digital audio capture
  8: [ 1]   : control
 33:        : timer

[fabio@darkstar ~]$ cat /proc/asound/card1/pcm0c/info
card: 1
device: 0
subdevice: 0
stream: CAPTURE
id: Em28xx Audio
name: Empia 28xx Capture
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 1


[fabio@darkstar ~]$ arecord -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default:CARD=Intel
    HDA Intel, STAC92xx Analog
    Default Audio Device
sysdefault:CARD=Intel
    HDA Intel, STAC92xx Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, STAC92xx Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
default:CARD=Em28xxAudio
    Em28xx Audio, Empia 28xx Capture
    Default Audio Device
sysdefault:CARD=Em28xxAudio
    Em28xx Audio, Empia 28xx Capture
    Default Audio Device


[fabio@darkstar ~]$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: Em28xxAudio [Em28xx Audio], device 0: Em28xx Audio [Empia 28xx Capture]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

[fabio@darkstar ~]$ amixer -c 1
Simple mixer control 'Master',0
  Capabilities: volume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 31 [100%] Playback [off]
  Front Right: 31 [100%] Playback [off]
Simple mixer control 'PCM',0
  Capabilities: volume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 31 [100%] Playback [off]
  Front Right: 31 [100%] Playback [off]
Simple mixer control 'Surround',0
  Capabilities: volume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 31 [100%] Playback [on]
  Front Right: 31 [100%] Playback [on]
Simple mixer control 'LFE',0
  Capabilities: volume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 31 [100%] Playback [on]
  Front Right: 31 [100%] Playback [on]
Simple mixer control 'Line',0
  Capabilities: volume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 31 [100%] Playback [off]
  Front Right: 31 [100%] Playback [off]
Simple mixer control 'Line In',0
  Capabilities: volume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 23 [74%] Playback [on]
  Front Right: 31 [100%] Playback [on]
Simple mixer control 'CD',0
  Capabilities: volume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 31 [100%] Playback [off]
  Front Right: 31 [100%] Playback [off]
Simple mixer control 'Microphone',0
  Capabilities: volume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 31 [100%] Playback [off]
  Front Right: 31 [100%] Playback [off]
Simple mixer control 'Video',0
  Capabilities: volume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 31 [100%] Playback [off]
  Front Right: 31 [100%] Playback [off]
Simple mixer control 'Phone',0
  Capabilities: volume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 31 [100%] Playback [off]
  Front Right: 31 [100%] Playback [off]
Simple mixer control 'Mono',0
  Capabilities: volume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 31 [100%] Playback [off]
  Front Right: 31 [100%] Playback [off]
Simple mixer control 'AUX',0
  Capabilities: volume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 31
  Front Left: 31 [100%] Playback [off]
  Front Right: 31 [100%] Playback [off]

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user



[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux