diff options
Diffstat (limited to 'Documentation/DMA-mapping.txt')
-rw-r--r-- | Documentation/DMA-mapping.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/DMA-mapping.txt b/Documentation/DMA-mapping.txt index 01f24e94bdb6..ecad88d9fe59 100644 --- a/Documentation/DMA-mapping.txt +++ b/Documentation/DMA-mapping.txt | |||
@@ -214,7 +214,7 @@ most specific mask. | |||
214 | Here is pseudo-code showing how this might be done: | 214 | Here is pseudo-code showing how this might be done: |
215 | 215 | ||
216 | #define PLAYBACK_ADDRESS_BITS DMA_BIT_MASK(32) | 216 | #define PLAYBACK_ADDRESS_BITS DMA_BIT_MASK(32) |
217 | #define RECORD_ADDRESS_BITS 0x00ffffff | 217 | #define RECORD_ADDRESS_BITS DMA_BIT_MASK(24) |
218 | 218 | ||
219 | struct my_sound_card *card; | 219 | struct my_sound_card *card; |
220 | struct pci_dev *pdev; | 220 | struct pci_dev *pdev; |
@@ -224,14 +224,14 @@ Here is pseudo-code showing how this might be done: | |||
224 | card->playback_enabled = 1; | 224 | card->playback_enabled = 1; |
225 | } else { | 225 | } else { |
226 | card->playback_enabled = 0; | 226 | card->playback_enabled = 0; |
227 | printk(KERN_WARN "%s: Playback disabled due to DMA limitations.\n", | 227 | printk(KERN_WARNING "%s: Playback disabled due to DMA limitations.\n", |
228 | card->name); | 228 | card->name); |
229 | } | 229 | } |
230 | if (!pci_set_dma_mask(pdev, RECORD_ADDRESS_BITS)) { | 230 | if (!pci_set_dma_mask(pdev, RECORD_ADDRESS_BITS)) { |
231 | card->record_enabled = 1; | 231 | card->record_enabled = 1; |
232 | } else { | 232 | } else { |
233 | card->record_enabled = 0; | 233 | card->record_enabled = 0; |
234 | printk(KERN_WARN "%s: Record disabled due to DMA limitations.\n", | 234 | printk(KERN_WARNING "%s: Record disabled due to DMA limitations.\n", |
235 | card->name); | 235 | card->name); |
236 | } | 236 | } |
237 | 237 | ||