All of lore.kernel.org
 help / color / mirror / Atom feed
From: libin.yang@linux.intel.com
To: alsa-devel@alsa-project.org, tiwai@suse.de
Cc: libin.yang@intel.com, Libin Yang <libin.yang@linux.intel.com>,
	mengdong.lin@linux.intel.com
Subject: [RFC PATCH 0/2] hdmi audio dynamically bind PCM to pin
Date: Wed, 18 Nov 2015 16:46:57 +0800	[thread overview]
Message-ID: <1447836419-34336-1-git-send-email-libin.yang@linux.intel.com> (raw)

From: Libin Yang <libin.yang@linux.intel.com>

The patches are trying to support dynamically binding PCM to pin in HDMI audio.

The first patch:
When PCM is open when there is no pin (port) bound to the PCM,
the driver try to open the PCM successfully. It will try to find
an available converter to assign to the PCM.
In PCM prepare, if there is no pin bound to the PCM, the driver
will do the simple configuration and return true.
In PCM close, if there is no pin bound to the PCM, the driver will
simply close it.
All the pin configuration will be setup in the hotplug which is done
in patch 2.
As the PCM is dynamically bound to the pin, the pcm_lock is necessary
for the whole pcm open/prepare/close process.

The second patch:
The patch mainly handle the hotplug event.
Each time monitor is connected, a proper PCM will be bound to the pin.
If the PCM is in use, the pin must be configured.
Each time monitor is disconnect, the PCM will be unbound from the pin.
The pin will be reset.

Libin Yang (2):
  ALSA: hda - hdmi playback without monitor in dynamic pcm bind mode
  ALSA: hda - hdmi dynamically bind PCM to pin when monitor hotplug

 sound/pci/hda/hda_codec.h  |   1 +
 sound/pci/hda/patch_hdmi.c | 354 ++++++++++++++++++++++++++++++++++++++++++---
 2 files changed, 337 insertions(+), 18 deletions(-)

-- 
1.9.1

             reply	other threads:[~2015-11-18  8:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-18  8:46 libin.yang [this message]
2015-11-18  8:46 ` [RFC PATCH 1/2] ALSA: hda - hdmi playback without monitor in dynamic pcm bind mode libin.yang
2015-11-18 11:13   ` Takashi Iwai
2015-11-18 14:40     ` Yang, Libin
2015-11-18  8:46 ` [RFC PATCH 2/2] ALSA: hda - hdmi dynamically bind PCM to pin when monitor hotplug libin.yang
2015-11-18 11:31   ` Takashi Iwai
2015-11-18 14:43     ` Yang, Libin
2015-11-18 11:23 ` [RFC PATCH 0/2] hdmi audio dynamically bind PCM to pin Takashi Iwai
2015-11-18 14:40   ` Yang, Libin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1447836419-34336-1-git-send-email-libin.yang@linux.intel.com \
    --to=libin.yang@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=libin.yang@intel.com \
    --cc=mengdong.lin@linux.intel.com \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.