]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/pci/hda/hda_codec.c
[ALSA] hda-codec - Fix unbalanced mutex
[karo-tx-linux.git] / sound / pci / hda / hda_codec.c
index 689d177c17bd315356b1ac0845f4a4dbf89041ba..a6be6e3e8716026b8a8e129f5e7bc9d9ec31b37f 100644 (file)
@@ -2665,8 +2665,8 @@ int snd_hda_multi_out_analog_open(struct hda_codec *codec,
                        if (mout->spdif_maxbps < hinfo->maxbps)
                                hinfo->maxbps = mout->spdif_maxbps;
                }
+               mutex_unlock(&codec->spdif_mutex);
        }
-       mutex_unlock(&codec->spdif_mutex);
        return snd_pcm_hw_constraint_step(substream->runtime, 0,
                                          SNDRV_PCM_HW_PARAM_CHANNELS, 2);
 }