From: Takashi Iwai <tiwai@suse.de>
To: "Yang, Libin" <libin.yang@intel.com>
Cc: "Lin, Mengdong" <mengdong.lin@intel.com>,
"libin.yang@linux.intel.com" <libin.yang@linux.intel.com>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Re: [PATCH 4/4] ALSA: hda - hdmi monitor hotplug support for dynamic pcm assignment
Date: Fri, 08 Jan 2016 08:45:25 +0100 [thread overview]
Message-ID: <s5hbn8w8qga.wl-tiwai@suse.de> (raw)
In-Reply-To: <96A12704CE18D347B625EE2D4A099D190464D209@SHSMSX103.ccr.corp.intel.com>
On Fri, 08 Jan 2016 06:25:37 +0100,
Yang, Libin wrote:
>
> Hi Takashi,
>
> > -----Original Message-----
> > From: Takashi Iwai [mailto:tiwai@suse.de]
> > Sent: Thursday, January 07, 2016 10:18 PM
> > To: libin.yang@linux.intel.com
> > Cc: alsa-devel@alsa-project.org; Lin, Mengdong; Yang, Libin
> > Subject: Re: [alsa-devel] [PATCH 4/4] ALSA: hda - hdmi monitor hotplug
> > support for dynamic pcm assignment
> >
> > On Thu, 31 Dec 2015 02:22:22 +0100,
> > libin.yang@linux.intel.com wrote:
> > >
> > > From: Libin Yang <libin.yang@linux.intel.com>
> > >
> > > This patch adds the support for monitor hotplug of dynamic pcm
> > assignment.
> > >
> > > 1. unsol_event enabling
> > > - For codec_has_acomp, unsol_event is disabled.
> > > - For !codec_has_acomp && !dyn_pcm_assign, use the hda_jack
> > helper to
> > > enable unsol_event
> > > - For !codec_has_acomp && dyn_pcm_assign, enable unsol_event
> > with verb
> > > directly
> > >
> > > 2. unsol_event handling
> > > - For !dyn_pcm_assign, use hda_jack helper to report the event
> > > - For dyn_pcm_assign, use snd_jack_report() directly
> >
> > I guess we can reduce lots of codes if ignoring the case with
> > dyn_pcm_assign but without audio component? If so, for simplicity, we
> > can limit dyn_pcm_assign only tied with audio component. Just add a
> > WARN_ON() in such a case. Although the functionality is somehow
> > unrelated, the actual testing and coding is more targeted with Intel
> > chips that are only with audio component.
>
> My initial idea is to support:
> 1. dyn_pcm_assign && acomp: Intel case
> 2. dyn_pcm_assign && !acomp: other vendors MST case
> 3. !dyn_pcm_assign && acomp: Intel non-mst case
> 4. !dyn_pcm_assign && !acomp: other vendors current case
>
> Do you mean we can ignore other vendors' case so far? If so, the
> code will be simpler.
Yes. And give WARN_ON(dyn_pcm_assign && !acomp);
Takashi
next prev parent reply other threads:[~2016-01-08 7:45 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-31 1:22 [PATCH 0/4] ALSA: hda - hdmi jack support for dynamic pcm assignment libin.yang
2015-12-31 1:22 ` [PATCH 1/4] ALSA: Add documentation about HD-audio DP MST libin.yang
2015-12-31 1:22 ` [PATCH 2/4] ALSA: hda - add hdmi_pcm to manage hdmi pcm related features libin.yang
2016-01-07 13:59 ` Takashi Iwai
2016-01-08 2:48 ` Yang, Libin
2015-12-31 1:22 ` [PATCH 3/4] ALSA: hda - hdmi jack created based on pcm libin.yang
2016-01-07 14:13 ` Takashi Iwai
2016-01-08 3:15 ` Yang, Libin
2016-01-08 7:43 ` Takashi Iwai
2016-01-08 7:52 ` Yang, Libin
2016-01-08 7:54 ` Takashi Iwai
2016-01-08 7:57 ` Yang, Libin
2015-12-31 1:22 ` [PATCH 4/4] ALSA: hda - hdmi monitor hotplug support for dynamic pcm assignment libin.yang
2016-01-07 14:18 ` Takashi Iwai
2016-01-08 5:25 ` Yang, Libin
2016-01-08 7:45 ` Takashi Iwai [this message]
2016-01-08 7:53 ` Yang, Libin
2016-01-06 9:18 ` [PATCH 0/4] ALSA: hda - hdmi jack " Takashi Iwai
2016-01-07 1:41 ` Yang, Libin
2016-01-07 10:31 ` Takashi Iwai
2016-01-08 2:47 ` 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=s5hbn8w8qga.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