Changeset 399 for GPL/branches/uniaud32-2.0/alsa-kernel/pci/cs4281.c
- Timestamp:
- Oct 30, 2008, 9:57:08 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-2.0/alsa-kernel/pci/cs4281.c
r305 r399 767 767 if (dma->left_slot == chip->src_left_play_slot) { 768 768 unsigned int val = snd_cs4281_rate(runtime->rate, NULL); 769 snd_ assert(dma->right_slot == chip->src_right_play_slot,);769 snd_BUG_ON(dma->right_slot != chip->src_right_play_slot); 770 770 snd_cs4281_pokeBA0(chip, BA0_DACSR, val); 771 771 } … … 773 773 if (dma->left_slot == chip->src_left_rec_slot) { 774 774 unsigned int val = snd_cs4281_rate(runtime->rate, NULL); 775 snd_ assert(dma->right_slot == chip->src_right_rec_slot,);775 snd_BUG_ON(dma->right_slot != chip->src_right_rec_slot); 776 776 snd_cs4281_pokeBA0(chip, BA0_ADCSR, val); 777 777 } … … 1210 1210 struct cs4281 *chip = gameport_get_port_data(gameport); 1211 1211 1212 snd_assert(chip, return); 1212 if (snd_BUG_ON(!chip)) 1213 return; 1213 1214 snd_cs4281_pokeBA0(chip, BA0_JSPT, 0xff); 1214 1215 } … … 1218 1219 struct cs4281 *chip = gameport_get_port_data(gameport); 1219 1220 1220 snd_assert(chip, return 0); 1221 if (snd_BUG_ON(!chip)) 1222 return 0; 1221 1223 return snd_cs4281_peekBA0(chip, BA0_JSPT); 1222 1224 } … … 1229 1231 unsigned js1, js2, jst; 1230 1232 1231 snd_assert(chip, return 0); 1233 if (snd_BUG_ON(!chip)) 1234 return 0; 1232 1235 1233 1236 js1 = snd_cs4281_peekBA0(chip, BA0_JSC1); … … 1380 1383 chip->ba1_addr = pci_resource_start(pci, 1); 1381 1384 1382 chip->ba0 = ioremap_nocache(chip->ba0_addr, pci_resource_len(pci, 0));1383 chip->ba1 = ioremap_nocache(chip->ba1_addr, pci_resource_len(pci, 1));1385 chip->ba0 = pci_ioremap_bar(pci, 0); 1386 chip->ba1 = pci_ioremap_bar(pci, 1); 1384 1387 if (!chip->ba0 || !chip->ba1) { 1385 1388 snd_cs4281_free(chip);
Note:
See TracChangeset
for help on using the changeset viewer.
