alsa-devel.alsa-project.org archive mirror
 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 V2 PATCH 4/5] ALSA: hda - add in_use flag in hda_pcm
Date: Mon, 23 Nov 2015 22:09:33 +0800	[thread overview]
Message-ID: <1448287774-146673-6-git-send-email-libin.yang@linux.intel.com> (raw)
In-Reply-To: <1448287774-146673-1-git-send-email-libin.yang@linux.intel.com>

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

Add in_use flag in struct hda_pcm for HD Audio dynamic PCM assignment.

Signed-off-by: Libin Yang <libin.yang@linux.intel.com>
---
 sound/pci/hda/hda_codec.h | 1 +
 1 file changed, 1 insertion(+)

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;
 	struct hda_pcm_stream stream[2];
 	unsigned int pcm_type;	/* HDA_PCM_TYPE_XXX */
 	int device;		/* device number to assign */
-- 
1.9.1

  parent reply	other threads:[~2015-11-23 14:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-23 14:09 [RFC V2 PATCH 0/5] hdmi audio dynamically bind PCM to pin libin.yang
2015-11-23 14:09 ` libin.yang
2015-11-23 14:09 ` [RFC V2 PATCH 1/5] ALSA: hda - hdmi playback without monitor in dynamic pcm bind mode libin.yang
2015-11-23 16:01   ` Takashi Iwai
2015-11-25  6:50     ` Yang, Libin
2015-11-23 14:09 ` [RFC V2 PATCH 2/5] ALSA: hda - hdmi operate spdif based on pcm libin.yang
2015-11-23 14:09 ` [RFC V2 PATCH 3/5] ALSA: hda - hdmi dynamically bind PCM to pin when monitor hotplug libin.yang
2015-11-23 15:59   ` Takashi Iwai
2015-11-25  6:53     ` Yang, Libin
2015-11-23 14:09 ` libin.yang [this message]
2015-11-23 15:50   ` [RFC V2 PATCH 4/5] ALSA: hda - add in_use flag in hda_pcm Takashi Iwai
2015-11-25  6:50     ` Yang, Libin
2015-11-23 14:09 ` [RFC V2 PATCH 5/5] ALSA: hda - hdmi setup pin when monitor hotplug in pcm dynamic assignment mode 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=1448287774-146673-6-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).