Unix Technical Forum

Re: audio issues

This is a discussion on Re: audio issues within the lucky.openbsd.tech forums, part of the OpenBSD category; --> Shit, I sent my last message before completing it. The bug is in auich.c. At around line 834 the ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > lucky.openbsd.tech

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-22-2008, 11:21 AM
Marco S Hyman
 
Posts: n/a
Default Re: audio issues

Shit, I sent my last message before completing it. The bug is
in auich.c. At around line 834 the code does this:

orate = play->sample_rate;
if (sc->sc_ac97rate != 0)
play->sample_rate = orate * AUICH_FIXED_RATE /
sc->sc_ac97rate;
error = ac97_set_rate(sc->codec_if, play, AUMODE_PLAY);
play->sample_rate = orate;

It does a similar thing to set the AUMODE_RECORD rate around line 876.

The problem is that ac97_set_rate may update the rate to a different
value than that requested and not signal an error. We clobber the
value set in ac97.c. I'm not sure what the proper thing to do
here, is.

// marc

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:10 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com