no audio outside player?

Posted by: Verement

no audio outside player? - 12/02/2000 17:57

After upgrading to the beta9c developer image, I find I can no longer get any audio output from my own programs. (The player runs fine, but when I exit and run something else, there is no sound.)

I've verified the mute status with this program, and I have also played around with making sure /dev/mixer's main volume channel is set to a reasonable level, but still I cannot get any sound from programs that used to work.

Any ideas?
-v


Posted by: Jazzwire

Re: no audio outside player? - 13/02/2000 03:30

This is from memory, so could be wrong...
When I built a kernel (so I could get a custom logo) I noticed a few config options.
I think they were empeg audio and empeg display (both were set off in the default script)
Maybe they aren't enabled on the developer release?
If I'm talking rubbish, feel free to correct me... =)

Jazz
(List 112, S/N 00030, 4 gig blue)
Posted by: Verement

Re: no audio outside player? - 16/02/2000 18:27

Well they surely must be enabled, or how would the player software even work? :-)

I've poked at this a little more, but I still can't be sure what's keeping audio from working after exiting from the player. This stuff has worked before, so it seems likely the player is leaving the audio device in a state different than it used to.

Hugo, Mike, John, anyone want to toss me a clue?

Thanks,
-v

Posted by: Jazzwire

Re: no audio outside player? - 17/02/2000 07:33

Well, in the kernel defaults in arch/arm/def-configs/empeg the dac and screen options were turned off... =)
I assumed that the default build options would be the ones empeg use...
Oh well, was worth a try.. =)

Jazz
(List 112, S/N 00030, 4 gig blue)
Posted by: Verement

Re: no audio outside player? - 17/02/2000 09:04

There appear to be two mutually exclusive empeg audio driver options, CONFIG_EMPEG_DSP and CONFIG_EMPEG_DAC. That explains why one of them is disabled, but I'm not sure what the history or difference is.

In any case, I've had to downgrade to beta8c until I can find an answer to my problem.

-v

Posted by: altman

Re: no audio outside player? - 17/02/2000 12:30

The DAC driver is for a simple I2S dac, this is used on some unannounced products and prototype boards :)

You need the DSP driver otherwise you won't get sound - the DSP needs to be initialised to make noise.

Hugo


Posted by: Verement

Re: no audio outside player? - 17/02/2000 12:43

In reply to:

the DSP needs to be initialised to make noise.


So... how did it get uninitialised, or more to the point, how can I initialise it?

Keep in mind I'm not doing anything different between beta8c and beta9c, yet I get sound with the former and not with the latter.

-v


Posted by: Verement

Re: no audio outside player? - 17/02/2000 13:04

OK, I've discovered something about a soft audio mute that was added to the kernel from beta8c to beta9a. Perhaps my problem has something to do with this?

Perhaps I should be selecting the PCM input source explicitly (and thereby turning off SAM in the process) or perhaps it is enough just to call ioctl(EMPEG_MIXER_SET_SAM)?

What is SAM, anyway?

-v

Posted by: Verement

Re: no audio outside player? - 17/02/2000 17:38

I found a solution to my problem, and posted it here.

-v