From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH 4/4] ALSA: hda - hdmi monitor hotplug support for dynamic pcm assignment Date: Fri, 08 Jan 2016 08:45:25 +0100 Message-ID: References: <1451524942-17288-1-git-send-email-libin.yang@linux.intel.com> <1451524942-17288-5-git-send-email-libin.yang@linux.intel.com> <96A12704CE18D347B625EE2D4A099D190464D209@SHSMSX103.ccr.corp.intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id A45992604AA for ; Fri, 8 Jan 2016 08:45:25 +0100 (CET) In-Reply-To: <96A12704CE18D347B625EE2D4A099D190464D209@SHSMSX103.ccr.corp.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: "Yang, Libin" Cc: "Lin, Mengdong" , "libin.yang@linux.intel.com" , "alsa-devel@alsa-project.org" List-Id: alsa-devel@alsa-project.org 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 > > > > > > 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