summaryrefslogtreecommitdiffstats
path: root/samples/connector
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2018-05-21 23:50:16 +0200
committerMark Brown <broonie@kernel.org>2018-05-22 11:57:16 +0100
commit737e370a57e4e83ead04166e89a8b53eee9734b0 (patch)
treeee1c2f6a4829b6061d19659227375efdf0c60abb /samples/connector
parenta6f933f63f2ffdb211dbf203dd9750449af000d3 (diff)
downloadop-kernel-dev-737e370a57e4e83ead04166e89a8b53eee9734b0.zip
op-kernel-dev-737e370a57e4e83ead04166e89a8b53eee9734b0.tar.gz
ASoC: pxa-ssp: allow more flexible setup order
The pxa-ssp driver currently assumes that .set_fmt() is called before .set_clkdiv(), .set_pll() etc. Commit a8bd0ee558714 ("ASoC: raumfeld: Use static DAI format setup") broke support for Raumfeld hardware (and possible other PXA based ones) because it effectively changed the order of these calls. Also, as the call to .set_fmt() is now done at probe time, the port clock is not yet enabled. To fix this, strip all hardware register access code from the .set_fmt() callback and memorize the desired value, so we can use it from the .hw_params() callback. Also make the .set_fmt() callback less destructive by reading all registers that it writes to in the beginning and only masking out the bits that it possibly fiddles with. Signed-off-by: Daniel Mack <daniel@zonque.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'samples/connector')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud