lkml.org 
[lkml]   [1999]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Saving device driver state during shutdown
Date
From

joec@ensoniq.com said:
> This was the solution I was thinking about. It seems to me that the
> drivers should be responsible for saving the hardware persistance.
> Forgetting the mixer state for a second, saving off hardware register
> state is a requirement for some power managment schemes.

I'm not too bothered who's "responsible" for it - as long as it's actually
possible to do it. I'm happy to handle it in user-space as much as possible,
but we need a small amount of modification to the kernel drivers to make that
possible - that is; a way of passing the required mixer levels to the driver
when it starts up (or postponing the mixer init until it's given the levels by
an ioctl), and a way of obtaining the final settings from the driver before
it's unloaded.

> This brings up another point. I want to save state as a means of
> getting away from passing command line parameters. This is a scary
> prospect for the new Linux user.

I meant this to be automated - the levels recorded from the previous
incarnation of the driver should be passed to the new incarnation without the
user ever seeing them.



---- ---- ----
David Woodhouse David.Woodhouse@mvhi.com Office: (+44) 1223 810302
Project Leader, Process Information Systems Mobile: (+44) 976 658355
Axiom (Cambridge) Ltd., Swaffham Bulbeck, Cambridge, CB5 0NA, UK.
finger dwmw2@ferret.lmh.ox.ac.uk for PGP key.



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.029 / U:0.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site