[alsa-devel] Request for comments for SND_SOC_IMX_WM8731

Fabio Estevam festevam at gmail.com
Fri Oct 24 16:10:52 CEST 2014


On Fri, Oct 24, 2014 at 12:04 PM, Mark Brown <broonie at kernel.org> wrote:
> On Fri, Oct 24, 2014 at 10:20:29AM -0200, Fabio Estevam wrote:
>> On Fri, Oct 24, 2014 at 2:42 AM, Jonathan Bennett <jbscience87 at gmail.com> wrote:
>
>> > + ssi_clk = devm_clk_get(&codec_dev->dev, "cko");
>> > + if (IS_ERR(ssi_clk)) {
>> > + pr_err("Could not get \"cko\" clock \n");
>> > + return PTR_ERR(ssi_clk);
>>
>> I am not sure that adding the clock handling here is the correct approach.
>>
>> The dts you use looks like:
>>
>>    codec: wm8731 at 1a {
>>       compatible = "wlf,wm8731";
>>       reg = <0x1a>;
>>       clocks = <&clks 173>, <&clks 158>, <&clks 201>, <&clks 200>;
>>       clock-names = "pll4", "imx-ssi.1", "cko", "cko2";
>
>> ,which does not match the current bindings for the wm8731. The wm8731
>> driver could be extended to handle the clocks if needed, instead of
>> handling them via machine driver.
>
> The WM8731 doesn't have anything like that number of clock inputs so
> hanging them off the WM8731 seems very confused.

Yes, exactly. If we need to pass a clock to WM8731 it should be MCLK only.

The pll4, ssi clocks are internal mx6 clocks, so the proposed clock
handling should be reworked.


More information about the Alsa-devel mailing list