lkml.org 
[lkml]   [2003]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] C99 initializers for sound/pci/ac97/ac97_codec.c
Hi.

This patch converts the file to use C99 initializers.

===== sound/pci/ac97/ac97_codec.c 1.29 vs edited =====
--- 1.29/sound/pci/ac97/ac97_codec.c Fri Feb 21 20:52:09 2003
+++ edited/sound/pci/ac97/ac97_codec.c Thu Feb 27 15:30:24 2003
@@ -1097,11 +1097,11 @@

static const snd_kcontrol_new_t snd_ac97_ymf753_controls_speaker =
{
- iface: SNDRV_CTL_ELEM_IFACE_MIXER,
- name: "3D Control - Speaker",
- info: snd_ac97_ymf753_info_speaker,
- get: snd_ac97_ymf753_get_speaker,
- put: snd_ac97_ymf753_put_speaker,
+ .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
+ .name = "3D Control - Speaker",
+ .info = snd_ac97_ymf753_info_speaker,
+ .get = snd_ac97_ymf753_get_speaker,
+ .put = snd_ac97_ymf753_put_speaker,
};

/* It is possible to indicate to the Yamaha YMF753 the source to direct to the S/PDIF output. */
@@ -1182,18 +1182,18 @@

static const snd_kcontrol_new_t snd_ac97_ymf753_controls_spdif[3] = {
{
- iface: SNDRV_CTL_ELEM_IFACE_MIXER,
- name: SNDRV_CTL_NAME_IEC958("",PLAYBACK,NONE) "Source",
- info: snd_ac97_ymf753_spdif_source_info,
- get: snd_ac97_ymf753_spdif_source_get,
- put: snd_ac97_ymf753_spdif_source_put,
+ .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
+ .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,NONE) "Source",
+ .info = snd_ac97_ymf753_spdif_source_info,
+ .get = snd_ac97_ymf753_spdif_source_get,
+ .put = snd_ac97_ymf753_spdif_source_put,
},
{
- iface: SNDRV_CTL_ELEM_IFACE_MIXER,
- name: SNDRV_CTL_NAME_IEC958("",PLAYBACK,NONE) "Output Pin",
- info: snd_ac97_ymf753_spdif_output_pin_info,
- get: snd_ac97_ymf753_spdif_output_pin_get,
- put: snd_ac97_ymf753_spdif_output_pin_put,
+ .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
+ .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,NONE) "Output Pin",
+ .info = snd_ac97_ymf753_spdif_output_pin_info,
+ .get = snd_ac97_ymf753_spdif_output_pin_get,
+ .put = snd_ac97_ymf753_spdif_output_pin_put,
},
AC97_SINGLE(SNDRV_CTL_NAME_IEC958("",NONE,NONE) "Mute", AC97_YMF753_DIT_CTRL2, 2, 1, 1)
};
--
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
-- Benjamin Franklin, Historical Review of Pennsylvania, 1759
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.024 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site