mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
drm/nouveau/kms/nv50-: bail from nv50_audio_disable() early if audio not enabled
Prevents "snd_hda_codec_hdmi hdaudioC1D0: HDMI: pin nid 5 not registered" that occur on some configurations. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
dcb7fd82c7
commit
72923e24f9
@ -601,6 +601,9 @@ nv50_audio_disable(struct drm_encoder *encoder, struct nouveau_crtc *nv_crtc)
|
|||||||
(0x0100 << nv_crtc->index),
|
(0x0100 << nv_crtc->index),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (!nv_encoder->audio)
|
||||||
|
return;
|
||||||
|
|
||||||
nv_encoder->audio = false;
|
nv_encoder->audio = false;
|
||||||
nvif_mthd(&disp->disp->object, 0, &args, sizeof(args));
|
nvif_mthd(&disp->disp->object, 0, &args, sizeof(args));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user