From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH v1 9/9] ASoC: Intel: Boards: add support for HDA codecs Date: Tue, 27 Feb 2018 17:55:01 +0100 Message-ID: References: <1519373550-2545-1-git-send-email-rakesh.a.ughreja@intel.com> <1519373550-2545-10-git-send-email-rakesh.a.ughreja@intel.com> <2536565b-4783-0829-536e-ee24e435c041@linux.intel.com> <85DFEED57DC57344B2483EF7BF8CB60579B2A59B@BGSMSX104.gar.corp.intel.com> <9bcab530-3517-5a27-7a49-65af8aff6ba5@linux.intel.com> <85DFEED57DC57344B2483EF7BF8CB60579B2B1C8@BGSMSX104.gar.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 1A8D62676BB for ; Tue, 27 Feb 2018 17:55:01 +0100 (CET) In-Reply-To: <85DFEED57DC57344B2483EF7BF8CB60579B2B1C8@BGSMSX104.gar.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: "Ughreja, Rakesh A" Cc: "alsa-devel@alsa-project.org" , "Koul, Vinod" , Pierre-Louis Bossart , "liam.r.girdwood@linux.intel.com" , Patches Audio , "broonie@kernel.org" List-Id: alsa-devel@alsa-project.org On Tue, 27 Feb 2018 17:20:05 +0100, Ughreja, Rakesh A wrote: > > >> The hdac_hda is just a wrapper around the legacy codec driver > >> and so it relies on the functionality of the legacy HDA codec driver > >> for all the functionality including pin re-tasking. > >> > >> The widget names that you see above is just to complete the > >> DAPM route. Based on your comment I am planning to rename it as > >> following > >> > >> Analog In Endpoint > >> Analog Output Endpoint > >> Digital In Endpoint > >> Digital Out Endpoint > >> > >> and will connect it to the Codec Pins. > >> > >> Also I think it makes sense to rename the codec Pin names accordingly > >> > >> Codec Analog Input Pin > >> Codec Analog Output Pin > >> Codec Digital Input Pin > >> Codec Digital Output Pin > > > >Humm, what if you have more than one analog input? It's almost as if > >this list should be created dynamically based on what is exposed by the > >codec, I don't see how a static list will cover all configurations. > > If it is really required it can be done, the codec->pcm_list_head has got > entries stored. > > But I am not sure what is the behavior of the legacy HDA codec driver > when it sees more than one Analog inputs. > > Takashi, will I see two Analog entries in the pcm_list_head ? Yes, in a few cases, the generic parser creates another PCM for analog I/O as "Alt Analog": - When a DAC is available for the headphone independently from others ("independent HP" stream) - When there are multiple ADCs and neither dynamic ADC switch nor auto-mic selection feature is used Takashi