-----Original Message----- From: Mark Brown [mailto:broonie@kernel.org] Sent: Tuesday, May 13, 2014 4:29 AM To: Lars-Peter Clausen Cc: Bard Liao; lgirdwood@gmail.com; alsa-devel@alsa-project.org; Flove; Oder Chiou; Gustaw Lewandowski Subject: Re: [PATCH v6] ASoC: add RT286 CODEC driver
If you really want to reuse regmap having a write only regmap internal to the driver (not presented to ASoC) which just remembers the last value written to every NID/VID combination might work and at least avoids the ugly bits with trying to convince ASoC there are registers since you don't need to worry about reading the data back and can just pretend that read values match written values since we never look at them except to write them back out.
Yes kind of.
Kind of? It solves the cache sync case and if it's write only then we won't need to go to the register map for reads anyway (outside of interrupt handling and so on).
Does "write only regmap" mean read (almost) everything from cache? If so, we don't need to care about the asymmetry read/write issue. In that case, can we use regmap for mixer/mux controls just like other drivers do?
------Please consider the environment before printing this e-mail.