]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - hdmi begin to support dynamic PCM assignment
authorLibin Yang <libin.yang@linux.intel.com>
Wed, 16 Dec 2015 05:42:41 +0000 (13:42 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Jan 2016 06:34:56 +0000 (07:34 +0100)
commit8b8674c1b9045278b51759895b8bbe293678482e
treeb46c4d88b368f62ca8bc53f90570d8e6b89a596a
parent5367e65a538f2d59834d845f582bc1f1ae9599b8
ALSA: hda - hdmi begin to support dynamic PCM assignment

Begin to support dynamic PCM assignment to pin in
hdmi audio driver.

This means PCM will not be statically bound with pin.
When there is a monitor connected, the corresponding pin
will try to find a proper PCM to bind. When the monitor
is disconnected, the corresponding pin will unbind
the PCM. This helps to reduce the PCM number when there
are many pins (device entries in DP MST mode) and only
a few of them work at the same time.

This patch adds the pcm member in struct hdmi_spec_per_pin.
When PCM is dynamically bound to the pin, the member pcm
will pointer to the corresponding pcm_rec[] in hdmi_spec,
which means the hda_pcm is bound to the pin.

Signed-off-by: Libin Yang <libin.yang@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c