All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hda empty modelname comparison
@ 2007-03-06 14:59 Joachim Deguara
  2007-03-07 20:04 ` Tobin Davis
  0 siblings, 1 reply; 6+ messages in thread
From: Joachim Deguara @ 2007-03-06 14:59 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 102 bytes --]

This patch prevents a comparison between a possibly empty modelname
string in the hda code.

-Joachim

[-- Attachment #2: hda_empty_modelname_comparison.patch --]
[-- Type: text/x-patch, Size: 656 bytes --]

Only in alsa-kernel/include: version.h
diff -rup /mnt/alsa/alsa-kernel/pci/hda/hda_codec.c alsa-kernel/pci/hda/hda_codec.c
--- /mnt/alsa/alsa-kernel/pci/hda/hda_codec.c	2007-03-01 14:50:24.000000000 +0100
+++ alsa-kernel/pci/hda/hda_codec.c	2007-03-06 15:37:03.000000000 +0100
@@ -573,7 +573,7 @@ int snd_hda_codec_new(struct hda_bus *bu
 							 0);
 	}
 
-	if (strcmp(codec->bus->modelname, "generic"))
+	if ( codec->bus->modelname && strcmp(codec->bus->modelname, "generic"))
 		codec->preset = find_codec_preset(codec);
 	if (! *bus->card->mixername)
 		snd_hda_get_codec_name(codec, bus->card->mixername,
Only in alsa-kernel/pci/hda: .hda_codec.c.swp

[-- Attachment #3: Type: text/plain, Size: 345 bytes --]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

[-- Attachment #4: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-03-08 14:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-06 14:59 [PATCH] hda empty modelname comparison Joachim Deguara
2007-03-07 20:04 ` Tobin Davis
2007-03-07 21:20   ` Takashi Iwai
2007-03-07 22:51     ` Tobin Davis
2007-03-07 22:58     ` Tobin Davis
2007-03-08 14:32     ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.