From: Nicolas GRAZIANO <nicolas.graziano@wanadoo.fr>
To: alsa-devel@alsa-project.org
Subject: [PATCH] model name can be null in hda-intel
Date: Thu, 01 Mar 2007 00:19:31 +0100 [thread overview]
Message-ID: <45E60E03.3090309@wanadoo.fr> (raw)
[-- Attachment #1: Type: text/plain, Size: 168 bytes --]
This patch fix a bug when no model is set in hda-intel module parameters.
Introduce by model "generic"
Signed-off-by: Nicolas Graziano <nicolas.graziano@wanadoo.fr>
[-- Attachment #2: modelNameCanBeNull.patch --]
[-- Type: text/x-patch, Size: 489 bytes --]
diff -r bf193701a812 pci/hda/hda_codec.c
--- a/pci/hda/hda_codec.c Mon Feb 26 16:07:42 2007 +0100
+++ b/pci/hda/hda_codec.c Thu Mar 01 00:06:57 2007 +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,
[-- 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
reply other threads:[~2007-02-28 23:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45E60E03.3090309@wanadoo.fr \
--to=nicolas.graziano@wanadoo.fr \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox