Merge remote-tracking branches 'asoc/topic/nau8810', 'asoc/topic/of-bool', 'asoc...
[cascardo/linux.git] / sound / soc / codecs / wm5102.c
index 846deed..93876c6 100644 (file)
@@ -1521,6 +1521,16 @@ static const struct snd_soc_dapm_route wm5102_dapm_routes[] = {
        { "IN3L", NULL, "SYSCLK" },
        { "IN3R", NULL, "SYSCLK" },
 
+       { "ASRC1L", NULL, "SYSCLK" },
+       { "ASRC1R", NULL, "SYSCLK" },
+       { "ASRC2L", NULL, "SYSCLK" },
+       { "ASRC2R", NULL, "SYSCLK" },
+
+       { "ASRC1L", NULL, "ASYNCCLK" },
+       { "ASRC1R", NULL, "ASYNCCLK" },
+       { "ASRC2L", NULL, "ASYNCCLK" },
+       { "ASRC2R", NULL, "ASYNCCLK" },
+
        { "MICBIAS1", NULL, "MICVDD" },
        { "MICBIAS2", NULL, "MICVDD" },
        { "MICBIAS3", NULL, "MICVDD" },
@@ -1600,7 +1610,6 @@ static const struct snd_soc_dapm_route wm5102_dapm_routes[] = {
        { "Slim3 Capture", NULL, "SYSCLK" },
 
        { "Audio Trace DSP", NULL, "DSP1" },
-       { "Audio Trace DSP", NULL, "SYSCLK" },
 
        { "IN1L PGA", NULL, "IN1L" },
        { "IN1R PGA", NULL, "IN1R" },
@@ -1990,7 +1999,7 @@ static struct regmap *wm5102_get_regmap(struct device *dev)
        return priv->core.arizona->regmap;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm5102 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm5102 = {
        .probe = wm5102_codec_probe,
        .remove = wm5102_codec_remove,
        .get_regmap = wm5102_get_regmap,
@@ -2000,12 +2009,14 @@ static struct snd_soc_codec_driver soc_codec_dev_wm5102 = {
        .set_sysclk = arizona_set_sysclk,
        .set_pll = wm5102_set_fll,
 
-       .controls = wm5102_snd_controls,
-       .num_controls = ARRAY_SIZE(wm5102_snd_controls),
-       .dapm_widgets = wm5102_dapm_widgets,
-       .num_dapm_widgets = ARRAY_SIZE(wm5102_dapm_widgets),
-       .dapm_routes = wm5102_dapm_routes,
-       .num_dapm_routes = ARRAY_SIZE(wm5102_dapm_routes),
+       .component_driver = {
+               .controls               = wm5102_snd_controls,
+               .num_controls           = ARRAY_SIZE(wm5102_snd_controls),
+               .dapm_widgets           = wm5102_dapm_widgets,
+               .num_dapm_widgets       = ARRAY_SIZE(wm5102_dapm_widgets),
+               .dapm_routes            = wm5102_dapm_routes,
+               .num_dapm_routes        = ARRAY_SIZE(wm5102_dapm_routes),
+       },
 };
 
 static struct snd_compr_ops wm5102_compr_ops = {