ASoC: Use snd_soc_dapm_nc_pin() in GTA02 driver
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 3 Mar 2009 11:28:28 +0000 (11:28 +0000)
committerAndy Green <agreen@octopus.localdomain>
Tue, 3 Mar 2009 11:28:28 +0000 (11:28 +0000)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/s3c24xx/neo1973_gta02_wm8753.c

index ade08e1..42f572c 100644 (file)
@@ -480,11 +480,10 @@ static int neo1973_gta02_wm8753_init(struct snd_soc_codec *codec)
        int i, err;
 
        /* set up NC codec pins */
-       snd_soc_dapm_set_endpoint(codec, "OUT3",  0);
-       snd_soc_dapm_set_endpoint(codec, "OUT4",  0);
-       snd_soc_dapm_set_endpoint(codec, "LINE1", 0);
-       snd_soc_dapm_set_endpoint(codec, "LINE2", 0);
-
+       snd_soc_dapm_nc_pin(codec, "OUT3");
+       snd_soc_dapm_nc_pin(codec, "OUT4");
+       snd_soc_dapm_nc_pin(codec, "LINE1");
+       snd_soc_dapm_nc_pin(codec, "LINE2");
 
        /* Add neo1973 gta02 specific widgets */
        snd_soc_dapm_new_controls(codec, wm8753_dapm_widgets, ARRAY_SIZE(wm8753_dapm_widgets));