]> err.no Git - linux-2.6/blobdiff - sound/pci/hda/hda_codec.c
Merge branch 'generic-ipi' into generic-ipi-for-linus
[linux-2.6] / sound / pci / hda / hda_codec.c
index 689d177c17bd315356b1ac0845f4a4dbf89041ba..d2e1093f8e972306727255a46ffb7ce7d59ccf2e 100644 (file)
@@ -2335,7 +2335,7 @@ int snd_hda_check_board_config(struct hda_codec *codec,
        if (!tbl)
                return -1;
        if (tbl->value >= 0 && tbl->value < num_configs) {
-#ifdef CONFIG_SND_DEBUG_DETECT
+#ifdef CONFIG_SND_DEBUG_VERBOSE
                char tmp[10];
                const char *model = NULL;
                if (models)
@@ -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);
 }