Skip to contentSkip to conversation

model name can be null in hda-intel

PATCH New Nicolas GRAZIANO 1 participant 1 message Feb 28, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 model name can be null in hda-intel

This patch fix a bug when no model is set in hda-intel module parameters. Introduce by model "generic"

pci/hda/hda_codec.c +1 -1
diff -r bf193701a812 pci/hda/hda_codec.c
@@ -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,

-------------------------------------------------------------------------
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

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel