aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_analog.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-11-17 08:57:47 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:19:06 -0500
commitc8b6bf9b5ef1f595a65a3414a5ca2588e8d993b2 (patch)
tree9c297d352b2f6056fc336fb4ccb3f1a9f4c9a102 /sound/pci/hda/patch_analog.c
parent66f8df6bdd388d209c38197785148c994c8a738d (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_analog.c')
-rw-r--r--sound/pci/hda/patch_analog.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c
index 4687736aa0d7..1f371fe6b92f 100644
--- a/sound/pci/hda/patch_analog.c
+++ b/sound/pci/hda/patch_analog.c
@@ -28,7 +28,7 @@
28#include "hda_local.h" 28#include "hda_local.h"
29 29
30struct ad198x_spec { 30struct ad198x_spec {
31 snd_kcontrol_new_t *mixers[5]; 31 struct snd_kcontrol_new *mixers[5];
32 int num_mixers; 32 int num_mixers;
33 33
34 const struct hda_verb *init_verbs[3]; /* initialization verbs 34 const struct hda_verb *init_verbs[3]; /* initialization verbs
@@ -65,7 +65,7 @@ struct ad198x_spec {
65/* 65/*
66 * input MUX handling (common part) 66 * input MUX handling (common part)
67 */ 67 */
68static int ad198x_mux_enum_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo) 68static int ad198x_mux_enum_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
69{ 69{
70 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 70 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
71 struct ad198x_spec *spec = codec->spec; 71 struct ad198x_spec *spec = codec->spec;
@@ -73,7 +73,7 @@ static int ad198x_mux_enum_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *u
73 return snd_hda_input_mux_info(spec->input_mux, uinfo); 73 return snd_hda_input_mux_info(spec->input_mux, uinfo);
74} 74}
75 75
76static int ad198x_mux_enum_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 76static int ad198x_mux_enum_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
77{ 77{
78 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 78 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
79 struct ad198x_spec *spec = codec->spec; 79 struct ad198x_spec *spec = codec->spec;
@@ -83,7 +83,7 @@ static int ad198x_mux_enum_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *u
83 return 0; 83 return 0;
84} 84}
85 85
86static int ad198x_mux_enum_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 86static int ad198x_mux_enum_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
87{ 87{
88 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 88 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
89 struct ad198x_spec *spec = codec->spec; 89 struct ad198x_spec *spec = codec->spec;
@@ -135,7 +135,7 @@ static int ad198x_build_controls(struct hda_codec *codec)
135 */ 135 */
136static int ad198x_playback_pcm_open(struct hda_pcm_stream *hinfo, 136static int ad198x_playback_pcm_open(struct hda_pcm_stream *hinfo,
137 struct hda_codec *codec, 137 struct hda_codec *codec,
138 snd_pcm_substream_t *substream) 138 struct snd_pcm_substream *substream)
139{ 139{
140 struct ad198x_spec *spec = codec->spec; 140 struct ad198x_spec *spec = codec->spec;
141 return snd_hda_multi_out_analog_open(codec, &spec->multiout, substream); 141 return snd_hda_multi_out_analog_open(codec, &spec->multiout, substream);
@@ -145,7 +145,7 @@ static int ad198x_playback_pcm_prepare(struct hda_pcm_stream *hinfo,
145 struct hda_codec *codec, 145 struct hda_codec *codec,
146 unsigned int stream_tag, 146 unsigned int stream_tag,
147 unsigned int format, 147 unsigned int format,
148 snd_pcm_substream_t *substream) 148 struct snd_pcm_substream *substream)
149{ 149{
150 struct ad198x_spec *spec = codec->spec; 150 struct ad198x_spec *spec = codec->spec;
151 return snd_hda_multi_out_analog_prepare(codec, &spec->multiout, stream_tag, 151 return snd_hda_multi_out_analog_prepare(codec, &spec->multiout, stream_tag,
@@ -154,7 +154,7 @@ static int ad198x_playback_pcm_prepare(struct hda_pcm_stream *hinfo,
154 154
155static int ad198x_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, 155static int ad198x_playback_pcm_cleanup(struct hda_pcm_stream *hinfo,
156 struct hda_codec *codec, 156 struct hda_codec *codec,
157 snd_pcm_substream_t *substream) 157 struct snd_pcm_substream *substream)
158{ 158{
159 struct ad198x_spec *spec = codec->spec; 159 struct ad198x_spec *spec = codec->spec;
160 return snd_hda_multi_out_analog_cleanup(codec, &spec->multiout); 160 return snd_hda_multi_out_analog_cleanup(codec, &spec->multiout);
@@ -165,7 +165,7 @@ static int ad198x_playback_pcm_cleanup(struct hda_pcm_stream *hinfo,
165 */ 165 */
166static int ad198x_dig_playback_pcm_open(struct hda_pcm_stream *hinfo, 166static int ad198x_dig_playback_pcm_open(struct hda_pcm_stream *hinfo,
167 struct hda_codec *codec, 167 struct hda_codec *codec,
168 snd_pcm_substream_t *substream) 168 struct snd_pcm_substream *substream)
169{ 169{
170 struct ad198x_spec *spec = codec->spec; 170 struct ad198x_spec *spec = codec->spec;
171 return snd_hda_multi_out_dig_open(codec, &spec->multiout); 171 return snd_hda_multi_out_dig_open(codec, &spec->multiout);
@@ -173,7 +173,7 @@ static int ad198x_dig_playback_pcm_open(struct hda_pcm_stream *hinfo,
173 173
174static int ad198x_dig_playback_pcm_close(struct hda_pcm_stream *hinfo, 174static int ad198x_dig_playback_pcm_close(struct hda_pcm_stream *hinfo,
175 struct hda_codec *codec, 175 struct hda_codec *codec,
176 snd_pcm_substream_t *substream) 176 struct snd_pcm_substream *substream)
177{ 177{
178 struct ad198x_spec *spec = codec->spec; 178 struct ad198x_spec *spec = codec->spec;
179 return snd_hda_multi_out_dig_close(codec, &spec->multiout); 179 return snd_hda_multi_out_dig_close(codec, &spec->multiout);
@@ -186,7 +186,7 @@ static int ad198x_capture_pcm_prepare(struct hda_pcm_stream *hinfo,
186 struct hda_codec *codec, 186 struct hda_codec *codec,
187 unsigned int stream_tag, 187 unsigned int stream_tag,
188 unsigned int format, 188 unsigned int format,
189 snd_pcm_substream_t *substream) 189 struct snd_pcm_substream *substream)
190{ 190{
191 struct ad198x_spec *spec = codec->spec; 191 struct ad198x_spec *spec = codec->spec;
192 snd_hda_codec_setup_stream(codec, spec->adc_nids[substream->number], 192 snd_hda_codec_setup_stream(codec, spec->adc_nids[substream->number],
@@ -196,7 +196,7 @@ static int ad198x_capture_pcm_prepare(struct hda_pcm_stream *hinfo,
196 196
197static int ad198x_capture_pcm_cleanup(struct hda_pcm_stream *hinfo, 197static int ad198x_capture_pcm_cleanup(struct hda_pcm_stream *hinfo,
198 struct hda_codec *codec, 198 struct hda_codec *codec,
199 snd_pcm_substream_t *substream) 199 struct snd_pcm_substream *substream)
200{ 200{
201 struct ad198x_spec *spec = codec->spec; 201 struct ad198x_spec *spec = codec->spec;
202 snd_hda_codec_setup_stream(codec, spec->adc_nids[substream->number], 202 snd_hda_codec_setup_stream(codec, spec->adc_nids[substream->number],
@@ -348,7 +348,7 @@ static struct hda_input_mux ad1986a_capture_source = {
348 348
349#define ad1986a_pcm_amp_vol_info snd_hda_mixer_amp_volume_info 349#define ad1986a_pcm_amp_vol_info snd_hda_mixer_amp_volume_info
350 350
351static int ad1986a_pcm_amp_vol_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 351static int ad1986a_pcm_amp_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
352{ 352{
353 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 353 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
354 struct ad198x_spec *ad = codec->spec; 354 struct ad198x_spec *ad = codec->spec;
@@ -359,7 +359,7 @@ static int ad1986a_pcm_amp_vol_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_
359 return 0; 359 return 0;
360} 360}
361 361
362static int ad1986a_pcm_amp_vol_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 362static int ad1986a_pcm_amp_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
363{ 363{
364 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 364 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
365 struct ad198x_spec *ad = codec->spec; 365 struct ad198x_spec *ad = codec->spec;
@@ -377,7 +377,7 @@ static int ad1986a_pcm_amp_vol_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_
377 377
378#define ad1986a_pcm_amp_sw_info snd_hda_mixer_amp_switch_info 378#define ad1986a_pcm_amp_sw_info snd_hda_mixer_amp_switch_info
379 379
380static int ad1986a_pcm_amp_sw_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 380static int ad1986a_pcm_amp_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
381{ 381{
382 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 382 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
383 struct ad198x_spec *ad = codec->spec; 383 struct ad198x_spec *ad = codec->spec;
@@ -388,7 +388,7 @@ static int ad1986a_pcm_amp_sw_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t
388 return 0; 388 return 0;
389} 389}
390 390
391static int ad1986a_pcm_amp_sw_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 391static int ad1986a_pcm_amp_sw_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
392{ 392{
393 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 393 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
394 struct ad198x_spec *ad = codec->spec; 394 struct ad198x_spec *ad = codec->spec;
@@ -407,7 +407,7 @@ static int ad1986a_pcm_amp_sw_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t
407/* 407/*
408 * mixers 408 * mixers
409 */ 409 */
410static snd_kcontrol_new_t ad1986a_mixers[] = { 410static struct snd_kcontrol_new ad1986a_mixers[] = {
411 { 411 {
412 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 412 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
413 .name = "PCM Playback Volume", 413 .name = "PCM Playback Volume",
@@ -570,7 +570,7 @@ static struct hda_input_mux ad1983_capture_source = {
570/* 570/*
571 * SPDIF playback route 571 * SPDIF playback route
572 */ 572 */
573static int ad1983_spdif_route_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo) 573static int ad1983_spdif_route_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
574{ 574{
575 static char *texts[] = { "PCM", "ADC" }; 575 static char *texts[] = { "PCM", "ADC" };
576 576
@@ -583,7 +583,7 @@ static int ad1983_spdif_route_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t
583 return 0; 583 return 0;
584} 584}
585 585
586static int ad1983_spdif_route_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 586static int ad1983_spdif_route_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
587{ 587{
588 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 588 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
589 struct ad198x_spec *spec = codec->spec; 589 struct ad198x_spec *spec = codec->spec;
@@ -592,7 +592,7 @@ static int ad1983_spdif_route_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t
592 return 0; 592 return 0;
593} 593}
594 594
595static int ad1983_spdif_route_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 595static int ad1983_spdif_route_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
596{ 596{
597 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); 597 struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
598 struct ad198x_spec *spec = codec->spec; 598 struct ad198x_spec *spec = codec->spec;
@@ -606,7 +606,7 @@ static int ad1983_spdif_route_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t
606 return 0; 606 return 0;
607} 607}
608 608
609static snd_kcontrol_new_t ad1983_mixers[] = { 609static struct snd_kcontrol_new ad1983_mixers[] = {
610 HDA_CODEC_VOLUME("Front Playback Volume", 0x05, 0x0, HDA_OUTPUT), 610 HDA_CODEC_VOLUME("Front Playback Volume", 0x05, 0x0, HDA_OUTPUT),
611 HDA_CODEC_MUTE("Front Playback Switch", 0x05, 0x0, HDA_OUTPUT), 611 HDA_CODEC_MUTE("Front Playback Switch", 0x05, 0x0, HDA_OUTPUT),
612 HDA_CODEC_VOLUME("Headphone Playback Volume", 0x06, 0x0, HDA_OUTPUT), 612 HDA_CODEC_VOLUME("Headphone Playback Volume", 0x06, 0x0, HDA_OUTPUT),
@@ -736,7 +736,7 @@ static struct hda_input_mux ad1981_capture_source = {
736 }, 736 },
737}; 737};
738 738
739static snd_kcontrol_new_t ad1981_mixers[] = { 739static struct snd_kcontrol_new ad1981_mixers[] = {
740 HDA_CODEC_VOLUME("Front Playback Volume", 0x05, 0x0, HDA_OUTPUT), 740 HDA_CODEC_VOLUME("Front Playback Volume", 0x05, 0x0, HDA_OUTPUT),
741 HDA_CODEC_MUTE("Front Playback Switch", 0x05, 0x0, HDA_OUTPUT), 741 HDA_CODEC_MUTE("Front Playback Switch", 0x05, 0x0, HDA_OUTPUT),
742 HDA_CODEC_VOLUME("Headphone Playback Volume", 0x06, 0x0, HDA_OUTPUT), 742 HDA_CODEC_VOLUME("Headphone Playback Volume", 0x06, 0x0, HDA_OUTPUT),