diff options
Diffstat (limited to 'sound/ppc/burgundy.c')
-rw-r--r-- | sound/ppc/burgundy.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sound/ppc/burgundy.c b/sound/ppc/burgundy.c index 00e2d5166d0a..cb4f0a5e984e 100644 --- a/sound/ppc/burgundy.c +++ b/sound/ppc/burgundy.c | |||
@@ -467,7 +467,7 @@ static int snd_pmac_burgundy_put_switch_b(struct snd_kcontrol *kcontrol, | |||
467 | /* | 467 | /* |
468 | * Burgundy mixers | 468 | * Burgundy mixers |
469 | */ | 469 | */ |
470 | static struct snd_kcontrol_new snd_pmac_burgundy_mixers[] __devinitdata = { | 470 | static struct snd_kcontrol_new snd_pmac_burgundy_mixers[] = { |
471 | BURGUNDY_VOLUME_W("Master Playback Volume", 0, | 471 | BURGUNDY_VOLUME_W("Master Playback Volume", 0, |
472 | MASK_ADDR_BURGUNDY_MASTER_VOLUME, 8), | 472 | MASK_ADDR_BURGUNDY_MASTER_VOLUME, 8), |
473 | BURGUNDY_VOLUME_W("CD Capture Volume", 0, | 473 | BURGUNDY_VOLUME_W("CD Capture Volume", 0, |
@@ -495,7 +495,7 @@ static struct snd_kcontrol_new snd_pmac_burgundy_mixers[] __devinitdata = { | |||
495 | */ BURGUNDY_SWITCH_B("PCM Capture Switch", 0, | 495 | */ BURGUNDY_SWITCH_B("PCM Capture Switch", 0, |
496 | MASK_ADDR_BURGUNDY_HOSTIFEH, 0x01, 0, 0) | 496 | MASK_ADDR_BURGUNDY_HOSTIFEH, 0x01, 0, 0) |
497 | }; | 497 | }; |
498 | static struct snd_kcontrol_new snd_pmac_burgundy_mixers_imac[] __devinitdata = { | 498 | static struct snd_kcontrol_new snd_pmac_burgundy_mixers_imac[] = { |
499 | BURGUNDY_VOLUME_W("Line in Capture Volume", 0, | 499 | BURGUNDY_VOLUME_W("Line in Capture Volume", 0, |
500 | MASK_ADDR_BURGUNDY_VOLLINE, 16), | 500 | MASK_ADDR_BURGUNDY_VOLLINE, 16), |
501 | BURGUNDY_VOLUME_W("Mic Capture Volume", 0, | 501 | BURGUNDY_VOLUME_W("Mic Capture Volume", 0, |
@@ -521,7 +521,7 @@ static struct snd_kcontrol_new snd_pmac_burgundy_mixers_imac[] __devinitdata = { | |||
521 | BURGUNDY_SWITCH_B("Mic Boost Capture Switch", 0, | 521 | BURGUNDY_SWITCH_B("Mic Boost Capture Switch", 0, |
522 | MASK_ADDR_BURGUNDY_INPBOOST, 0x40, 0x80, 1) | 522 | MASK_ADDR_BURGUNDY_INPBOOST, 0x40, 0x80, 1) |
523 | }; | 523 | }; |
524 | static struct snd_kcontrol_new snd_pmac_burgundy_mixers_pmac[] __devinitdata = { | 524 | static struct snd_kcontrol_new snd_pmac_burgundy_mixers_pmac[] = { |
525 | BURGUNDY_VOLUME_W("Line in Capture Volume", 0, | 525 | BURGUNDY_VOLUME_W("Line in Capture Volume", 0, |
526 | MASK_ADDR_BURGUNDY_VOLMIC, 16), | 526 | MASK_ADDR_BURGUNDY_VOLMIC, 16), |
527 | BURGUNDY_VOLUME_B("Line in Gain Capture Volume", 0, | 527 | BURGUNDY_VOLUME_B("Line in Gain Capture Volume", 0, |
@@ -537,33 +537,33 @@ static struct snd_kcontrol_new snd_pmac_burgundy_mixers_pmac[] __devinitdata = { | |||
537 | /* BURGUNDY_SWITCH_B("Line in Boost Capture Switch", 0, | 537 | /* BURGUNDY_SWITCH_B("Line in Boost Capture Switch", 0, |
538 | * MASK_ADDR_BURGUNDY_INPBOOST, 0x40, 0x80, 1) */ | 538 | * MASK_ADDR_BURGUNDY_INPBOOST, 0x40, 0x80, 1) */ |
539 | }; | 539 | }; |
540 | static struct snd_kcontrol_new snd_pmac_burgundy_master_sw_imac __devinitdata = | 540 | static struct snd_kcontrol_new snd_pmac_burgundy_master_sw_imac = |
541 | BURGUNDY_SWITCH_B("Master Playback Switch", 0, | 541 | BURGUNDY_SWITCH_B("Master Playback Switch", 0, |
542 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, | 542 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, |
543 | BURGUNDY_OUTPUT_LEFT | BURGUNDY_LINEOUT_LEFT | BURGUNDY_HP_LEFT, | 543 | BURGUNDY_OUTPUT_LEFT | BURGUNDY_LINEOUT_LEFT | BURGUNDY_HP_LEFT, |
544 | BURGUNDY_OUTPUT_RIGHT | BURGUNDY_LINEOUT_RIGHT | BURGUNDY_HP_RIGHT, 1); | 544 | BURGUNDY_OUTPUT_RIGHT | BURGUNDY_LINEOUT_RIGHT | BURGUNDY_HP_RIGHT, 1); |
545 | static struct snd_kcontrol_new snd_pmac_burgundy_master_sw_pmac __devinitdata = | 545 | static struct snd_kcontrol_new snd_pmac_burgundy_master_sw_pmac = |
546 | BURGUNDY_SWITCH_B("Master Playback Switch", 0, | 546 | BURGUNDY_SWITCH_B("Master Playback Switch", 0, |
547 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, | 547 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, |
548 | BURGUNDY_OUTPUT_INTERN | 548 | BURGUNDY_OUTPUT_INTERN |
549 | | BURGUNDY_OUTPUT_LEFT, BURGUNDY_OUTPUT_RIGHT, 1); | 549 | | BURGUNDY_OUTPUT_LEFT, BURGUNDY_OUTPUT_RIGHT, 1); |
550 | static struct snd_kcontrol_new snd_pmac_burgundy_speaker_sw_imac __devinitdata = | 550 | static struct snd_kcontrol_new snd_pmac_burgundy_speaker_sw_imac = |
551 | BURGUNDY_SWITCH_B("Speaker Playback Switch", 0, | 551 | BURGUNDY_SWITCH_B("Speaker Playback Switch", 0, |
552 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, | 552 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, |
553 | BURGUNDY_OUTPUT_LEFT, BURGUNDY_OUTPUT_RIGHT, 1); | 553 | BURGUNDY_OUTPUT_LEFT, BURGUNDY_OUTPUT_RIGHT, 1); |
554 | static struct snd_kcontrol_new snd_pmac_burgundy_speaker_sw_pmac __devinitdata = | 554 | static struct snd_kcontrol_new snd_pmac_burgundy_speaker_sw_pmac = |
555 | BURGUNDY_SWITCH_B("Speaker Playback Switch", 0, | 555 | BURGUNDY_SWITCH_B("Speaker Playback Switch", 0, |
556 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, | 556 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, |
557 | BURGUNDY_OUTPUT_INTERN, 0, 0); | 557 | BURGUNDY_OUTPUT_INTERN, 0, 0); |
558 | static struct snd_kcontrol_new snd_pmac_burgundy_line_sw_imac __devinitdata = | 558 | static struct snd_kcontrol_new snd_pmac_burgundy_line_sw_imac = |
559 | BURGUNDY_SWITCH_B("Line out Playback Switch", 0, | 559 | BURGUNDY_SWITCH_B("Line out Playback Switch", 0, |
560 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, | 560 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, |
561 | BURGUNDY_LINEOUT_LEFT, BURGUNDY_LINEOUT_RIGHT, 1); | 561 | BURGUNDY_LINEOUT_LEFT, BURGUNDY_LINEOUT_RIGHT, 1); |
562 | static struct snd_kcontrol_new snd_pmac_burgundy_line_sw_pmac __devinitdata = | 562 | static struct snd_kcontrol_new snd_pmac_burgundy_line_sw_pmac = |
563 | BURGUNDY_SWITCH_B("Line out Playback Switch", 0, | 563 | BURGUNDY_SWITCH_B("Line out Playback Switch", 0, |
564 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, | 564 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, |
565 | BURGUNDY_OUTPUT_LEFT, BURGUNDY_OUTPUT_RIGHT, 1); | 565 | BURGUNDY_OUTPUT_LEFT, BURGUNDY_OUTPUT_RIGHT, 1); |
566 | static struct snd_kcontrol_new snd_pmac_burgundy_hp_sw_imac __devinitdata = | 566 | static struct snd_kcontrol_new snd_pmac_burgundy_hp_sw_imac = |
567 | BURGUNDY_SWITCH_B("Headphone Playback Switch", 0, | 567 | BURGUNDY_SWITCH_B("Headphone Playback Switch", 0, |
568 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, | 568 | MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES, |
569 | BURGUNDY_HP_LEFT, BURGUNDY_HP_RIGHT, 1); | 569 | BURGUNDY_HP_LEFT, BURGUNDY_HP_RIGHT, 1); |
@@ -617,7 +617,7 @@ static void snd_pmac_burgundy_update_automute(struct snd_pmac *chip, int do_noti | |||
617 | /* | 617 | /* |
618 | * initialize burgundy | 618 | * initialize burgundy |
619 | */ | 619 | */ |
620 | int __devinit snd_pmac_burgundy_init(struct snd_pmac *chip) | 620 | int snd_pmac_burgundy_init(struct snd_pmac *chip) |
621 | { | 621 | { |
622 | int imac = of_machine_is_compatible("iMac"); | 622 | int imac = of_machine_is_compatible("iMac"); |
623 | int i, err; | 623 | int i, err; |