WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: OSS with Intel8x0 soundchip  (Read 2749 times)

Offline thane

  • Hero Member
  • *****
  • Posts: 697
OSS with Intel8x0 soundchip
« on: January 01, 2010, 04:39:19 PM »
I run TCL on a Compaq Deskpro EN. I'm currently using alsa for sound because in bootlocal.sh I have to modprobe the Intel8x0 soundchip to get the sampling rate right:

rmmod snd-intel8x0
modprobe snd_intel8x0 ac97_clock=41194
/usr/local/etc/init.d/alsasound start

I haven't been able to get a similar fix to work with OSS. Anybody have any ideas?

Not a high priority since alsa works fine for me. OSS has a smaller footprint though.
« Last Edit: January 01, 2010, 11:38:29 PM by thane »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: OSS with Intel8x0 soundchip
« Reply #1 on: January 01, 2010, 04:55:18 PM »
Man page for the oss_ich driver:
Quote
NAME
oss_ich - Intel ICH/SiS7012/Nvidia/AMD audio device driver.

DESCRIPTION
Open Sound System driver for Intel ICH, nVidia Nforce, AMD and SiS 7012
devices.

OPTIONS

o intelpci_rate_tuning=<NNN> (default is 240)
 Some Compaq Deskpro models (EN and EX at least) and certain Dell models
 play and record audio at a higher speed than what is expected. If you have
 an Intel815 motherboard with an AD1885 you can try setting the parameter
 to 240, 280 or 330 and see which works for your system. The way to figure
 out the the right intelpci_rate_tuning value is using the osstest application.
 It reports a sample rate drift value ("Sample rate drift" or "srate drift").
 Use the following formula (round the result to the nearest integer):

 <intelpci_rate_tuning = (240*(drift+100))/100>

o intelpci_force_mmio=<0|1> (default is 0=Disable)
 This option can be used to force the ICH4/ICH5 and ICH6 controllers to
 run in memory mapped mode to free up I/O address space.

o ich_jacksense=<0|1> (default is 0)
 Force use of jacksensing on some AD198x mixers.

FILES
CONFIGFILEPATH/oss_ich.conf  Device configuration file.


AUTHOR
4Front Technologies
The only barriers that can stop you are the ones you create yourself.

Offline thane

  • Hero Member
  • *****
  • Posts: 697
Re: OSS with Intel8x0 soundchip
« Reply #2 on: March 03, 2010, 03:06:09 AM »
Finally got around to trying this, and it works!

intelpci_tuning_rate = 280  [in /usr/lib/oss/conf/oss_ich.conf; also added this file to .filetool.lst]

soundoff
soundon   [added these lines to bootlocal.sh]

Thanks curaga!
« Last Edit: March 03, 2010, 12:58:06 PM by thane »

Offline thane

  • Hero Member
  • *****
  • Posts: 697
Re: OSS with Intel8x0 soundchip
« Reply #3 on: March 24, 2010, 07:08:46 PM »
Well, it worked before.

Created a new set of extensions under TC 2.10 including OSS. After installing OSS I tried to update the /usr/lib/oss/conf/oss_ich.conf file and got a message saying the file system was read-only. After fiddling with permissions, rebooting, etc. I was able to update the file, but then OSS wouldn't start and had various modprobe errors about missing modules.

Plan to blow the whole thing away and do it over (probably made some dumb/obscure mistake) but meanwhile would like to know if anyone else has had these problems.

edit: same thing when I deleted the backup file and files in tce/optional and downloaded again. I think the basic problem is the read-only file system thing with oss_ich.conf. OSS works when I first download it, but if I mess with permissions so I can edit oss_ich.conf it gets bombed. Didn't run into this with TC 2.8 which is where I did the original mods.
« Last Edit: March 25, 2010, 04:28:11 PM by thane »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: OSS with Intel8x0 soundchip
« Reply #4 on: March 25, 2010, 05:09:10 PM »
Updated OSS.tcz. Please try again; now it should be enough to just edit and add to .filetool.lst.
The only barriers that can stop you are the ones you create yourself.

Offline thane

  • Hero Member
  • *****
  • Posts: 697
Re: OSS with Intel8x0 soundchip
« Reply #5 on: March 25, 2010, 08:28:36 PM »
Thanks curaga. Will try tonight after I get home; still midafternoon in my "neck of the woods" -- Hawaii.

edit: Still couldn't get it to work (same problems). I was able to edit oss_ich.conf but when I rebooted (with Opera and VLC extensions also) I got the same errors.

I'm using alsa for now with this set of extensions but will work on figuring this out. As I said before, OSS works fine with Opera and MPlayer nodeps, but I initially set this up under TC 2,8.
« Last Edit: March 27, 2010, 03:53:49 AM by thane »