[alsa-devel] [PATCH] Add support for CLKOUT to wm8731 codec driver

Bill Gatliff bgat at billgatliff.com
Fri Oct 30 20:04:25 CET 2009

Mark Brown wrote:
> wm8993 supports multiple internal options for sysclk usig the id
> parameter. Could you be more explicit about what you can't follow here
> please? I might be able to help more if I could see what's confusing you.

I guess what it comes down to is, I have no idea what I'm doing as far
as the Alsa SoC APIs are concerned.  I understand fully how the hardware
works, but not any of the SND_SOC_* macros.  I'm lost!  :)

I see in the wm8993 code the following:

static const struct snd_soc_dapm_widget wm8993_dapm_widgets[] = {
SND_SOC_DAPM_SUPPLY("CLK_SYS", WM8993_BUS_CONTROL_1, 1, 0, clk_sys_event,
                    SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),

And I also have looked at the clk_sys_event function in the same file. 
And then farther down:

static const struct snd_soc_dapm_route routes[] = {
        { "DACL", NULL, "CLK_SYS" },

I guess that the updates to the wm8731 would somehow look like the
above?  I don't mind looking at code and macros at all, I'm just not yet
seeing how all this stuff fits together.


Bill Gatliff
bgat at billgatliff.com

More information about the Alsa-devel mailing list