From: Takashi Iwai Subject: Re: [PATCH] ALSA: HDA: fix a mask Date: Tue, 11 Jun 2019 19:21:25 +0200 Message-ID: References: <20190611170907.trlfzwdar3xydc5f@debian.ka.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 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 6571CF80791 for ; Tue, 11 Jun 2019 19:21:26 +0200 (CEST) In-Reply-To: <20190611170907.trlfzwdar3xydc5f@debian.ka.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" To: Guennadi Liakhovetski Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Tue, 11 Jun 2019 19:09:07 +0200, Guennadi Liakhovetski wrote: > > Response tag only occupies 6 bits, not 7. This bug is harmless, since > the value has just been shifted to the right by 26 bits, so this is > only a cosmetic fix. > > Signed-off-by: Guennadi Liakhovetski Applied, thanks. Takashi > --- > sound/pci/hda/hda_jack.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/pci/hda/hda_jack.c b/sound/pci/hda/hda_jack.c > index 74b4695..60a5485 100644 > --- a/sound/pci/hda/hda_jack.c > +++ b/sound/pci/hda/hda_jack.c > @@ -563,7 +563,7 @@ static void call_jack_callback(struct hda_codec *codec, unsigned int res, > void snd_hda_jack_unsol_event(struct hda_codec *codec, unsigned int res) > { > struct hda_jack_tbl *event; > - int tag = (res >> AC_UNSOL_RES_TAG_SHIFT) & 0x7f; > + int tag = (res & AC_UNSOL_RES_TAG) >> AC_UNSOL_RES_TAG_SHIFT; > > event = snd_hda_jack_tbl_get_from_tag(codec, tag); > if (!event) > -- > 1.9.3 > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > https://mailman.alsa-project.org/mailman/listinfo/alsa-devel >