aboutsummaryrefslogtreecommitdiffstats
path: root/sound/ppc/burgundy.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/ppc/burgundy.c')
-rw-r--r--sound/ppc/burgundy.c22
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 */
470static struct snd_kcontrol_new snd_pmac_burgundy_mixers[] __devinitdata = { 470static 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};
498static struct snd_kcontrol_new snd_pmac_burgundy_mixers_imac[] __devinitdata = { 498static 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};
524static struct snd_kcontrol_new snd_pmac_burgundy_mixers_pmac[] __devinitdata = { 524static 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};
540static struct snd_kcontrol_new snd_pmac_burgundy_master_sw_imac __devinitdata = 540static struct snd_kcontrol_new snd_pmac_burgundy_master_sw_imac =
541BURGUNDY_SWITCH_B("Master Playback Switch", 0, 541BURGUNDY_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);
545static struct snd_kcontrol_new snd_pmac_burgundy_master_sw_pmac __devinitdata = 545static struct snd_kcontrol_new snd_pmac_burgundy_master_sw_pmac =
546BURGUNDY_SWITCH_B("Master Playback Switch", 0, 546BURGUNDY_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);
550static struct snd_kcontrol_new snd_pmac_burgundy_speaker_sw_imac __devinitdata = 550static struct snd_kcontrol_new snd_pmac_burgundy_speaker_sw_imac =
551BURGUNDY_SWITCH_B("Speaker Playback Switch", 0, 551BURGUNDY_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);
554static struct snd_kcontrol_new snd_pmac_burgundy_speaker_sw_pmac __devinitdata = 554static struct snd_kcontrol_new snd_pmac_burgundy_speaker_sw_pmac =
555BURGUNDY_SWITCH_B("Speaker Playback Switch", 0, 555BURGUNDY_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);
558static struct snd_kcontrol_new snd_pmac_burgundy_line_sw_imac __devinitdata = 558static struct snd_kcontrol_new snd_pmac_burgundy_line_sw_imac =
559BURGUNDY_SWITCH_B("Line out Playback Switch", 0, 559BURGUNDY_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);
562static struct snd_kcontrol_new snd_pmac_burgundy_line_sw_pmac __devinitdata = 562static struct snd_kcontrol_new snd_pmac_burgundy_line_sw_pmac =
563BURGUNDY_SWITCH_B("Line out Playback Switch", 0, 563BURGUNDY_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);
566static struct snd_kcontrol_new snd_pmac_burgundy_hp_sw_imac __devinitdata = 566static struct snd_kcontrol_new snd_pmac_burgundy_hp_sw_imac =
567BURGUNDY_SWITCH_B("Headphone Playback Switch", 0, 567BURGUNDY_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 */
620int __devinit snd_pmac_burgundy_init(struct snd_pmac *chip) 620int 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;