oss crashes trying to use sada with a m audio audiosport duo

OSS specific Solaris discussion (x86/SPARC)

Moderators: hannu, dev, kodachi, cesium

oss crashes trying to use sada with a m audio audiosport duo

Postby tuff bob » Tue Aug 26, 2008 3:31 pm

Any ideas? I've tried 4.0 1015, 1016, 4.1rc1 with absolutely zero luck. I can play sound ok via oss. I'm so frustrated.
tuff bob
Member
 
Posts: 11
Joined: Fri May 30, 2008 1:25 am

Postby tuff bob » Tue Aug 26, 2008 6:03 pm

Aug 26 12:55:46 brighton oss_sadasupport: [ID 517056 kern.warning] WARNING: ldi_open_by_name("/dev/dsp") failed, errno=19


Aug 26 10:48:02 brighton savecore: [ID 570001 auth.error] reboot after panic: BAD TRAP: type=e (#pf Page fault) rp=ffffff0010729520 addr=c30 occurred in module "oss_usb" due to a NULL pointer dereference


ossusb_create_altset_control+0x73()
ossusb_init_audiostream+0x933()
ossusb_device_attach+0x560()
udi_attach_usbdriver+0x59a()
oss_usb_attach+0x72()
oss_usb`ossdrv_attach+0x141()
devi_attach+0x7f(ffffff02d4f50250, 0)
attach_node+0x98(ffffff02d4f50250)
i_ndi_config_node+0xa5(ffffff02d4f50250, 6, 0)
i_ddi_attachchild+0x3f(ffffff02d4f50250)
devi_attach_node+0xa7(ffffff02d4f50250, 4000)
devi_config_one+0x2c6(ffffff02d4f50db8, ffffff0010729fa0, ffffff0010729da8, 4000
, 0)
ndi_busop_bus_config+0x58(ffffff02d4f50db8, 4000, 1, ffffff0010729fa0,
ffffff0010729da8, 0)
usb_mid_bus_config+0xae(ffffff02d4f50db8, 4000, 1, ffffff0010729fa0,
ffffff0010729da8)
ndi_devi_config_one+0x98(ffffff02d4f50db8, ffffff0010729fa0, ffffff0010729da8,
4000)
dv_find+0x1ac(ffffff02d8a8ad18, ffffff0010729fa0, ffffff0010729f70,
ffffff001072a240, ffffff02d1424840, ffffff02d10a7d88)
devfs_lookup+0x39(ffffff02d8a8b680, ffffff0010729fa0, ffffff0010729f70,
ffffff001072a240, 0, ffffff02d1424840)


SunOS brighton 5.11 snv_95 i86pc i386 i86pc

Version info: OSS 4.1 (b rc1/200808261201) (0x00040090) CDDL
Platform: SunOS/i86pc 5.11 snv_95 (brighton)

Number of audio devices: 4
Number of audio engines: 4
Number of mixer devices: 2


Device objects
0: usb763_2002_2 M Audio USB AudioSport Duo
1: oss_sadasupport SADA compatibility layer
2: usb763_2002_2 M Audio USB AudioSport Duo
3: usb763_2002_2 M Audio USB AudioSport Duo
4: usb763_2002_2 M Audio USB AudioSport Duo
5: usb763_2002_2 M Audio USB AudioSport Duo
6: usb763_2002_2 M Audio USB AudioSport Duo
7: osscore0 OSS common devices


Mixer devices
0: M Audio USB AudioSport Duo (Mixer 0 of device object 0)
1: M Audio USB AudioSport Duo (Mixer 0 of device object 4)

Audio devices
M Audio USB AudioSport Duo play /dev/oss/usb763_2002_2/pcm0 (device index 0)
M Audio USB AudioSport Duo rec /dev/oss/usb763_2002_2/pcmin0 (device index 1)
M Audio USB AudioSport Duo play /dev/oss/usb763_2002_2/pcm0 (device index 2)
M Audio USB AudioSport Duo rec /dev/oss/usb763_2002_2/pcmin0 (device index 3)
tuff bob
Member
 
Posts: 11
Joined: Fri May 30, 2008 1:25 am

Postby tuff bob » Tue Aug 26, 2008 7:27 pm

I've tried compiling with vmix disabled and also setting it disabled in osscore.conf but still no luck.
tuff bob
Member
 
Posts: 11
Joined: Fri May 30, 2008 1:25 am

Postby tuff bob » Tue Aug 26, 2008 7:45 pm

This is what happens on 4.0 1015:

ore@0
Aug 26 14:44:27 brighton sadasupport: [ID 191326 kern.warning] WARNING: Internal error (format=1000)
Aug 26 14:44:27 brighton sadasupport: [ID 494499 kern.notice] NOTICE: setup_device failed
tuff bob
Member
 
Posts: 11
Joined: Fri May 30, 2008 1:25 am

Postby h3sp4wn » Fri Jan 30, 2009 2:42 pm

If you look in oss_sadasupport.c

You can see that /dev/dsp is hardwired.
I tried hardwiring the full path but it failed didn't try using /dev/dsp3 etc

DDB (cmn_err (CE_CONT, "Opening /dev/dsp (mode=%x)\n", tmp_file.mode));

if (ldi_ident_from_dev (dev, &devc->li) != 0)
{
cmn_err (CE_WARN, "ldi_ident_from_dev failed\n");
devc->audio_busy--;
return EIO;
}

if ((err =
ldi_open_by_name ("/dev/dsp", FWRITE | FREAD, credp, &devc->lh,
devc->li)) != 0)
{
cmn_err (CE_WARN,
"ldi_open_by_name(\"/dev/dsp\") failed, errno=%d\n", err);
devc->audio_busy--;
return -err;
}



And in ossusb_audio.c we have.

#if 0
// TODO: This needs to be checked before vmix is enabled
#ifdef CONFIG_OSS_VMIX
if (devc->units[portc->terminal_link].typ != TY_OUTPUT)
vmix_attach_audiodev(devc->osdev, portc->audio_dev, -1, 0);
#endif
#endif

So even if vmix is supposed to be enabled it will not have any effect.
h3sp4wn
New Member
 
Posts: 7
Joined: Mon Jan 21, 2008 9:12 pm


Return to Solaris

Who is online

Users browsing this forum: No registered users and 1 guest