summaryrefslogtreecommitdiffstats
path: root/lib/fdt_ro.c
diff options
context:
space:
mode:
authorRichard Fitzgerald <rf@opensource.cirrus.com>2018-02-05 11:38:17 +0000
committerMark Brown <broonie@kernel.org>2018-02-12 09:34:49 +0000
commit04ff40a983e864b586f189b4c3503b6f61263643 (patch)
treec0a0b18bac110004ce3662fb77a1304df839d0af /lib/fdt_ro.c
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff)
downloadop-kernel-dev-04ff40a983e864b586f189b4c3503b6f61263643.zip
op-kernel-dev-04ff40a983e864b586f189b4c3503b6f61263643.tar.gz
ASoC: wm_adsp: Don't init cache from DSP memory if control is write-only
For controls marked write-only don't initialize the cache from the content of the DSP memory. We stil need the cache for any new data that is written to this control, and we need to return something for a read of the ALSA control because most user-side code assumes all ALSA controls are readable. The cache is already created zero- filled so the only change needed is to skip populating it from DSP memory if the control isn't readable. Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'lib/fdt_ro.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud