Trying to setup loopback on HDA ALC883 Gigabyte G31M-ESL2

OSS specific Linux discussion (x86/amd64)

Moderators: cesium, dev, kodachi, hannu

Trying to setup loopback on HDA ALC883 Gigabyte G31M-ESL2

Postby cbilljones » Thu Jun 10, 2010 3:46 am

My board doesnt support "vol" or "loopback" for recording, im tring to record main sound with recordmydesktop, i tried to setup with vmix as per the wiki but i think im missing something. Only thing recordmydesktop will accept for audio is DEFAULT and that records mic

ossinfo:
Code: Select all
cbill@cbill-desktop:~$ ossinfo
Version info: OSS 4.2 (b 2003/201006092051) (0x00040100) OSS_HG
Hg revision: changeset: 899:9883986ecd49, tag: tip, date: Thu Jun 03 06:43:11 2010 +0300, summary: Fixes for Xonar STX (take 2)
Platform: Linux/i686 2.6.31-22-generic #60-Ubuntu SMP Thu May 27 00:22:23 UTC 2010 (cbill-desktop)

Number of audio devices:   9
Number of audio engines:   13
Number of MIDI devices:      0
Number of mixer devices:   1


Device objects
0: osscore0 OSS core services
1: oss_hdaudio0 Intel HD Audio interrupts=4713 (36483)
    HD Audio controller Intel HD Audio
    Vendor ID    0x808627d8
    Subvendor ID 0x1458a002
     Codec  2: ALC883 (0x10ec0883/0x1458c603)
2: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)

Mixer devices
0: High Definition Audio ALC883 (Mixer 0 of device object 1)

Audio devices
HD Audio play front               /dev/oss/oss_hdaudio0/pcm0  (device index 0)
HD Audio play rear                /dev/oss/oss_hdaudio0/pcm1  (device index 1)
HD Audio play center/LFE          /dev/oss/oss_hdaudio0/pcm2  (device index 2)
HD Audio play side                /dev/oss/oss_hdaudio0/pcm3  (device index 3)
HD Audio play pcm4                /dev/oss/oss_hdaudio0/pcm4  (device index 4)
HD Audio play spdif-out           /dev/oss/oss_hdaudio0/spdout0  (device index 5)
HD Audio rec mix                  /dev/oss/oss_hdaudio0/pcmin0  (device index 6)
HD Audio rec mix                  /dev/oss/oss_hdaudio0/pcmin1  (device index 7)
HD Audio play front (vmix) loopback record  /dev/oss/oss_hdaudio0/loop0  (device index 8)

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_ac3 -> /dev/oss/oss_hdaudio0/spdout0
  /dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0


ok so im half way there: ossrecord -s48000 -b16 -c2 -d/dev/oss/oss_hdaudio0/loop0 test.wav does record loopback, so what should i put in recordmydesktop?
[edit] well it worked once, unable to repeat..
seems if i do sudo soundoff/soundon it works again, recordmydesktop will record from /dev/oss/oss_hdaudio0/loop0, but then have to restart OSS to record again; i think im missing a step. Do i need to use vmixctl to link it to something? I can view the switch with vol applet(from audiohacks ppa), but i cant view it from ossxmix. So im close, any suggestions?
cbilljones
New Member
 
Posts: 5
Joined: Sat Aug 15, 2009 12:52 am

Re: Trying to setup loopback on HDA ALC883 Gigabyte G31M-ESL2

Postby cesium » Thu Jun 10, 2010 3:49 pm

*Per the wiki, you need to rebuild recordmydesktop to support OSS - I see you did that.
*Since you want the total mixed output, vmix loopback device is appropriate.
*The loopback device is created when vmix is attached to a device, so you don't usually need vmixctl. (If you did use vmixctl, you'd need to run 'sudo ossdetect -d -v' afterwards to create the loopback device node).
*I don't think recording from loopback will show anything on ossxmix per se.
*So the remaining problem is "loopback recording only works once"? Hmm... Try "vmix_loopdevs=2" setting in osscore.conf and try either loop device then.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: Trying to setup loopback on HDA ALC883 Gigabyte G31M-ESL2

Postby cbilljones » Fri Jun 11, 2010 12:51 am

Well i tried changing to vmix_loopdevs=2, restarted OSS, ossinfo doesnt report any new device, i tried running ossdetect -d no change there. So still same thing: records once just fine, second one has a sort of hissing sound

well ossinfo is reporting 14 Audio engines, whereas it reported 13 before; but i dont see any other sign of it; osscore.conf does have vmix_loopdevs=2, any ideas?

Code: Select all
cbill@cbill-desktop:~$ ossinfo
Version info: OSS 4.2 (b 2003/201006092051) (0x00040100) OSS_HG
Hg revision: changeset: 899:9883986ecd49, tag: tip, date: Thu Jun 03 06:43:11 2010 +0300, summary: Fixes for Xonar STX (take 2)
Platform: Linux/i686 2.6.31-22-generic #60-Ubuntu SMP Thu May 27 00:22:23 UTC 2010 (cbill-desktop)

Number of audio devices:   9
Number of audio engines:   14
Number of MIDI devices:      0
Number of mixer devices:   1


Device objects
0: osscore0 OSS core services
1: oss_hdaudio0 Intel HD Audio interrupts=893796 (990026)
    HD Audio controller Intel HD Audio
    Vendor ID    0x808627d8
    Subvendor ID 0x1458a002
     Codec  2: ALC883 (0x10ec0883/0x1458c603)
2: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)

Mixer devices
0: High Definition Audio ALC883 (Mixer 0 of device object 1)

Audio devices
HD Audio play front               /dev/oss/oss_hdaudio0/pcm0  (device index 0)
HD Audio play rear                /dev/oss/oss_hdaudio0/pcm1  (device index 1)
HD Audio play center/LFE          /dev/oss/oss_hdaudio0/pcm2  (device index 2)
HD Audio play side                /dev/oss/oss_hdaudio0/pcm3  (device index 3)
HD Audio play pcm4                /dev/oss/oss_hdaudio0/pcm4  (device index 4)
HD Audio play spdif-out           /dev/oss/oss_hdaudio0/spdout0  (device index 5)
HD Audio rec mix                  /dev/oss/oss_hdaudio0/pcmin0  (device index 6)
HD Audio rec mix                  /dev/oss/oss_hdaudio0/pcmin1  (device index 7)
HD Audio play front (vmix) loopback record  /dev/oss/oss_hdaudio0/loop0  (device index 8)

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_ac3 -> /dev/oss/oss_hdaudio0/spdout0
  /dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0
cbilljones
New Member
 
Posts: 5
Joined: Sat Aug 15, 2009 12:52 am

Re: Trying to setup loopback on HDA ALC883 Gigabyte G31M-ESL2

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

Dang. Try reporting to oss-devel@mailman.opensound.com, maybe the devs will know better.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: Trying to setup loopback on HDA ALC883 Gigabyte G31M-ESL2

Postby cbilljones » Wed Jun 16, 2010 3:31 am

Ok, ive fired off a report on the matter, thanks for the help - at least its somewhat functioning - just have to restart everything to make a second recording :(
cbilljones
New Member
 
Posts: 5
Joined: Sat Aug 15, 2009 12:52 am


Return to Linux

Who is online

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