diff options
Diffstat (limited to 'sound/ppc')
-rw-r--r-- | sound/ppc/pmac.c | 18 | ||||
-rw-r--r-- | sound/ppc/snd_ps3.c | 4 | ||||
-rw-r--r-- | sound/ppc/snd_ps3_reg.h | 14 | ||||
-rw-r--r-- | sound/ppc/tumbler.c | 4 |
4 files changed, 20 insertions, 20 deletions
diff --git a/sound/ppc/pmac.c b/sound/ppc/pmac.c index 85081172403f..3ecbd67f88c9 100644 --- a/sound/ppc/pmac.c +++ b/sound/ppc/pmac.c | |||
@@ -1034,7 +1034,11 @@ static int __devinit snd_pmac_detect(struct snd_pmac *chip) | |||
1034 | if (of_device_is_compatible(sound, "tumbler")) { | 1034 | if (of_device_is_compatible(sound, "tumbler")) { |
1035 | chip->model = PMAC_TUMBLER; | 1035 | chip->model = PMAC_TUMBLER; |
1036 | chip->can_capture = of_machine_is_compatible("PowerMac4,2") | 1036 | chip->can_capture = of_machine_is_compatible("PowerMac4,2") |
1037 | || of_machine_is_compatible("PowerBook4,1"); | 1037 | || of_machine_is_compatible("PowerBook3,2") |
1038 | || of_machine_is_compatible("PowerBook3,3") | ||
1039 | || of_machine_is_compatible("PowerBook4,1") | ||
1040 | || of_machine_is_compatible("PowerBook4,2") | ||
1041 | || of_machine_is_compatible("PowerBook4,3"); | ||
1038 | chip->can_duplex = 0; | 1042 | chip->can_duplex = 0; |
1039 | // chip->can_byte_swap = 0; /* FIXME: check this */ | 1043 | // chip->can_byte_swap = 0; /* FIXME: check this */ |
1040 | chip->num_freqs = ARRAY_SIZE(tumbler_freqs); | 1044 | chip->num_freqs = ARRAY_SIZE(tumbler_freqs); |
@@ -1228,10 +1232,8 @@ int __devinit snd_pmac_new(struct snd_card *card, struct snd_pmac **chip_return) | |||
1228 | chip->rsrc[i].start + 1, | 1232 | chip->rsrc[i].start + 1, |
1229 | rnames[i]) == NULL) { | 1233 | rnames[i]) == NULL) { |
1230 | printk(KERN_ERR "snd: can't request rsrc " | 1234 | printk(KERN_ERR "snd: can't request rsrc " |
1231 | " %d (%s: 0x%016llx:%016llx)\n", | 1235 | " %d (%s: %pR)\n", |
1232 | i, rnames[i], | 1236 | i, rnames[i], &chip->rsrc[i]); |
1233 | (unsigned long long)chip->rsrc[i].start, | ||
1234 | (unsigned long long)chip->rsrc[i].end); | ||
1235 | err = -ENODEV; | 1237 | err = -ENODEV; |
1236 | goto __error; | 1238 | goto __error; |
1237 | } | 1239 | } |
@@ -1256,10 +1258,8 @@ int __devinit snd_pmac_new(struct snd_card *card, struct snd_pmac **chip_return) | |||
1256 | chip->rsrc[i].start + 1, | 1258 | chip->rsrc[i].start + 1, |
1257 | rnames[i]) == NULL) { | 1259 | rnames[i]) == NULL) { |
1258 | printk(KERN_ERR "snd: can't request rsrc " | 1260 | printk(KERN_ERR "snd: can't request rsrc " |
1259 | " %d (%s: 0x%016llx:%016llx)\n", | 1261 | " %d (%s: %pR)\n", |
1260 | i, rnames[i], | 1262 | i, rnames[i], &chip->rsrc[i]); |
1261 | (unsigned long long)chip->rsrc[i].start, | ||
1262 | (unsigned long long)chip->rsrc[i].end); | ||
1263 | err = -ENODEV; | 1263 | err = -ENODEV; |
1264 | goto __error; | 1264 | goto __error; |
1265 | } | 1265 | } |
diff --git a/sound/ppc/snd_ps3.c b/sound/ppc/snd_ps3.c index 581a670e8261..bc823a547550 100644 --- a/sound/ppc/snd_ps3.c +++ b/sound/ppc/snd_ps3.c | |||
@@ -51,7 +51,7 @@ static struct snd_ps3_card_info the_card; | |||
51 | static int snd_ps3_start_delay = CONFIG_SND_PS3_DEFAULT_START_DELAY; | 51 | static int snd_ps3_start_delay = CONFIG_SND_PS3_DEFAULT_START_DELAY; |
52 | 52 | ||
53 | module_param_named(start_delay, snd_ps3_start_delay, uint, 0644); | 53 | module_param_named(start_delay, snd_ps3_start_delay, uint, 0644); |
54 | MODULE_PARM_DESC(start_delay, "time to insert silent data in milisec"); | 54 | MODULE_PARM_DESC(start_delay, "time to insert silent data in ms"); |
55 | 55 | ||
56 | static int index = SNDRV_DEFAULT_IDX1; | 56 | static int index = SNDRV_DEFAULT_IDX1; |
57 | static char *id = SNDRV_DEFAULT_STR1; | 57 | static char *id = SNDRV_DEFAULT_STR1; |
@@ -358,7 +358,7 @@ static irqreturn_t snd_ps3_interrupt(int irq, void *dev_id) | |||
358 | * filling dummy data, serial automatically start to | 358 | * filling dummy data, serial automatically start to |
359 | * consume them and then will generate normal buffer | 359 | * consume them and then will generate normal buffer |
360 | * empty interrupts. | 360 | * empty interrupts. |
361 | * If both buffer underflow and buffer empty are occured, | 361 | * If both buffer underflow and buffer empty are occurred, |
362 | * it is better to do nomal data transfer than empty one | 362 | * it is better to do nomal data transfer than empty one |
363 | */ | 363 | */ |
364 | snd_ps3_program_dma(card, | 364 | snd_ps3_program_dma(card, |
diff --git a/sound/ppc/snd_ps3_reg.h b/sound/ppc/snd_ps3_reg.h index 03fdee4aaaf2..2e6302079566 100644 --- a/sound/ppc/snd_ps3_reg.h +++ b/sound/ppc/snd_ps3_reg.h | |||
@@ -125,7 +125,7 @@ | |||
125 | transfers. Any interrupts associated with the canceled transfers | 125 | transfers. Any interrupts associated with the canceled transfers |
126 | will occur as if the transfer had finished. | 126 | will occur as if the transfer had finished. |
127 | Since this bit is designed to recover from DMA related issues | 127 | Since this bit is designed to recover from DMA related issues |
128 | which are caused by unpredictable situations, it is prefered to wait | 128 | which are caused by unpredictable situations, it is preferred to wait |
129 | for normal DMA transfer end without using this bit. | 129 | for normal DMA transfer end without using this bit. |
130 | */ | 130 | */ |
131 | #define PS3_AUDIO_CONFIG_CLEAR (1 << 8) /* RWIVF */ | 131 | #define PS3_AUDIO_CONFIG_CLEAR (1 << 8) /* RWIVF */ |
@@ -316,13 +316,13 @@ DISABLED=Interrupt generation disabled. | |||
316 | 316 | ||
317 | /* | 317 | /* |
318 | Audio Port Interrupt Status Register | 318 | Audio Port Interrupt Status Register |
319 | Indicates Interrupt status, which interrupt has occured, and can clear | 319 | Indicates Interrupt status, which interrupt has occurred, and can clear |
320 | each interrupt in this register. | 320 | each interrupt in this register. |
321 | Writing 1b to a field containing 1b clears field and de-asserts interrupt. | 321 | Writing 1b to a field containing 1b clears field and de-asserts interrupt. |
322 | Writing 0b to a field has no effect. | 322 | Writing 0b to a field has no effect. |
323 | Field vaules are the following: | 323 | Field vaules are the following: |
324 | 0 - Interrupt hasn't occured. | 324 | 0 - Interrupt hasn't occurred. |
325 | 1 - Interrupt has occured. | 325 | 1 - Interrupt has occurred. |
326 | 326 | ||
327 | 327 | ||
328 | 31 24 23 16 15 8 7 0 | 328 | 31 24 23 16 15 8 7 0 |
@@ -473,7 +473,7 @@ Channel N is out of action by setting 0 to asoen. | |||
473 | /* | 473 | /* |
474 | Sampling Rate | 474 | Sampling Rate |
475 | Specifies the divide ratio of the bit clock (clock output | 475 | Specifies the divide ratio of the bit clock (clock output |
476 | from bclko) used by the 3-wire Audio Output Clock, whcih | 476 | from bclko) used by the 3-wire Audio Output Clock, which |
477 | is applied to the master clock selected by mcksel. | 477 | is applied to the master clock selected by mcksel. |
478 | Data output is synchronized with this clock. | 478 | Data output is synchronized with this clock. |
479 | */ | 479 | */ |
@@ -756,7 +756,7 @@ The STATUS field can be used to monitor the progress of a DMA request. | |||
756 | DONE indicates the previous request has completed. | 756 | DONE indicates the previous request has completed. |
757 | EVENT indicates that the DMA engine is waiting for the EVENT to occur. | 757 | EVENT indicates that the DMA engine is waiting for the EVENT to occur. |
758 | PENDING indicates that the DMA engine has not started processing this | 758 | PENDING indicates that the DMA engine has not started processing this |
759 | request, but the EVENT has occured. | 759 | request, but the EVENT has occurred. |
760 | DMA indicates that the data transfer is in progress. | 760 | DMA indicates that the data transfer is in progress. |
761 | NOTIFY indicates that the notifier signalling end of transfer is being written. | 761 | NOTIFY indicates that the notifier signalling end of transfer is being written. |
762 | CLEAR indicated that the previous transfer was cleared. | 762 | CLEAR indicated that the previous transfer was cleared. |
@@ -824,7 +824,7 @@ AUDIOFIFO = Audio WriteData FIFO, | |||
824 | 824 | ||
825 | /* | 825 | /* |
826 | PS3_AUDIO_DMASIZE specifies the number of 128-byte blocks + 1 to transfer. | 826 | PS3_AUDIO_DMASIZE specifies the number of 128-byte blocks + 1 to transfer. |
827 | So a value of 0 means 128-bytes will get transfered. | 827 | So a value of 0 means 128-bytes will get transferred. |
828 | 828 | ||
829 | 829 | ||
830 | 31 24 23 16 15 8 7 0 | 830 | 31 24 23 16 15 8 7 0 |
diff --git a/sound/ppc/tumbler.c b/sound/ppc/tumbler.c index 20afdf9772ee..9cea84c3e0c6 100644 --- a/sound/ppc/tumbler.c +++ b/sound/ppc/tumbler.c | |||
@@ -785,7 +785,7 @@ static int snapper_set_capture_source(struct pmac_tumbler *mix) | |||
785 | if (! mix->i2c.client) | 785 | if (! mix->i2c.client) |
786 | return -ENODEV; | 786 | return -ENODEV; |
787 | if (mix->capture_source) | 787 | if (mix->capture_source) |
788 | mix->acs = mix->acs |= 2; | 788 | mix->acs |= 2; |
789 | else | 789 | else |
790 | mix->acs &= ~2; | 790 | mix->acs &= ~2; |
791 | return i2c_smbus_write_byte_data(mix->i2c.client, TAS_REG_ACS, mix->acs); | 791 | return i2c_smbus_write_byte_data(mix->i2c.client, TAS_REG_ACS, mix->acs); |
@@ -1000,7 +1000,7 @@ static void device_change_handler(struct work_struct *work) | |||
1000 | chip->lineout_sw_ctl); | 1000 | chip->lineout_sw_ctl); |
1001 | if (mix->anded_reset) | 1001 | if (mix->anded_reset) |
1002 | msleep(10); | 1002 | msleep(10); |
1003 | check_mute(chip, &mix->amp_mute, 1, mix->auto_mute_notify, | 1003 | check_mute(chip, &mix->amp_mute, !IS_G4DA, mix->auto_mute_notify, |
1004 | chip->speaker_sw_ctl); | 1004 | chip->speaker_sw_ctl); |
1005 | } else { | 1005 | } else { |
1006 | /* unmute speaker, mute others */ | 1006 | /* unmute speaker, mute others */ |