aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ac97/ac97_proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/ac97/ac97_proc.c')
-rw-r--r--sound/pci/ac97/ac97_proc.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/sound/pci/ac97/ac97_proc.c b/sound/pci/ac97/ac97_proc.c
index f4333b867bd5..266073201293 100644
--- a/sound/pci/ac97/ac97_proc.c
+++ b/sound/pci/ac97/ac97_proc.c
@@ -34,7 +34,7 @@
34 * proc interface 34 * proc interface
35 */ 35 */
36 36
37static void snd_ac97_proc_read_functions(ac97_t *ac97, snd_info_buffer_t *buffer) 37static void snd_ac97_proc_read_functions(struct snd_ac97 *ac97, struct snd_info_buffer *buffer)
38{ 38{
39 int header = 0, function; 39 int header = 0, function;
40 unsigned short info, sense_info; 40 unsigned short info, sense_info;
@@ -68,7 +68,7 @@ static void snd_ac97_proc_read_functions(ac97_t *ac97, snd_info_buffer_t *buffer
68 } 68 }
69} 69}
70 70
71static void snd_ac97_proc_read_main(ac97_t *ac97, snd_info_buffer_t * buffer, int subidx) 71static void snd_ac97_proc_read_main(struct snd_ac97 *ac97, struct snd_info_buffer *buffer, int subidx)
72{ 72{
73 char name[64]; 73 char name[64];
74 unsigned short val, tmp, ext, mext; 74 unsigned short val, tmp, ext, mext;
@@ -80,7 +80,6 @@ static void snd_ac97_proc_read_main(ac97_t *ac97, snd_info_buffer_t * buffer, in
80 snd_ac97_get_name(NULL, ac97->id, name, 0); 80 snd_ac97_get_name(NULL, ac97->id, name, 0);
81 snd_iprintf(buffer, "%d-%d/%d: %s\n\n", ac97->addr, ac97->num, subidx, name); 81 snd_iprintf(buffer, "%d-%d/%d: %s\n\n", ac97->addr, ac97->num, subidx, name);
82 82
83
84 if ((ac97->scaps & AC97_SCAP_AUDIO) == 0) 83 if ((ac97->scaps & AC97_SCAP_AUDIO) == 0)
85 goto __modem; 84 goto __modem;
86 85
@@ -299,9 +298,9 @@ static void snd_ac97_proc_read_main(ac97_t *ac97, snd_info_buffer_t * buffer, in
299 } 298 }
300} 299}
301 300
302static void snd_ac97_proc_read(snd_info_entry_t *entry, snd_info_buffer_t * buffer) 301static void snd_ac97_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer)
303{ 302{
304 ac97_t *ac97 = entry->private_data; 303 struct snd_ac97 *ac97 = entry->private_data;
305 304
306 down(&ac97->page_mutex); 305 down(&ac97->page_mutex);
307 if ((ac97->id & 0xffffff40) == AC97_ID_AD1881) { // Analog Devices AD1881/85/86 306 if ((ac97->id & 0xffffff40) == AC97_ID_AD1881) { // Analog Devices AD1881/85/86
@@ -334,9 +333,9 @@ static void snd_ac97_proc_read(snd_info_entry_t *entry, snd_info_buffer_t * buff
334 333
335#ifdef CONFIG_SND_DEBUG 334#ifdef CONFIG_SND_DEBUG
336/* direct register write for debugging */ 335/* direct register write for debugging */
337static void snd_ac97_proc_regs_write(snd_info_entry_t *entry, snd_info_buffer_t *buffer) 336static void snd_ac97_proc_regs_write(struct snd_info_entry *entry, struct snd_info_buffer *buffer)
338{ 337{
339 ac97_t *ac97 = entry->private_data; 338 struct snd_ac97 *ac97 = entry->private_data;
340 char line[64]; 339 char line[64];
341 unsigned int reg, val; 340 unsigned int reg, val;
342 down(&ac97->page_mutex); 341 down(&ac97->page_mutex);
@@ -351,7 +350,7 @@ static void snd_ac97_proc_regs_write(snd_info_entry_t *entry, snd_info_buffer_t
351} 350}
352#endif 351#endif
353 352
354static void snd_ac97_proc_regs_read_main(ac97_t *ac97, snd_info_buffer_t * buffer, int subidx) 353static void snd_ac97_proc_regs_read_main(struct snd_ac97 *ac97, struct snd_info_buffer *buffer, int subidx)
355{ 354{
356 int reg, val; 355 int reg, val;
357 356
@@ -361,10 +360,10 @@ static void snd_ac97_proc_regs_read_main(ac97_t *ac97, snd_info_buffer_t * buffe
361 } 360 }
362} 361}
363 362
364static void snd_ac97_proc_regs_read(snd_info_entry_t *entry, 363static void snd_ac97_proc_regs_read(struct snd_info_entry *entry,
365 snd_info_buffer_t * buffer) 364 struct snd_info_buffer *buffer)
366{ 365{
367 ac97_t *ac97 = entry->private_data; 366 struct snd_ac97 *ac97 = entry->private_data;
368 367
369 down(&ac97->page_mutex); 368 down(&ac97->page_mutex);
370 if ((ac97->id & 0xffffff40) == AC97_ID_AD1881) { // Analog Devices AD1881/85/86 369 if ((ac97->id & 0xffffff40) == AC97_ID_AD1881) { // Analog Devices AD1881/85/86
@@ -385,9 +384,9 @@ static void snd_ac97_proc_regs_read(snd_info_entry_t *entry,
385 up(&ac97->page_mutex); 384 up(&ac97->page_mutex);
386} 385}
387 386
388void snd_ac97_proc_init(ac97_t * ac97) 387void snd_ac97_proc_init(struct snd_ac97 * ac97)
389{ 388{
390 snd_info_entry_t *entry; 389 struct snd_info_entry *entry;
391 char name[32]; 390 char name[32];
392 const char *prefix; 391 const char *prefix;
393 392
@@ -419,7 +418,7 @@ void snd_ac97_proc_init(ac97_t * ac97)
419 ac97->proc_regs = entry; 418 ac97->proc_regs = entry;
420} 419}
421 420
422void snd_ac97_proc_done(ac97_t * ac97) 421void snd_ac97_proc_done(struct snd_ac97 * ac97)
423{ 422{
424 if (ac97->proc_regs) { 423 if (ac97->proc_regs) {
425 snd_info_unregister(ac97->proc_regs); 424 snd_info_unregister(ac97->proc_regs);
@@ -431,9 +430,9 @@ void snd_ac97_proc_done(ac97_t * ac97)
431 } 430 }
432} 431}
433 432
434void snd_ac97_bus_proc_init(ac97_bus_t * bus) 433void snd_ac97_bus_proc_init(struct snd_ac97_bus * bus)
435{ 434{
436 snd_info_entry_t *entry; 435 struct snd_info_entry *entry;
437 char name[32]; 436 char name[32];
438 437
439 sprintf(name, "codec97#%d", bus->num); 438 sprintf(name, "codec97#%d", bus->num);
@@ -447,7 +446,7 @@ void snd_ac97_bus_proc_init(ac97_bus_t * bus)
447 bus->proc = entry; 446 bus->proc = entry;
448} 447}
449 448
450void snd_ac97_bus_proc_done(ac97_bus_t * bus) 449void snd_ac97_bus_proc_done(struct snd_ac97_bus * bus)
451{ 450{
452 if (bus->proc) { 451 if (bus->proc) {
453 snd_info_unregister(bus->proc); 452 snd_info_unregister(bus->proc);