From: Takashi Iwai Subject: Re: [PATCH] ALSA: hda - not use regmap for vendor verb 0x781 of Intel HDMI codec Date: Tue, 14 Apr 2015 07:24:59 +0200 Message-ID: References: <2f716e6b90b7416eb34d35ed1954c7761bfd2050.1428918546.git.mengdong.lin@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 (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 5528A261A8E for ; Tue, 14 Apr 2015 07:24:59 +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-bounces@alsa-project.org To: "Lin, Mengdong" Cc: "'alsa-devel@alsa-project.org'" List-Id: alsa-devel@alsa-project.org At Tue, 14 Apr 2015 03:26:10 +0000, Lin, Mengdong wrote: > > > -----Original Message----- > > From: Lin, Mengdong > > Sent: Monday, April 13, 2015 9:30 PM > > > > > For HDMI codec on Haswell/Broadwell/Skylake platforms, the vendor > > > > verb > > > > 0x781 is used enable DP 1.2 mode as a fixup if BIOS has not done > > > > this, in function intel_haswell_fixup_enable_dp12(). Otherwise, the > > > > display audio playback will be silent. > > > > > > > > Although the verb 0x781 is added to vendor verbs array, but > > > > snd_hdac_regmap_ > > > > encode_verb() will translate it to verb 0xf81 and cause regmap_write > > > > IO failure because 0xf81 is not in the vendor verb array and so will > > > > not be taken as a writable register. > > > > > > > > So this patch no longer uses regmap for verb 0x781 but directly send > > > > this command to enable DP1.2 mode. > > > > > > What if just add INTEL_GET_VENDOR_VERB as a vendor verb? > > > > Yes, it should work. hda_reg_write will drop the GET bit. > > I'll have a test tomorrow. > > > > What if just add INTEL_GET_VENDOR_VERB as a vendor verb? > > > > Yes, it should work. hda_reg_write will drop the GET bit. > > I'll have a test tomorrow. > > Hi Takashi, > > I've submitted v2 and v3 patches, both can work one my SKL. Please review. > > V2: add INTEL_GET_VENDOR_VERB as a vendor verb as you suggested. > I verified this on a SKL desktop, on which BIOS does not enable DP1.2 mode by default and so we observed the HDMI/DP audio failure. > > V3: set GET bit when adding a vendor verb to the codec regmap > It also works on my SKL. It's more generic than v2, because I observed other HD-A codecs (Conexant, si3054, sigmatel) also add their own vendor SET verbs and may have the same problem. > However, I have no chance to verify these codecs since I cannot find platforms with them. I like v3 better so I took it. Thanks! Takashi