All of lore.kernel.org
 help / color / mirror / Atom feed
* Ordering in soc_pcm_hw_params()
@ 2014-08-11 13:35 jonsmirl
  2014-08-11 15:33 ` Mark Brown
  2014-08-12  8:42 ` Lars-Peter Clausen
  0 siblings, 2 replies; 24+ messages in thread
From: jonsmirl @ 2014-08-11 13:35 UTC (permalink / raw)
  To: alsa-devel mailing list
  Cc: Mark Brown, Nicolin Chen, Lars-Peter Clausen, Liam Girdwood

soc_pcm_hw_params() sets the parameters in this order:
link, codec, cpu, platform

This is tripping me up when switching between the 44100 and 48000
families.  If previous song was 44100 then the codec has sysclk set to
the 44100 family.

Now I play a 48000 family song. codec gets new hardware params and
errors out because sysclk is still in the 44100 family.

I have code in the cpu set_hw_params which will switch the sysclk, but
it never gets to run because the codec set_hw_params() has already
errored out.

Shouldn't this order be:
platform, link, cpu, codec

-- 
Jon Smirl
jonsmirl@gmail.com

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2014-08-13 17:47 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-11 13:35 Ordering in soc_pcm_hw_params() jonsmirl
2014-08-11 15:33 ` Mark Brown
2014-08-11 16:09   ` jonsmirl
2014-08-11 16:58     ` jonsmirl
2014-08-11 17:11     ` Mark Brown
2014-08-11 18:00       ` jonsmirl
2014-08-11 18:19         ` Mark Brown
2014-08-11 18:24           ` jonsmirl
2014-08-11 18:26             ` Mark Brown
2014-08-11 18:36               ` jonsmirl
2014-08-11 18:08       ` jonsmirl
2014-08-12  8:42 ` Lars-Peter Clausen
2014-08-12 11:45   ` jonsmirl
2014-08-12 11:46     ` jonsmirl
2014-08-12 11:53       ` Lars-Peter Clausen
2014-08-12 11:57       ` Mark Brown
2014-08-12 12:45         ` jonsmirl
2014-08-12 18:20           ` Mark Brown
2014-08-13 12:25             ` jonsmirl
2014-08-13 16:35               ` Mark Brown
2014-08-13 17:00                 ` jonsmirl
2014-08-13 17:24                   ` Mark Brown
2014-08-13 17:38                     ` jonsmirl
2014-08-13 17:47                   ` Lars-Peter Clausen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.