Re: [alsa-devel] [PATCH] ASoC: rt5640: add master clock handling for rt5640

From: Mark Brown
Date: Fri Feb 26 2016 - 20:52:14 EST


On Fri, Feb 26, 2016 at 09:43:15AM -0600, Pierre-Louis Bossart wrote:

> Yes there are documentation and helpers I looked into, but to the best of my
> limited knowledge not for the gate + dual-rate case. Then you jump to
> complicated configurations combining multiple base clocks that don't really
> make sense here. After one frustrating day of trying to wrap 100 lines of
> code into the clock framework I gave up and kept the simple custom driver.
> There is a single client for this clock so I don't quite see the
> benefits/ROI of mapping a simple piece of hardware with a complex model.

If the helpers aren't fitting your needs then surely just writing a
simple driver with set rate and enable callbacks isn't going to be too
hard? The wm831x driver was pretty trivial to write and seems to be on
a similar order of complexity to this.

Attachment: signature.asc
Description: PGP signature