SADA emulation and 96khz

OSS specific Solaris discussion (x86/SPARC)

Moderators: hannu, dev, kodachi, cesium

SADA emulation and 96khz

Postby Tomservo » Sun Mar 16, 2008 5:45 pm

I'm running an X-Fi in my system. Everything seems to work fine, ignoring the ossdetect running to get vmix working. It however seems, having looked at the source code, that the SADA emulation can't upsample beyond 48khz. It would be nice, unless a new beta of the X-Fi driver will be released soon, that at least upsampling support to 96khz for the two common sample rates 44khz and 48khz would be implemented. It's mainly to get Flash work normally again on an X-Fi (micky mouse effect).

Thanks for considering.

--edit:
Mar 16 14:09:36 bigmclargehuge sadasupport: [ID 840557 kern.warning] WARNING: Returned sample rate 96000 is different than requested 48000)
Mar 16 14:09:36 bigmclargehuge sadasupport: [ID 909436 kern.notice] Switching to 96000
Solaris 4 lyfe
Tomservo
 
Posts: 40
Joined: Sat May 05, 2007 8:15 pm

Postby dev » Sun Mar 16, 2008 7:23 pm

edit /kernel/drv/vmix.conf and change the rate to 96000 and run ossdetect again.


regards
Dev
dev
 
Posts: 576
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby Tomservo » Mon Mar 17, 2008 2:19 pm

I still get the Micky Mouse effect and these:

Mar 17 15:17:14 bigmclargehuge sadasupport: [ID 840557 kern.warning] WARNING: Returned sample rate 96000 is different than requested 48000)
Mar 17 15:17:14 bigmclargehuge sadasupport: [ID 909436 kern.notice] Switching to 96000
Solaris 4 lyfe
Tomservo
 
Posts: 40
Joined: Sat May 05, 2007 8:15 pm

Postby Tomservo » Mon Mar 17, 2008 2:36 pm

I think it's this:

Code: Select all
int sadasupport_rate = 48000;

...lots of code...

int
sadasupport_attach (oss_device_t * osdev)
{
#ifndef SOL9
  audio_sup_reg_data_t data;
#endif
  int instance;
  /* extern struct cb_ops ossdrv_streams_cb_ops; */

  sadasupport_mixer_srs[1] = sadasupport_rate;   /* Set the maximum rate */
Solaris 4 lyfe
Tomservo
 
Posts: 40
Joined: Sat May 05, 2007 8:15 pm

Postby Tomservo » Mon Mar 17, 2008 3:13 pm

I've patched that value for fun in a hex editor, since setting up a build environment takes some time and effort. Doesn't change anything.

When vmix is loaded, the Micky Mouse effect is distorted. Without vmix, it's Micky Mouse undistorted. That's just strange.
Solaris 4 lyfe
Tomservo
 
Posts: 40
Joined: Sat May 05, 2007 8:15 pm


Return to Solaris

Who is online

Users browsing this forum: No registered users and 5 guests