aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ice1712/phase.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-11-17 09:00:18 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:19:13 -0500
commitab0c7d72c32d703d1a2833ce2a1920cd3b46b131 (patch)
tree6d5ed4991fd9b463fa929899af0ddf0cde158def /sound/pci/ice1712/phase.c
parent6ca308d4edd51c4f34ffff94ae0bbf193087d89f (diff)
[ALSA] Remove xxx_t typedefs: PCI ICE1724
Modules: ICE1724 driver,ICE1712 driver Remove xxx_t typedefs from the PCI ICE1724 driver. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ice1712/phase.c')
-rw-r--r--sound/pci/ice1712/phase.c110
1 files changed, 55 insertions, 55 deletions
diff --git a/sound/pci/ice1712/phase.c b/sound/pci/ice1712/phase.c
index dcf1e8ca3f66..ec3757834b93 100644
--- a/sound/pci/ice1712/phase.c
+++ b/sound/pci/ice1712/phase.c
@@ -86,7 +86,7 @@ static unsigned char wm_vol[256] = {
86#define WM_VOL_MAX (sizeof(wm_vol) - 1) 86#define WM_VOL_MAX (sizeof(wm_vol) - 1)
87#define WM_VOL_MUTE 0x8000 87#define WM_VOL_MUTE 0x8000
88 88
89static akm4xxx_t akm_phase22 __devinitdata = { 89static struct snd_akm4xxx akm_phase22 __devinitdata = {
90 .type = SND_AK4524, 90 .type = SND_AK4524,
91 .num_dacs = 2, 91 .num_dacs = 2,
92 .num_adcs = 2, 92 .num_adcs = 2,
@@ -104,9 +104,9 @@ static struct snd_ak4xxx_private akm_phase22_priv __devinitdata = {
104 .mask_flags = 0, 104 .mask_flags = 0,
105}; 105};
106 106
107static int __devinit phase22_init(ice1712_t *ice) 107static int __devinit phase22_init(struct snd_ice1712 *ice)
108{ 108{
109 akm4xxx_t *ak; 109 struct snd_akm4xxx *ak;
110 int err; 110 int err;
111 111
112 // Configure DAC/ADC description for generic part of ice1724 112 // Configure DAC/ADC description for generic part of ice1724
@@ -122,7 +122,7 @@ static int __devinit phase22_init(ice1712_t *ice)
122 } 122 }
123 123
124 // Initialize analog chips 124 // Initialize analog chips
125 ak = ice->akm = kzalloc(sizeof(akm4xxx_t), GFP_KERNEL); 125 ak = ice->akm = kzalloc(sizeof(struct snd_akm4xxx), GFP_KERNEL);
126 if (! ak) 126 if (! ak)
127 return -ENOMEM; 127 return -ENOMEM;
128 ice->akm_codecs = 1; 128 ice->akm_codecs = 1;
@@ -136,7 +136,7 @@ static int __devinit phase22_init(ice1712_t *ice)
136 return 0; 136 return 0;
137} 137}
138 138
139static int __devinit phase22_add_controls(ice1712_t *ice) 139static int __devinit phase22_add_controls(struct snd_ice1712 *ice)
140{ 140{
141 int err = 0; 141 int err = 0;
142 142
@@ -184,7 +184,7 @@ static unsigned char phase28_eeprom[] __devinitdata = {
184/* 184/*
185 * write data in the SPI mode 185 * write data in the SPI mode
186 */ 186 */
187static void phase28_spi_write(ice1712_t *ice, unsigned int cs, unsigned int data, int bits) 187static void phase28_spi_write(struct snd_ice1712 *ice, unsigned int cs, unsigned int data, int bits)
188{ 188{
189 unsigned int tmp; 189 unsigned int tmp;
190 int i; 190 int i;
@@ -225,7 +225,7 @@ static void phase28_spi_write(ice1712_t *ice, unsigned int cs, unsigned int data
225/* 225/*
226 * get the current register value of WM codec 226 * get the current register value of WM codec
227 */ 227 */
228static unsigned short wm_get(ice1712_t *ice, int reg) 228static unsigned short wm_get(struct snd_ice1712 *ice, int reg)
229{ 229{
230 reg <<= 1; 230 reg <<= 1;
231 return ((unsigned short)ice->akm[0].images[reg] << 8) | 231 return ((unsigned short)ice->akm[0].images[reg] << 8) |
@@ -235,7 +235,7 @@ static unsigned short wm_get(ice1712_t *ice, int reg)
235/* 235/*
236 * set the register value of WM codec 236 * set the register value of WM codec
237 */ 237 */
238static void wm_put_nocache(ice1712_t *ice, int reg, unsigned short val) 238static void wm_put_nocache(struct snd_ice1712 *ice, int reg, unsigned short val)
239{ 239{
240 phase28_spi_write(ice, PHASE28_WM_CS, (reg << 9) | (val & 0x1ff), 16); 240 phase28_spi_write(ice, PHASE28_WM_CS, (reg << 9) | (val & 0x1ff), 16);
241} 241}
@@ -243,7 +243,7 @@ static void wm_put_nocache(ice1712_t *ice, int reg, unsigned short val)
243/* 243/*
244 * set the register value of WM codec and remember it 244 * set the register value of WM codec and remember it
245 */ 245 */
246static void wm_put(ice1712_t *ice, int reg, unsigned short val) 246static void wm_put(struct snd_ice1712 *ice, int reg, unsigned short val)
247{ 247{
248 wm_put_nocache(ice, reg, val); 248 wm_put_nocache(ice, reg, val);
249 reg <<= 1; 249 reg <<= 1;
@@ -251,7 +251,7 @@ static void wm_put(ice1712_t *ice, int reg, unsigned short val)
251 ice->akm[0].images[reg + 1] = val; 251 ice->akm[0].images[reg + 1] = val;
252} 252}
253 253
254static void wm_set_vol(ice1712_t *ice, unsigned int index, unsigned short vol, unsigned short master) 254static void wm_set_vol(struct snd_ice1712 *ice, unsigned int index, unsigned short vol, unsigned short master)
255{ 255{
256 unsigned char nvol; 256 unsigned char nvol;
257 257
@@ -269,9 +269,9 @@ static void wm_set_vol(ice1712_t *ice, unsigned int index, unsigned short vol, u
269 */ 269 */
270#define wm_pcm_mute_info phase28_mono_bool_info 270#define wm_pcm_mute_info phase28_mono_bool_info
271 271
272static int wm_pcm_mute_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 272static int wm_pcm_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
273{ 273{
274 ice1712_t *ice = snd_kcontrol_chip(kcontrol); 274 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
275 275
276 down(&ice->gpio_mutex); 276 down(&ice->gpio_mutex);
277 ucontrol->value.integer.value[0] = (wm_get(ice, WM_MUTE) & 0x10) ? 0 : 1; 277 ucontrol->value.integer.value[0] = (wm_get(ice, WM_MUTE) & 0x10) ? 0 : 1;
@@ -279,9 +279,9 @@ static int wm_pcm_mute_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucont
279 return 0; 279 return 0;
280} 280}
281 281
282static int wm_pcm_mute_put(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) 282static int wm_pcm_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
283{ 283{
284 ice1712_t *ice = snd_kcontrol_chip(kcontrol); 284 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
285 unsigned short nval, oval; 285 unsigned short nval, oval;
286 int change; 286 int change;
287 287
@@ -298,7 +298,7 @@ static int wm_pcm_mute_put(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * uco
298/* 298/*
299 * Master volume attenuation mixer control 299 * Master volume attenuation mixer control
300 */ 300 */
301static int wm_master_vol_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo) 301static int wm_master_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
302{ 302{
303 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; 303 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
304 uinfo->count = 2; 304 uinfo->count = 2;
@@ -307,18 +307,18 @@ static int wm_master_vol_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uin
307 return 0; 307 return 0;
308} 308}
309 309
310static int wm_master_vol_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 310static int wm_master_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
311{ 311{
312 ice1712_t *ice = snd_kcontrol_chip(kcontrol); 312 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
313 int i; 313 int i;
314 for (i=0; i<2; i++) 314 for (i=0; i<2; i++)
315 ucontrol->value.integer.value[i] = ice->spec.phase28.master[i] & ~WM_VOL_MUTE; 315 ucontrol->value.integer.value[i] = ice->spec.phase28.master[i] & ~WM_VOL_MUTE;
316 return 0; 316 return 0;
317} 317}
318 318
319static int wm_master_vol_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 319static int wm_master_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
320{ 320{
321 ice1712_t *ice = snd_kcontrol_chip(kcontrol); 321 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
322 int ch, change = 0; 322 int ch, change = 0;
323 323
324 snd_ice1712_save_gpio_status(ice); 324 snd_ice1712_save_gpio_status(ice);
@@ -338,7 +338,7 @@ static int wm_master_vol_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *uco
338 return change; 338 return change;
339} 339}
340 340
341static int __devinit phase28_init(ice1712_t *ice) 341static int __devinit phase28_init(struct snd_ice1712 *ice)
342{ 342{
343 static unsigned short wm_inits_phase28[] = { 343 static unsigned short wm_inits_phase28[] = {
344 /* These come first to reduce init pop noise */ 344 /* These come first to reduce init pop noise */
@@ -378,7 +378,7 @@ static int __devinit phase28_init(ice1712_t *ice)
378 }; 378 };
379 379
380 unsigned int tmp; 380 unsigned int tmp;
381 akm4xxx_t *ak; 381 struct snd_akm4xxx *ak;
382 unsigned short *p; 382 unsigned short *p;
383 int i; 383 int i;
384 384
@@ -386,7 +386,7 @@ static int __devinit phase28_init(ice1712_t *ice)
386 ice->num_total_adcs = 2; 386 ice->num_total_adcs = 2;
387 387
388 // Initialize analog chips 388 // Initialize analog chips
389 ak = ice->akm = kzalloc(sizeof(akm4xxx_t), GFP_KERNEL); 389 ak = ice->akm = kzalloc(sizeof(struct snd_akm4xxx), GFP_KERNEL);
390 if (!ak) 390 if (!ak)
391 return -ENOMEM; 391 return -ENOMEM;
392 ice->akm_codecs = 1; 392 ice->akm_codecs = 1;
@@ -427,7 +427,7 @@ static int __devinit phase28_init(ice1712_t *ice)
427/* 427/*
428 * DAC volume attenuation mixer control 428 * DAC volume attenuation mixer control
429 */ 429 */
430static int wm_vol_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo) 430static int wm_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
431{ 431{
432 int voices = kcontrol->private_value >> 8; 432 int voices = kcontrol->private_value >> 8;
433 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; 433 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
@@ -437,9 +437,9 @@ static int wm_vol_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo)
437 return 0; 437 return 0;
438} 438}
439 439
440static int wm_vol_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 440static int wm_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
441{ 441{
442 ice1712_t *ice = snd_kcontrol_chip(kcontrol); 442 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
443 int i, ofs, voices; 443 int i, ofs, voices;
444 444
445 voices = kcontrol->private_value >> 8; 445 voices = kcontrol->private_value >> 8;
@@ -449,9 +449,9 @@ static int wm_vol_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol)
449 return 0; 449 return 0;
450} 450}
451 451
452static int wm_vol_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 452static int wm_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
453{ 453{
454 ice1712_t *ice = snd_kcontrol_chip(kcontrol); 454 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
455 int i, idx, ofs, voices; 455 int i, idx, ofs, voices;
456 int change = 0; 456 int change = 0;
457 457
@@ -475,7 +475,7 @@ static int wm_vol_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol)
475/* 475/*
476 * WM8770 mute control 476 * WM8770 mute control
477 */ 477 */
478static int wm_mute_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo) { 478static int wm_mute_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) {
479 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; 479 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
480 uinfo->count = kcontrol->private_value >> 8; 480 uinfo->count = kcontrol->private_value >> 8;
481 uinfo->value.integer.min = 0; 481 uinfo->value.integer.min = 0;
@@ -483,9 +483,9 @@ static int wm_mute_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo) {
483 return 0; 483 return 0;
484} 484}
485 485
486static int wm_mute_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 486static int wm_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
487{ 487{
488 ice1712_t *ice = snd_kcontrol_chip(kcontrol); 488 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
489 int voices, ofs, i; 489 int voices, ofs, i;
490 490
491 voices = kcontrol->private_value >> 8; 491 voices = kcontrol->private_value >> 8;
@@ -496,9 +496,9 @@ static int wm_mute_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol)
496 return 0; 496 return 0;
497} 497}
498 498
499static int wm_mute_put(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) 499static int wm_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
500{ 500{
501 ice1712_t *ice = snd_kcontrol_chip(kcontrol); 501 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
502 int change = 0, voices, ofs, i; 502 int change = 0, voices, ofs, i;
503 503
504 voices = kcontrol->private_value >> 8; 504 voices = kcontrol->private_value >> 8;
@@ -524,7 +524,7 @@ static int wm_mute_put(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontro
524/* 524/*
525 * WM8770 master mute control 525 * WM8770 master mute control
526 */ 526 */
527static int wm_master_mute_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo) { 527static int wm_master_mute_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) {
528 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; 528 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
529 uinfo->count = 2; 529 uinfo->count = 2;
530 uinfo->value.integer.min = 0; 530 uinfo->value.integer.min = 0;
@@ -532,18 +532,18 @@ static int wm_master_mute_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *ui
532 return 0; 532 return 0;
533} 533}
534 534
535static int wm_master_mute_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 535static int wm_master_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
536{ 536{
537 ice1712_t *ice = snd_kcontrol_chip(kcontrol); 537 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
538 538
539 ucontrol->value.integer.value[0] = (ice->spec.phase28.master[0] & WM_VOL_MUTE) ? 0 : 1; 539 ucontrol->value.integer.value[0] = (ice->spec.phase28.master[0] & WM_VOL_MUTE) ? 0 : 1;
540 ucontrol->value.integer.value[1] = (ice->spec.phase28.master[1] & WM_VOL_MUTE) ? 0 : 1; 540 ucontrol->value.integer.value[1] = (ice->spec.phase28.master[1] & WM_VOL_MUTE) ? 0 : 1;
541 return 0; 541 return 0;
542} 542}
543 543
544static int wm_master_mute_put(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t * ucontrol) 544static int wm_master_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
545{ 545{
546 ice1712_t *ice = snd_kcontrol_chip(kcontrol); 546 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
547 int change = 0, i; 547 int change = 0, i;
548 548
549 snd_ice1712_save_gpio_status(ice); 549 snd_ice1712_save_gpio_status(ice);
@@ -570,7 +570,7 @@ static int wm_master_mute_put(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t *
570#define PCM_0dB 0xff 570#define PCM_0dB 0xff
571#define PCM_RES 128 /* -64dB */ 571#define PCM_RES 128 /* -64dB */
572#define PCM_MIN (PCM_0dB - PCM_RES) 572#define PCM_MIN (PCM_0dB - PCM_RES)
573static int wm_pcm_vol_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo) 573static int wm_pcm_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
574{ 574{
575 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; 575 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
576 uinfo->count = 1; 576 uinfo->count = 1;
@@ -579,9 +579,9 @@ static int wm_pcm_vol_info(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t *uinfo)
579 return 0; 579 return 0;
580} 580}
581 581
582static int wm_pcm_vol_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 582static int wm_pcm_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
583{ 583{
584 ice1712_t *ice = snd_kcontrol_chip(kcontrol); 584 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
585 unsigned short val; 585 unsigned short val;
586 586
587 down(&ice->gpio_mutex); 587 down(&ice->gpio_mutex);
@@ -592,9 +592,9 @@ static int wm_pcm_vol_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontr
592 return 0; 592 return 0;
593} 593}
594 594
595static int wm_pcm_vol_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 595static int wm_pcm_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
596{ 596{
597 ice1712_t *ice = snd_kcontrol_chip(kcontrol); 597 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
598 unsigned short ovol, nvol; 598 unsigned short ovol, nvol;
599 int change = 0; 599 int change = 0;
600 600
@@ -613,7 +613,7 @@ static int wm_pcm_vol_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontr
613 613
614/* 614/*
615 */ 615 */
616static int phase28_mono_bool_info(snd_kcontrol_t *k, snd_ctl_elem_info_t *uinfo) 616static int phase28_mono_bool_info(struct snd_kcontrol *k, struct snd_ctl_elem_info *uinfo)
617{ 617{
618 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; 618 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
619 uinfo->count = 1; 619 uinfo->count = 1;
@@ -627,16 +627,16 @@ static int phase28_mono_bool_info(snd_kcontrol_t *k, snd_ctl_elem_info_t *uinfo)
627 */ 627 */
628#define phase28_deemp_info phase28_mono_bool_info 628#define phase28_deemp_info phase28_mono_bool_info
629 629
630static int phase28_deemp_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 630static int phase28_deemp_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
631{ 631{
632 ice1712_t *ice = snd_kcontrol_chip(kcontrol); 632 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
633 ucontrol->value.integer.value[0] = (wm_get(ice, WM_DAC_CTRL2) & 0xf) == 0xf; 633 ucontrol->value.integer.value[0] = (wm_get(ice, WM_DAC_CTRL2) & 0xf) == 0xf;
634 return 0; 634 return 0;
635} 635}
636 636
637static int phase28_deemp_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 637static int phase28_deemp_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
638{ 638{
639 ice1712_t *ice = snd_kcontrol_chip(kcontrol); 639 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
640 int temp, temp2; 640 int temp, temp2;
641 temp2 = temp = wm_get(ice, WM_DAC_CTRL2); 641 temp2 = temp = wm_get(ice, WM_DAC_CTRL2);
642 if (ucontrol->value.integer.value[0]) 642 if (ucontrol->value.integer.value[0])
@@ -653,7 +653,7 @@ static int phase28_deemp_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *uco
653/* 653/*
654 * ADC Oversampling 654 * ADC Oversampling
655 */ 655 */
656static int phase28_oversampling_info(snd_kcontrol_t *k, snd_ctl_elem_info_t *uinfo) 656static int phase28_oversampling_info(struct snd_kcontrol *k, struct snd_ctl_elem_info *uinfo)
657{ 657{
658 static char *texts[2] = { "128x", "64x" }; 658 static char *texts[2] = { "128x", "64x" };
659 659
@@ -668,17 +668,17 @@ static int phase28_oversampling_info(snd_kcontrol_t *k, snd_ctl_elem_info_t *uin
668 return 0; 668 return 0;
669} 669}
670 670
671static int phase28_oversampling_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 671static int phase28_oversampling_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
672{ 672{
673 ice1712_t *ice = snd_kcontrol_chip(kcontrol); 673 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
674 ucontrol->value.enumerated.item[0] = (wm_get(ice, WM_MASTER) & 0x8) == 0x8; 674 ucontrol->value.enumerated.item[0] = (wm_get(ice, WM_MASTER) & 0x8) == 0x8;
675 return 0; 675 return 0;
676} 676}
677 677
678static int phase28_oversampling_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol) 678static int phase28_oversampling_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
679{ 679{
680 int temp, temp2; 680 int temp, temp2;
681 ice1712_t *ice = snd_kcontrol_chip(kcontrol); 681 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol);
682 682
683 temp2 = temp = wm_get(ice, WM_MASTER); 683 temp2 = temp = wm_get(ice, WM_MASTER);
684 684
@@ -694,7 +694,7 @@ static int phase28_oversampling_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value
694 return 0; 694 return 0;
695} 695}
696 696
697static snd_kcontrol_new_t phase28_dac_controls[] __devinitdata = { 697static struct snd_kcontrol_new phase28_dac_controls[] __devinitdata = {
698 { 698 {
699 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 699 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
700 .name = "Master Playback Switch", 700 .name = "Master Playback Switch",
@@ -791,7 +791,7 @@ static snd_kcontrol_new_t phase28_dac_controls[] __devinitdata = {
791 } 791 }
792}; 792};
793 793
794static snd_kcontrol_new_t wm_controls[] __devinitdata = { 794static struct snd_kcontrol_new wm_controls[] __devinitdata = {
795 { 795 {
796 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 796 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
797 .name = "PCM Playback Switch", 797 .name = "PCM Playback Switch",
@@ -822,7 +822,7 @@ static snd_kcontrol_new_t wm_controls[] __devinitdata = {
822 } 822 }
823}; 823};
824 824
825static int __devinit phase28_add_controls(ice1712_t *ice) 825static int __devinit phase28_add_controls(struct snd_ice1712 *ice)
826{ 826{
827 unsigned int i, counts; 827 unsigned int i, counts;
828 int err; 828 int err;