From: Takashi Iwai <tiwai@suse.de>
To: libin.yang@linux.intel.com
Cc: libin.yang@intel.com, mengdong.lin@intel.com,
alsa-devel@alsa-project.org
Subject: Re: [PATCH v3 5/5] ALSA: hda - hdmi setup pin when monitor hotplug in pcm dynamic assignment mode
Date: Fri, 11 Dec 2015 11:58:34 +0100 [thread overview]
Message-ID: <s5h37v9l09x.wl-tiwai@suse.de> (raw)
In-Reply-To: <1449712332-106365-6-git-send-email-libin.yang@linux.intel.com>
On Thu, 10 Dec 2015 02:52:12 +0100,
libin.yang@linux.intel.com wrote:
>
> From: Libin Yang <libin.yang@linux.intel.com>
>
> Setup pin configuration when monitor is hotplugged
> in pcm dynamic assignment if the PCM is in open state.
>
> When monitor is disconnect, The pin will be reset.
>
> Signed-off-by: Libin Yang <libin.yang@linux.intel.com>
> ---
> sound/pci/hda/hda_codec.h | 1 +
> sound/pci/hda/patch_hdmi.c | 82 +++++++++++++++++++++++++++++++++++++++++++---
> 2 files changed, 79 insertions(+), 4 deletions(-)
>
> diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h
> index 373fcad..ee97401 100644
> --- a/sound/pci/hda/hda_codec.h
> +++ b/sound/pci/hda/hda_codec.h
> @@ -167,6 +167,7 @@ enum {
> /* for PCM creation */
> struct hda_pcm {
> char *name;
> + bool in_use;
No need to add such a flag in a common object. (And actually it's
wrong to add here, it should be per stream.)
The check is needed only for HDMI/DP, thus it can be put in
hdmi_spec. And it can be a bit flag protected via your new pcm_lock.
Takashi
next prev parent reply other threads:[~2015-12-11 10:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-10 1:52 [PATCH v3 0/5] ALSA: hda - hdmi support dynmaic pcm assignment libin.yang
2015-12-10 1:52 ` [PATCH v3 1/5] ALSA: hda - hdmi begin to support dynamic PCM assignment libin.yang
2015-12-10 1:52 ` [PATCH v3 2/5] ALSA: hda - hdmi playback without monitor in dynamic pcm bind mode libin.yang
2015-12-10 1:52 ` [PATCH v3 3/5] ALSA: hda - hdmi operate spdif based on pcm libin.yang
2015-12-10 1:52 ` [PATCH v3 4/5] ALSA: hda - hdmi dynamically bind PCM to pin when monitor hotplug libin.yang
2015-12-10 1:52 ` [PATCH v3 5/5] ALSA: hda - hdmi setup pin when monitor hotplug in pcm dynamic assignment mode libin.yang
2015-12-11 10:58 ` Takashi Iwai [this message]
2015-12-14 8:16 ` Yang, Libin
2015-12-10 14:00 ` [PATCH v3 0/5] ALSA: hda - hdmi support dynmaic pcm assignment Takashi Iwai
2015-12-11 6:14 ` Libin Yang
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=s5h37v9l09x.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=libin.yang@intel.com \
--cc=libin.yang@linux.intel.com \
--cc=mengdong.lin@intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox