On Fri, Apr 30, 2010 at 01:55:25PM +0300, Peter Ujfalusi wrote:
I need to keep the dac33_pcm_prepare level of configuration for cases, when the codec is in ON and a playback is starting (and if the codec is not ON, than respond it for later, when it is switch on), right? I _need_ to do the things, which is done in the dac33_prepare_chip function every time, when a stream is starting :(
Yes, absolutely - and if we add a post-DAPM prepare callback then you can just do that there without worrying about power in the driver.
I do agree, that it is not really nice to have playback related thing in the dac33_set_bias_level, but so far I think that is the only way to avoid additional hassle (which means more places to have error, problems).
Like I say, I think the addition of a post-DAPM callback on prepare ought to do the job just as well.