diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 08:57:47 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:19:06 -0500 |
commit | c8b6bf9b5ef1f595a65a3414a5ca2588e8d993b2 (patch) | |
tree | 9c297d352b2f6056fc336fb4ccb3f1a9f4c9a102 /sound/pci/hda/patch_sigmatel.c | |
parent | 66f8df6bdd388d209c38197785148c994c8a738d (diff) |
[ALSA] Remove xxx_t typedefs: HD-Audio codec
Modules: HDA Codec driver,HDA generic driver
Remove xxx_t typedefs from the HD-Audio codec support codes.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 33a8adaea768..d8d68f5b6131 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
@@ -41,7 +41,7 @@ | |||
41 | #define STAC_UNSOL_ENABLE (AC_USRSP_EN | STAC_HP_EVENT) | 41 | #define STAC_UNSOL_ENABLE (AC_USRSP_EN | STAC_HP_EVENT) |
42 | 42 | ||
43 | struct sigmatel_spec { | 43 | struct sigmatel_spec { |
44 | snd_kcontrol_new_t *mixers[4]; | 44 | struct snd_kcontrol_new *mixers[4]; |
45 | unsigned int num_mixers; | 45 | unsigned int num_mixers; |
46 | 46 | ||
47 | unsigned int surr_switch: 1; | 47 | unsigned int surr_switch: 1; |
@@ -66,7 +66,7 @@ struct sigmatel_spec { | |||
66 | 66 | ||
67 | /* codec specific stuff */ | 67 | /* codec specific stuff */ |
68 | struct hda_verb *init; | 68 | struct hda_verb *init; |
69 | snd_kcontrol_new_t *mixer; | 69 | struct snd_kcontrol_new *mixer; |
70 | 70 | ||
71 | /* capture source */ | 71 | /* capture source */ |
72 | struct hda_input_mux *input_mux; | 72 | struct hda_input_mux *input_mux; |
@@ -81,7 +81,7 @@ struct sigmatel_spec { | |||
81 | /* dynamic controls and input_mux */ | 81 | /* dynamic controls and input_mux */ |
82 | struct auto_pin_cfg autocfg; | 82 | struct auto_pin_cfg autocfg; |
83 | unsigned int num_kctl_alloc, num_kctl_used; | 83 | unsigned int num_kctl_alloc, num_kctl_used; |
84 | snd_kcontrol_new_t *kctl_alloc; | 84 | struct snd_kcontrol_new *kctl_alloc; |
85 | struct hda_input_mux private_imux; | 85 | struct hda_input_mux private_imux; |
86 | }; | 86 | }; |
87 | 87 | ||
@@ -116,14 +116,14 @@ static hda_nid_t stac922x_pin_nids[10] = { | |||
116 | }; | 116 | }; |
117 | #endif | 117 | #endif |
118 | 118 | ||
119 | static int stac92xx_mux_enum_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo) | 119 | static int stac92xx_mux_enum_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) |
120 | { | 120 | { |
121 | struct hda_codec *codec = snd_kcontrol_chip(kcontrol); | 121 | struct hda_codec *codec = snd_kcontrol_chip(kcontrol); |
122 | struct sigmatel_spec *spec = codec->spec; | 122 | struct sigmatel_spec *spec = codec->spec; |
123 | return snd_hda_input_mux_info(spec->input_mux, uinfo); | 123 | return snd_hda_input_mux_info(spec->input_mux, uinfo); |
124 | } | 124 | } |
125 | 125 | ||
126 | static int stac92xx_mux_enum_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) | 126 | static int stac92xx_mux_enum_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
127 | { | 127 | { |
128 | struct hda_codec *codec = snd_kcontrol_chip(kcontrol); | 128 | struct hda_codec *codec = snd_kcontrol_chip(kcontrol); |
129 | struct sigmatel_spec *spec = codec->spec; | 129 | struct sigmatel_spec *spec = codec->spec; |
@@ -133,7 +133,7 @@ static int stac92xx_mux_enum_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t | |||
133 | return 0; | 133 | return 0; |
134 | } | 134 | } |
135 | 135 | ||
136 | static int stac92xx_mux_enum_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) | 136 | static int stac92xx_mux_enum_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
137 | { | 137 | { |
138 | struct hda_codec *codec = snd_kcontrol_chip(kcontrol); | 138 | struct hda_codec *codec = snd_kcontrol_chip(kcontrol); |
139 | struct sigmatel_spec *spec = codec->spec; | 139 | struct sigmatel_spec *spec = codec->spec; |
@@ -157,7 +157,7 @@ static struct hda_verb stac922x_core_init[] = { | |||
157 | 157 | ||
158 | static int stac922x_channel_modes[3] = {2, 6, 8}; | 158 | static int stac922x_channel_modes[3] = {2, 6, 8}; |
159 | 159 | ||
160 | static int stac922x_ch_mode_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo) | 160 | static int stac922x_ch_mode_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) |
161 | { | 161 | { |
162 | struct hda_codec *codec = snd_kcontrol_chip(kcontrol); | 162 | struct hda_codec *codec = snd_kcontrol_chip(kcontrol); |
163 | struct sigmatel_spec *spec = codec->spec; | 163 | struct sigmatel_spec *spec = codec->spec; |
@@ -172,7 +172,7 @@ static int stac922x_ch_mode_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * | |||
172 | return 0; | 172 | return 0; |
173 | } | 173 | } |
174 | 174 | ||
175 | static int stac922x_ch_mode_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) | 175 | static int stac922x_ch_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
176 | { | 176 | { |
177 | struct hda_codec *codec = snd_kcontrol_chip(kcontrol); | 177 | struct hda_codec *codec = snd_kcontrol_chip(kcontrol); |
178 | struct sigmatel_spec *spec = codec->spec; | 178 | struct sigmatel_spec *spec = codec->spec; |
@@ -181,7 +181,7 @@ static int stac922x_ch_mode_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t * | |||
181 | return 0; | 181 | return 0; |
182 | } | 182 | } |
183 | 183 | ||
184 | static int stac922x_ch_mode_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) | 184 | static int stac922x_ch_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) |
185 | { | 185 | { |
186 | struct hda_codec *codec = snd_kcontrol_chip(kcontrol); | 186 | struct hda_codec *codec = snd_kcontrol_chip(kcontrol); |
187 | struct sigmatel_spec *spec = codec->spec; | 187 | struct sigmatel_spec *spec = codec->spec; |
@@ -198,7 +198,7 @@ static int stac922x_ch_mode_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t * | |||
198 | return 1; | 198 | return 1; |
199 | } | 199 | } |
200 | 200 | ||
201 | static snd_kcontrol_new_t stac9200_mixer[] = { | 201 | static struct snd_kcontrol_new stac9200_mixer[] = { |
202 | HDA_CODEC_VOLUME("Master Playback Volume", 0xb, 0, HDA_OUTPUT), | 202 | HDA_CODEC_VOLUME("Master Playback Volume", 0xb, 0, HDA_OUTPUT), |
203 | HDA_CODEC_MUTE("Master Playback Switch", 0xb, 0, HDA_OUTPUT), | 203 | HDA_CODEC_MUTE("Master Playback Switch", 0xb, 0, HDA_OUTPUT), |
204 | { | 204 | { |
@@ -216,7 +216,7 @@ static snd_kcontrol_new_t stac9200_mixer[] = { | |||
216 | }; | 216 | }; |
217 | 217 | ||
218 | /* This needs to be generated dynamically based on sequence */ | 218 | /* This needs to be generated dynamically based on sequence */ |
219 | static snd_kcontrol_new_t stac922x_mixer[] = { | 219 | static struct snd_kcontrol_new stac922x_mixer[] = { |
220 | { | 220 | { |
221 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 221 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
222 | .name = "Input Source", | 222 | .name = "Input Source", |
@@ -231,7 +231,7 @@ static snd_kcontrol_new_t stac922x_mixer[] = { | |||
231 | { } /* end */ | 231 | { } /* end */ |
232 | }; | 232 | }; |
233 | 233 | ||
234 | static snd_kcontrol_new_t stac922x_ch_mode_mixer[] = { | 234 | static struct snd_kcontrol_new stac922x_ch_mode_mixer[] = { |
235 | { | 235 | { |
236 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 236 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
237 | .name = "Channel Mode", | 237 | .name = "Channel Mode", |
@@ -320,7 +320,7 @@ static void stac92xx_set_config_regs(struct hda_codec *codec) | |||
320 | */ | 320 | */ |
321 | static int stac92xx_playback_pcm_open(struct hda_pcm_stream *hinfo, | 321 | static int stac92xx_playback_pcm_open(struct hda_pcm_stream *hinfo, |
322 | struct hda_codec *codec, | 322 | struct hda_codec *codec, |
323 | snd_pcm_substream_t *substream) | 323 | struct snd_pcm_substream *substream) |
324 | { | 324 | { |
325 | struct sigmatel_spec *spec = codec->spec; | 325 | struct sigmatel_spec *spec = codec->spec; |
326 | return snd_hda_multi_out_analog_open(codec, &spec->multiout, substream); | 326 | return snd_hda_multi_out_analog_open(codec, &spec->multiout, substream); |
@@ -333,7 +333,7 @@ static int stac92xx_playback_pcm_open(struct hda_pcm_stream *hinfo, | |||
333 | static int stac92xx_multi_out_analog_prepare(struct hda_codec *codec, struct hda_multi_out *mout, | 333 | static int stac92xx_multi_out_analog_prepare(struct hda_codec *codec, struct hda_multi_out *mout, |
334 | unsigned int stream_tag, | 334 | unsigned int stream_tag, |
335 | unsigned int format, | 335 | unsigned int format, |
336 | snd_pcm_substream_t *substream) | 336 | struct snd_pcm_substream *substream) |
337 | { | 337 | { |
338 | hda_nid_t *nids = mout->dac_nids; | 338 | hda_nid_t *nids = mout->dac_nids; |
339 | int chs = substream->runtime->channels; | 339 | int chs = substream->runtime->channels; |
@@ -380,7 +380,7 @@ static int stac92xx_playback_pcm_prepare(struct hda_pcm_stream *hinfo, | |||
380 | struct hda_codec *codec, | 380 | struct hda_codec *codec, |
381 | unsigned int stream_tag, | 381 | unsigned int stream_tag, |
382 | unsigned int format, | 382 | unsigned int format, |
383 | snd_pcm_substream_t *substream) | 383 | struct snd_pcm_substream *substream) |
384 | { | 384 | { |
385 | struct sigmatel_spec *spec = codec->spec; | 385 | struct sigmatel_spec *spec = codec->spec; |
386 | return stac92xx_multi_out_analog_prepare(codec, &spec->multiout, stream_tag, | 386 | return stac92xx_multi_out_analog_prepare(codec, &spec->multiout, stream_tag, |
@@ -389,7 +389,7 @@ static int stac92xx_playback_pcm_prepare(struct hda_pcm_stream *hinfo, | |||
389 | 389 | ||
390 | static int stac92xx_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, | 390 | static int stac92xx_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, |
391 | struct hda_codec *codec, | 391 | struct hda_codec *codec, |
392 | snd_pcm_substream_t *substream) | 392 | struct snd_pcm_substream *substream) |
393 | { | 393 | { |
394 | struct sigmatel_spec *spec = codec->spec; | 394 | struct sigmatel_spec *spec = codec->spec; |
395 | return snd_hda_multi_out_analog_cleanup(codec, &spec->multiout); | 395 | return snd_hda_multi_out_analog_cleanup(codec, &spec->multiout); |
@@ -400,7 +400,7 @@ static int stac92xx_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, | |||
400 | */ | 400 | */ |
401 | static int stac92xx_dig_playback_pcm_open(struct hda_pcm_stream *hinfo, | 401 | static int stac92xx_dig_playback_pcm_open(struct hda_pcm_stream *hinfo, |
402 | struct hda_codec *codec, | 402 | struct hda_codec *codec, |
403 | snd_pcm_substream_t *substream) | 403 | struct snd_pcm_substream *substream) |
404 | { | 404 | { |
405 | struct sigmatel_spec *spec = codec->spec; | 405 | struct sigmatel_spec *spec = codec->spec; |
406 | return snd_hda_multi_out_dig_open(codec, &spec->multiout); | 406 | return snd_hda_multi_out_dig_open(codec, &spec->multiout); |
@@ -408,7 +408,7 @@ static int stac92xx_dig_playback_pcm_open(struct hda_pcm_stream *hinfo, | |||
408 | 408 | ||
409 | static int stac92xx_dig_playback_pcm_close(struct hda_pcm_stream *hinfo, | 409 | static int stac92xx_dig_playback_pcm_close(struct hda_pcm_stream *hinfo, |
410 | struct hda_codec *codec, | 410 | struct hda_codec *codec, |
411 | snd_pcm_substream_t *substream) | 411 | struct snd_pcm_substream *substream) |
412 | { | 412 | { |
413 | struct sigmatel_spec *spec = codec->spec; | 413 | struct sigmatel_spec *spec = codec->spec; |
414 | return snd_hda_multi_out_dig_close(codec, &spec->multiout); | 414 | return snd_hda_multi_out_dig_close(codec, &spec->multiout); |
@@ -422,7 +422,7 @@ static int stac92xx_capture_pcm_prepare(struct hda_pcm_stream *hinfo, | |||
422 | struct hda_codec *codec, | 422 | struct hda_codec *codec, |
423 | unsigned int stream_tag, | 423 | unsigned int stream_tag, |
424 | unsigned int format, | 424 | unsigned int format, |
425 | snd_pcm_substream_t *substream) | 425 | struct snd_pcm_substream *substream) |
426 | { | 426 | { |
427 | struct sigmatel_spec *spec = codec->spec; | 427 | struct sigmatel_spec *spec = codec->spec; |
428 | 428 | ||
@@ -433,7 +433,7 @@ static int stac92xx_capture_pcm_prepare(struct hda_pcm_stream *hinfo, | |||
433 | 433 | ||
434 | static int stac92xx_capture_pcm_cleanup(struct hda_pcm_stream *hinfo, | 434 | static int stac92xx_capture_pcm_cleanup(struct hda_pcm_stream *hinfo, |
435 | struct hda_codec *codec, | 435 | struct hda_codec *codec, |
436 | snd_pcm_substream_t *substream) | 436 | struct snd_pcm_substream *substream) |
437 | { | 437 | { |
438 | struct sigmatel_spec *spec = codec->spec; | 438 | struct sigmatel_spec *spec = codec->spec; |
439 | 439 | ||
@@ -516,7 +516,7 @@ enum { | |||
516 | STAC_CTL_WIDGET_MUTE, | 516 | STAC_CTL_WIDGET_MUTE, |
517 | }; | 517 | }; |
518 | 518 | ||
519 | static snd_kcontrol_new_t stac92xx_control_templates[] = { | 519 | static struct snd_kcontrol_new stac92xx_control_templates[] = { |
520 | HDA_CODEC_VOLUME(NULL, 0, 0, 0), | 520 | HDA_CODEC_VOLUME(NULL, 0, 0, 0), |
521 | HDA_CODEC_MUTE(NULL, 0, 0, 0), | 521 | HDA_CODEC_MUTE(NULL, 0, 0, 0), |
522 | }; | 522 | }; |
@@ -524,7 +524,7 @@ static snd_kcontrol_new_t stac92xx_control_templates[] = { | |||
524 | /* add dynamic controls */ | 524 | /* add dynamic controls */ |
525 | static int stac92xx_add_control(struct sigmatel_spec *spec, int type, const char *name, unsigned long val) | 525 | static int stac92xx_add_control(struct sigmatel_spec *spec, int type, const char *name, unsigned long val) |
526 | { | 526 | { |
527 | snd_kcontrol_new_t *knew; | 527 | struct snd_kcontrol_new *knew; |
528 | 528 | ||
529 | if (spec->num_kctl_used >= spec->num_kctl_alloc) { | 529 | if (spec->num_kctl_used >= spec->num_kctl_alloc) { |
530 | int num = spec->num_kctl_alloc + NUM_CONTROL_ALLOC; | 530 | int num = spec->num_kctl_alloc + NUM_CONTROL_ALLOC; |