]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: x86: Don't set PCM state to DISCONNECTED
authorTakashi Iwai <tiwai@suse.de>
Tue, 31 Jan 2017 06:30:20 +0000 (07:30 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Feb 2017 15:20:41 +0000 (16:20 +0100)
commitb7a7e05064a1174f452795dc472d54ece500b3c1
treefb16fd6e8935d1c580198ecceecaf2c93db6685e
parent183679a0415bbe17d9c4a2eb836513e2307c09f9
ALSA: x86: Don't set PCM state to DISCONNECTED

Theoretically setting the state to SNDRV_PCM_STATE_DISCONNECTED is
correct.  But, unfortunately, PA gets confused by this action, and it
won't re-probe the device after HDMI/DP is re-plugged.  (It reprobes
only when the card itself is recreated.)

As a workaround, set SNDRV_PCM_STATE_SETUP instead.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio_if.c