]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ALSA: hda: slave_dig_outs code block in wrong location
authorMatthew Ranostay <mranostay@embeddedalley.com>
Thu, 25 Sep 2008 13:17:11 +0000 (09:17 -0400)
committerJaroslav Kysela <perex@perex.cz>
Fri, 10 Oct 2008 11:41:33 +0000 (13:41 +0200)
Removed invalid references to slave_dig_outs inside the S/PDIF IN capture switch
control. Beforehand this was basically a mute switch for the S/PDIF outs as well.

Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/pci/hda/hda_codec.c

index c742e101d91eb1038979144b71b0676465c0e7f6..cb9aae5e9ca5ed4d319b77ea0d2f29168e196702 100644 (file)
@@ -1652,15 +1652,9 @@ static int snd_hda_spdif_in_switch_put(struct snd_kcontrol *kcontrol,
        mutex_lock(&codec->spdif_mutex);
        change = codec->spdif_in_enable != val;
        if (change) {
-               hda_nid_t *d;
                codec->spdif_in_enable = val;
                snd_hda_codec_write_cache(codec, nid, 0,
                                          AC_VERB_SET_DIGI_CONVERT_1, val);
-
-               if (codec->slave_dig_outs)
-                       for (d = codec->slave_dig_outs; *d; d++)
-                               snd_hda_codec_write_cache(codec, *d, 0,
-                                         AC_VERB_SET_DIGI_CONVERT_1, val);
        }
        mutex_unlock(&codec->spdif_mutex);
        return change;