correct a oops in snd-azx if model=allout
PATCH 1/1 correct a oops in snd-azx if model=allout
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
azx/hda_codec.c 5 Jan 2005 07:46:06 -0000 renamed from azx/hda_codec.c 4 Jan 2005 11:06:19 -0000 1.8 +0 -0
@@ -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
At Wed, 05 Jan 2005 09:00:37 +0100,
Quoted 6 lines · Nicolas GRAZIANO
Correct the handling of an array terminated by {}; (introduce in CVS version 1.6 of file
hda_codec.c)Nicolas GRAZIANO
Thanks, fixed on CVS now.
Takashi
-------------------------------------------------------
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