diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-05-10 04:21:29 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-05-10 08:56:15 -0400 |
commit | e3245cddcf56ccd810b73d0a2918e02560da93ab (patch) | |
tree | 95deb25015d48b4706a7972d2f88bf235e3d8177 /sound/pci/hda/patch_hdmi.c | |
parent | 61d648fb4726f8a89c07cd1904f9c2e11bf26df5 (diff) |
ALSA: hda - Protect SPDIF-related stuff via spdif_mutex
Add the missing mutex protection or move into the protected part for
SPDIF access codes for codecs.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_hdmi.c')
-rw-r--r-- | sound/pci/hda/patch_hdmi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index 83f345f3c961..ad319d4dc32f 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c | |||
@@ -1592,10 +1592,10 @@ static int nvhdmi_8ch_7x_pcm_prepare(struct hda_pcm_stream *hinfo, | |||
1592 | unsigned int dataDCC2, channel_id; | 1592 | unsigned int dataDCC2, channel_id; |
1593 | int i; | 1593 | int i; |
1594 | struct hdmi_spec *spec = codec->spec; | 1594 | struct hdmi_spec *spec = codec->spec; |
1595 | struct hda_spdif_out *spdif = | 1595 | struct hda_spdif_out *spdif; |
1596 | snd_hda_spdif_out_of_nid(codec, spec->cvts[0].cvt_nid); | ||
1597 | 1596 | ||
1598 | mutex_lock(&codec->spdif_mutex); | 1597 | mutex_lock(&codec->spdif_mutex); |
1598 | spdif = snd_hda_spdif_out_of_nid(codec, spec->cvts[0].cvt_nid); | ||
1599 | 1599 | ||
1600 | chs = substream->runtime->channels; | 1600 | chs = substream->runtime->channels; |
1601 | 1601 | ||