Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755491Ab3ILSyW (ORCPT ); Thu, 12 Sep 2013 14:54:22 -0400 Received: from mail-1.atlantis.sk ([80.94.52.57]:52570 "EHLO mail-1.atlantis.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752965Ab3ILSyV (ORCPT ); Thu, 12 Sep 2013 14:54:21 -0400 From: Ondrej Zary To: alsa-devel@alsa-project.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 2/2] snd-ac97-codec: Use complete ID when the codec is not known Date: Thu, 12 Sep 2013 20:54:02 +0200 Message-Id: <1379012042-4382-2-git-send-email-linux@rainbow-software.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1379012042-4382-1-git-send-email-linux@rainbow-software.org> References: <1379012042-4382-1-git-send-email-linux@rainbow-software.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 968 Lines: 29 Currently, if the codec ID is not known, the last byte of the ID is used as name. It's not helpful at all, use full codec ID instead. Signed-off-by: Ondrej Zary --- sound/pci/ac97/ac97_codec.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c index bf578ba2..30a40a8 100644 --- a/sound/pci/ac97/ac97_codec.c +++ b/sound/pci/ac97/ac97_codec.c @@ -1830,7 +1830,7 @@ void snd_ac97_get_name(struct snd_ac97 *ac97, unsigned int id, char *name, int m pid->patch(ac97); } } else - sprintf(name + strlen(name), " id %x", id & 0xff); + sprintf(name + strlen(name), " id %x", id); } /** -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/