aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r--sound/pci/hda/hda_codec.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index c742e101d91e..cb9aae5e9ca5 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -1652,15 +1652,9 @@ static int snd_hda_spdif_in_switch_put(struct snd_kcontrol *kcontrol,
1652 mutex_lock(&codec->spdif_mutex); 1652 mutex_lock(&codec->spdif_mutex);
1653 change = codec->spdif_in_enable != val; 1653 change = codec->spdif_in_enable != val;
1654 if (change) { 1654 if (change) {
1655 hda_nid_t *d;
1656 codec->spdif_in_enable = val; 1655 codec->spdif_in_enable = val;
1657 snd_hda_codec_write_cache(codec, nid, 0, 1656 snd_hda_codec_write_cache(codec, nid, 0,
1658 AC_VERB_SET_DIGI_CONVERT_1, val); 1657 AC_VERB_SET_DIGI_CONVERT_1, val);
1659
1660 if (codec->slave_dig_outs)
1661 for (d = codec->slave_dig_outs; *d; d++)
1662 snd_hda_codec_write_cache(codec, *d, 0,
1663 AC_VERB_SET_DIGI_CONVERT_1, val);
1664 } 1658 }
1665 mutex_unlock(&codec->spdif_mutex); 1659 mutex_unlock(&codec->spdif_mutex);
1666 return change; 1660 return change;