Record from USB Device

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium, kodachi

Record from USB Device

Postby Storken » Sat Jun 12, 2010 9:40 am

Hi there, I have a Dazzle DVC90 and I am trying to record an old video cassette.
However, I can't figure out how to record sound from it, video looks perfectly fine with mplayer and VLC.

dmesg | grep em28xx:
Code: Select all
em28xx: New device Pinnacle Systems GmbH DVC90 @ 480 Mbps (2304:0207, interface 0, class 0)
em28xx #0: chip ID is em2820 (or em2710)
em28xx #0: i2c eeprom 00: 1a eb 67 95 04 23 07 02 12 00 11 03 98 0e 6a 2e
em28xx #0: i2c eeprom 10: 00 00 06 57 4e 00 00 00 60 00 00 00 02 00 00 00
em28xx #0: i2c eeprom 20: 02 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom 30: 00 00 20 40 20 80 02 20 10 01 00 00 00 00 00 00
em28xx #0: i2c eeprom 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom 60: 00 00 00 00 00 00 00 00 00 00 2e 03 50 00 69 00
em28xx #0: i2c eeprom 70: 6e 00 6e 00 61 00 63 00 6c 00 65 00 20 00 53 00
em28xx #0: i2c eeprom 80: 79 00 73 00 74 00 65 00 6d 00 73 00 20 00 47 00
em28xx #0: i2c eeprom 90: 6d 00 62 00 48 00 00 00 0e 03 44 00 56 00 43 00
em28xx #0: i2c eeprom a0: 39 00 30 00 00 00 28 03 32 00 30 00 33 00 35 00
em28xx #0: i2c eeprom b0: 36 00 30 00 37 00 35 00 31 00 33 00 34 00 31 00
em28xx #0: i2c eeprom c0: 30 00 32 00 30 00 30 00 30 00 31 00 00 00 32 00
em28xx #0: i2c eeprom d0: 33 00 31 00 32 00 33 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom f0: 00 00 00 00 00 00 00 00 0c 22 17 86 03 44 87 99
em28xx #0: EEPROM ID= 0x9567eb1a, EEPROM hash = 0x298d1592
em28xx #0: EEPROM info:
em28xx #0:   AC97 audio (5 sample rates)
em28xx #0:   300mA max power
em28xx #0:   Table at 0x06, strings=0x0e98, 0x2e6a, 0x0000
em28xx #0: Identified as Pinnacle Dazzle DVC 90/100/101/107 / Kaiser Baas Video to DVD maker / Kworld DVD Maker 2 (card=9)
saa7115 2-0025: saa7113 found (1f7113d0e100000) @ 0x4a (em28xx #0)
em28xx #0: Config register raw data: 0x12
em28xx #0: AC97 vendor ID = 0xffffffff
em28xx #0: AC97 features = 0x6a90
em28xx #0: Empia 202 AC97 audio processor detected
em28xx #0: v4l2 driver version 0.1.2
em28xx #0: V4L2 video device registered as video1
usbcore: registered new interface driver em28xx
em28xx driver loaded
Modules linked in: oss_usb oss_hdaudio osscore saa7115 em28xx v4l2_common ir_common videobuf_vmalloc videobuf_core ir_core tveeprom aes_i586 aes_generic sr_mod cdrom loop ipv6 nls_cp437 vfat fat arc4 btusb ecb bluetooth uvcvideo videodev v4l1_compat usbhid hid joydev ath9k ath9k_common mac80211 i915 drm_kms_helper ath9k_hw drm eeepc_laptop ath i2c_algo_bit iTCO_wdt sparse_keymap cfg80211 uhci_hcd rfkill i2c_core intel_agp video iTCO_vendor_support ehci_hcd battery ac pci_hotplug vhba led_class atl1e agpgart sg output button pcspkr processor thermal usbcore evdev psmouse serio_raw rtc_cmos rtc_core rtc_lib ext4 mbcache jbd2 crc16 sd_mod ata_piix pata_acpi ata_generic libata scsi_mod [last unloaded: osscore]


ossinfo -a -v3:
Code: Select all
Audio devices
HD Audio play pcm1                /dev/oss/oss_hdaudio0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Out engine  1: 0/HD Audio play pcm1
                     Available for use
      Engine      2: 4/HD Audio play pcm1 (vmix)
                     Available for use
      Engine      3: 5/HD Audio play pcm1 (vmix)
                     Available for use
      Engine      4: 6/HD Audio play pcm1 (vmix)
                     Available for use
      Engine      5: 7/HD Audio play pcm1 (vmix)
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI834a1043-0000:00:1b.0-au01
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 8
    Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play pcm2                /dev/oss/oss_hdaudio0/pcm1  (device index 1)
    Legacy device /dev/dsp1
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 1/HD Audio play pcm2
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI834a1043-0000:00:1b.0-au02
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio rec mix4                 /dev/oss/oss_hdaudio0/pcmin0  (device index 2)
    Legacy device /dev/dsp2
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      In engine   1: 2/HD Audio rec mix4
                     Available for use
      Engine      2: 4/HD Audio play pcm1 (vmix)
                     Available for use
      Engine      3: 5/HD Audio play pcm1 (vmix)
                     Available for use
      Engine      4: 6/HD Audio play pcm1 (vmix)
                     Available for use
      Engine      5: 7/HD Audio play pcm1 (vmix)
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI834a1043-0000:00:1b.0-au03
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 96000 (44100,48000,96000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio rec select               /dev/oss/oss_hdaudio0/pcmin1  (device index 3)
    Legacy device /dev/dsp3
    Caps: TRIGGER MMAP
    Modes: INPUT 
      In engine   1: 3/HD Audio rec select
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI834a1043-0000:00:1b.0-au04
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 96000 (44100,48000,96000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

(USB sound device rec              /dev/oss/usb23040207-1/pcmin0 ) (device index 4)
    Legacy device /dev/dsp4
    Caps: TRIGGER MMAP
    Modes: INPUT 
   ******* DEVICE NOT PLUGGED IN *******
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Device handle: USB-usb23040207-1-au01
    Related mixer dev: 1
    Sample rate source: 8
    Preferred channel configuration: STEREO
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 44100 (44100)
    HW Type: Not indicated.
    Minimum latency: Not indicated


Nodes
  /dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0


So /dev/oss/usb23040207-1/pcmin0 is the device I'm looking for.
In ossxmix, I can adjust the device with rec-altset. It appears there as "USB sound device". However, when rec-altset is OFF and I'm trying to record from /dev/oss/usb23040207-1/pcmin0, it sais
Code: Select all
/dev/oss/usb23040207-1/pcmin0: Resource temporarily unavailable

If I set it to anything else than OFF (1 - 5 are possible), it complains with
Code: Select all
/dev/oss/usb23040207-1/pcmin0: Input/output error


So, the tape is running and it worked with ALSA the other day. What am I doing wrong?
Storken
New Member
 
Posts: 8
Joined: Wed Dec 09, 2009 10:00 pm

Re: Record from USB Device

Postby cesium » Mon Jun 14, 2010 10:45 pm

USB recording is flaky with OSS4 and often doesn't work under Linux. You can try updating to latest OSS from mercurial which has this change which might help...
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: Record from USB Device

Postby Storken » Wed Sep 22, 2010 2:22 pm

Still no luck, same problem on a mercurial compile.
Is it possible to do so with JACK?
Storken
New Member
 
Posts: 8
Joined: Wed Dec 09, 2009 10:00 pm

Re: Record from USB Device

Postby cesium » Thu Sep 23, 2010 12:41 am

JACK isn't a driver suit - so it won't help you.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: Record from USB Device

Postby Storken » Sat Sep 25, 2010 6:38 pm

it works now, thanks to this file cesium sent me:
http://www.fileupyours.com/files/77985/usb-diff.txt

for those who have to figure out how to use it (like me), you can patch the necessary files by executing
Code: Select all
patch -p1 < usb-diff.txt

in the root dir of the source code.

thanks a lot!
Storken
New Member
 
Posts: 8
Joined: Wed Dec 09, 2009 10:00 pm


Return to Linux

Who is online

Users browsing this forum: Bing [Bot] and 1 guest