From: Takashi Iwai Subject: Re: [PATCH 2/2] ALSA: hda/hdmi - Fix i915 reverse port/pin mapping Date: Tue, 16 Jul 2019 16:37:45 +0200 Message-ID: References: <20190716074255.14267-1-tiwai@suse.de> <20190716074255.14267-2-tiwai@suse.de> 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 mx1.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id B1EA6F800C4 for ; Tue, 16 Jul 2019 16:37:46 +0200 (CEST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" To: Kai Vehmanen Cc: Hui Wang , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Tue, 16 Jul 2019 16:33:15 +0200, Kai Vehmanen wrote: > > Hi Takashi, > > On Tue, 16 Jul 2019, Takashi Iwai wrote: > > > The recent fix for Icelake HDMI codec introduced the mapping from pin > > NID to the i915 gfx port number. However, it forgot the reverse > > mapping from the port number to the pin NID that is used in the ELD > > notifier callback. As a result, it's processed to a wrong widget and > > gives a warning like > > snd_hda_codec_hdmi hdaudioC0D2: HDMI: pin nid 5 not registered > > > > This patch corrects it with a proper reverse mapping function. > > looks good: > > Reviewed-by: Kai Vehmanen Thanks for the review. Actually I found one minor problem now. The caller doesn't handle the error case returned from intel_port2pin(). It should be harmless, but it's better to bail out earlier. Will resubmit the v2 patch (only for patch 2/2) with the correction. Takashi