linux/sound/soc/pxa
Daniel Mack 737e370a57
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 a8bd0ee558 ("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>
2018-05-22 11:57:16 +01:00
..
brownstone.c ASoC: pxa: constify snd_soc_ops structures 2017-03-15 13:34:16 +00:00
corgi.c ASoC: pxa: constify snd_soc_ops structures 2017-03-15 13:34:16 +00:00
e740_wm9705.c ASoC: pxa2xx-ac97: Remove unused DAI ID defines 2017-01-05 12:34:38 +00:00
e750_wm9705.c ASoC: pxa: Add space around '=' 2017-03-07 14:32:21 +01:00
e800_wm9712.c ASoC: pxa: Add space around '=' 2017-03-07 14:32:21 +01:00
em-x270.c ASoC: pxa: Add space around '=' 2017-03-07 14:32:21 +01:00
hx4700.c ASoC: pxa: Remove superfluous snd_soc_jack_free_gpios() call 2017-08-22 13:38:57 +01:00
imote2.c ASoC: pxa: constify snd_soc_ops structures 2017-03-15 13:34:16 +00:00
Kconfig ASoC: Remove depends on HAS_DMA in case of platform dependency 2018-04-18 11:17:09 +01:00
magician.c ASoC: pxa: constify snd_soc_ops structures 2017-03-15 13:34:16 +00:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mioa701_wm9713.c ASoC: pxa/mioa701_wm9713: replace codec to component 2018-02-19 13:07:24 +00:00
mmp-pcm.c ASoC: pxa: mmp: replace platform to component 2018-02-12 11:45:29 +00:00
mmp-sspa.c ASoC: pxa: remove duplicated bit-wise or of SNDRV_PCM_FMTBIT_S24_LE 2018-02-26 10:19:31 +00:00
mmp-sspa.h ASoC: mmp: add sspa support 2012-06-13 13:13:39 +01:00
palm27x.c ASoC: pxa2xx-ac97: Remove unused DAI ID defines 2017-01-05 12:34:38 +00:00
poodle.c ASoC: pxa: constify snd_soc_ops structures 2017-03-15 13:34:16 +00:00
pxa2xx-ac97.c ASoC: arm: make pxa2xx-ac97-lib ac97 codec agnostic 2017-09-04 18:24:56 +01:00
pxa2xx-i2s.c ASoC: pxa: Remove spaces before tabs 2017-03-07 14:28:42 +01:00
pxa2xx-i2s.h ASoC: pxa2xx-i2s: Remove unused DAI ID defines 2016-10-24 18:38:00 +01:00
pxa2xx-pcm.c ASoC: pxa: pxa2xx: replace platform to component 2018-02-12 11:45:29 +00:00
pxa-ssp.c ASoC: pxa-ssp: allow more flexible setup order 2018-05-22 11:57:16 +01:00
pxa-ssp.h ASoC: pxa-ssp: Remove unused DAI ID defines 2016-10-24 18:38:07 +01:00
raumfeld.c ASoC: pxa: constify snd_soc_ops structures 2017-03-15 13:34:16 +00:00
spitz.c ASoC: pxa: constify snd_soc_ops structures 2017-03-15 13:34:16 +00:00
tosa.c ASoC: pxa: constify snd_soc_ops structures 2017-03-15 13:34:16 +00:00
ttc-dkb.c ASoC: 88pm860x: replace codec to component 2018-02-12 11:07:55 +00:00
z2.c ASoC: pxa: constify snd_soc_ops structures 2017-03-15 13:34:16 +00:00
zylonite.c ASoC: pxa: constify snd_soc_ops structures 2017-03-15 13:34:16 +00:00