From: Nicolas GRAZIANO <nicolas.graziano@wanadoo.fr>
To: alsa-devel@alsa-project.org
Subject: [PATCH] correct a oops in snd-azx if model=allout
Date: Wed, 05 Jan 2005 09:00:37 +0100 [thread overview]
Message-ID: <41DB9EA5.8090504@wanadoo.fr> (raw)
Correct the handling of an array terminated by {}; (introduce in CVS
version 1.6 of file hda_codec.c)
Nicolas GRAZIANO
Index: pci/azx/hda_codec.c
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/pci/azx/hda_codec.c,v
retrieving revision 1.8
diff -u -r1.8 hda_codec.c
--- pci/azx/hda_codec.c 4 Jan 2005 11:06:19 -0000 1.8
+++ pci/azx/hda_codec.c 5 Jan 2005 07:46:06 -0000
@@ -878,11 +878,15 @@
*/
int snd_hda_create_spdif_out_ctls(struct hda_codec *codec, hda_nid_t nid)
{
- int i, err;
+ int err;
+
snd_kcontrol_t *kctl;
-
- for (i = 0; i < ARRAY_SIZE(dig_mixes); i++) {
- kctl = snd_ctl_new1(&dig_mixes[i], codec);
+
+ snd_kcontrol_new_t * dig_mix;
+ dig_mix=dig_mixes;
+
+ for (; dig_mix->name; dig_mix++) {
+ kctl = snd_ctl_new1(dig_mix, codec);
kctl->private_value = nid;
if ((err = snd_ctl_add(codec->bus->card, kctl)) < 0)
return err;
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
next reply other threads:[~2005-01-05 8:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-05 8:00 Nicolas GRAZIANO [this message]
2005-01-07 14:14 ` [PATCH] correct a oops in snd-azx if model=allout Takashi Iwai
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=41DB9EA5.8090504@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