Commit 1470bfac authored by Mark Brown's avatar Mark Brown

ASoC: wm0010: Add dummy widget for CLKIN

Make it easier to integrate the management of the clock supplying the
WM0010 with DAPM by providing a dummy supply widget which supplies the
interface widgets, this can be connected to clock outputs by the machines.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 6df31986
...@@ -118,9 +118,18 @@ struct wm0010_spi_msg { ...@@ -118,9 +118,18 @@ struct wm0010_spi_msg {
size_t len; size_t len;
}; };
static const struct snd_soc_dapm_widget wm0010_dapm_widgets[] = {
SND_SOC_DAPM_SUPPLY("CLKIN", SND_SOC_NOPM, 0, 0, NULL, 0),
};
static const struct snd_soc_dapm_route wm0010_dapm_routes[] = { static const struct snd_soc_dapm_route wm0010_dapm_routes[] = {
{ "SDI2 Capture", NULL, "SDI1 Playback" }, { "SDI2 Capture", NULL, "SDI1 Playback" },
{ "SDI1 Capture", NULL, "SDI2 Playback" }, { "SDI1 Capture", NULL, "SDI2 Playback" },
{ "SDI1 Capture", NULL, "CLKIN" },
{ "SDI2 Capture", NULL, "CLKIN" },
{ "SDI1 Playback", NULL, "CLKIN" },
{ "SDI2 Playback", NULL, "CLKIN" },
}; };
static const char *wm0010_state_to_str(enum wm0010_state state) static const char *wm0010_state_to_str(enum wm0010_state state)
...@@ -718,6 +727,8 @@ static struct snd_soc_codec_driver soc_codec_dev_wm0010 = { ...@@ -718,6 +727,8 @@ static struct snd_soc_codec_driver soc_codec_dev_wm0010 = {
.set_bias_level = wm0010_set_bias_level, .set_bias_level = wm0010_set_bias_level,
.set_sysclk = wm0010_set_sysclk, .set_sysclk = wm0010_set_sysclk,
.dapm_widgets = wm0010_dapm_widgets,
.num_dapm_widgets = ARRAY_SIZE(wm0010_dapm_widgets),
.dapm_routes = wm0010_dapm_routes, .dapm_routes = wm0010_dapm_routes,
.num_dapm_routes = ARRAY_SIZE(wm0010_dapm_routes), .num_dapm_routes = ARRAY_SIZE(wm0010_dapm_routes),
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment