All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] correct a oops in snd-azx if model=allout
@ 2005-01-05  8:00 Nicolas GRAZIANO
  2005-01-07 14:14 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolas GRAZIANO @ 2005-01-05  8:00 UTC (permalink / raw)
  To: alsa-devel


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

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

* Re: [PATCH] correct a oops in snd-azx if model=allout
  2005-01-05  8:00 [PATCH] correct a oops in snd-azx if model=allout Nicolas GRAZIANO
@ 2005-01-07 14:14 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2005-01-07 14:14 UTC (permalink / raw)
  To: Nicolas GRAZIANO; +Cc: alsa-devel

At Wed, 05 Jan 2005 09:00:37 +0100,
Nicolas GRAZIANO wrote:
> 
> 
> 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

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

end of thread, other threads:[~2005-01-07 14:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-05  8:00 [PATCH] correct a oops in snd-azx if model=allout Nicolas GRAZIANO
2005-01-07 14:14 ` 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.