Add support for kernel 4.3-4.9
authorTracy Yi <tracy-yi@ti.com>
Fri, 25 May 2018 23:54:05 +0000 (07:54 +0800)
committerTracy Yi <tracy-yi@ti.com>
Fri, 25 May 2018 23:54:05 +0000 (07:54 +0800)
Signed-off-by: Tracy Yi <tracy-yi@ti.com>
tas2557-codec.c

index a5a545d24359531d0a099c7cfa5ce2247e192799..0a23976f0da4ac069bbc8d8961fbc8644f4d4bc6 100755 (executable)
@@ -493,12 +493,14 @@ static struct snd_soc_codec_driver soc_codec_driver_tas2557 = {
        .resume = tas2557_codec_resume,
        .set_bias_level = tas2557_set_bias_level,
        .idle_bias_off = true,
-       .controls = tas2557_snd_controls,
-       .num_controls = ARRAY_SIZE(tas2557_snd_controls),
-       .dapm_widgets = tas2557_dapm_widgets,
-       .num_dapm_widgets = ARRAY_SIZE(tas2557_dapm_widgets),
-       .dapm_routes = tas2557_audio_map,
-       .num_dapm_routes = ARRAY_SIZE(tas2557_audio_map),
+       .component_driver = {
+               .controls = tas2557_snd_controls,
+               .num_controls = ARRAY_SIZE(tas2557_snd_controls),
+               .dapm_widgets = tas2557_dapm_widgets,
+               .num_dapm_widgets = ARRAY_SIZE(tas2557_dapm_widgets),
+               .dapm_routes = tas2557_audio_map,
+               .num_dapm_routes = ARRAY_SIZE(tas2557_audio_map),
+       },
 };
 
 static struct snd_soc_dai_ops tas2557_dai_ops = {