Skip to contentSkip to conversation

how to resume pcm streams in driver? (esp. powermac snapper)

DISCUSSION John Steele Scott 2 participants 2 messages Nov 25, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

In the last week or so Benjamin Herrenschmidt has released a kernel patch which enables the sleep functionality on the iBook G4 and AlBook laptops.

I have an iBook G4 with Powermac Snapper audio. Most of the suspend/resume functionality is fine, but one issue I am having a problem with is that pcm streams are not being resumed.

The streams _are_ being suspended, but how are the supposed to be resumed? What is the opposite of snd_pcm_suspend_all()?

I know the actual sound hardware is being restored (mostly) correctly, because the "beep" functionality of the pmac driver works.

Any thoughts?

cheers,

John

#1 lore raw

At Thu, 25 Nov 2004 17:48:12 +1030,

Quoted 6 lines · John Steele Scott

Hi,

In the last week or so Benjamin Herrenschmidt has released a kernel patch which enables the sleep functionality on the iBook G4 and AlBook laptops.

Quoted 6 lines

I have an iBook G4 with Powermac Snapper audio. Most of the suspend/resume functionality is fine, but one issue I am having a problem with is that pcm streams are not being resumed.

The streams _are_ being suspended, but how are the supposed to be resumed? What is the opposite of snd_pcm_suspend_all()?

Nothing. The application is required to call resume by itself (i.e. preparing the PCM status, start the stream again). In the case of OSS emulation, the oss emul module does it.

Takashi

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/