diff options
Diffstat (limited to 'kernel/voicebus.c')
-rw-r--r-- | kernel/voicebus.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/kernel/voicebus.c b/kernel/voicebus.c index 80334b1..aabfd8c 100644 --- a/kernel/voicebus.c +++ b/kernel/voicebus.c @@ -599,10 +599,11 @@ vb_reset_interface(struct voicebus *vb) pci_access = DEFAULT_PCI_ACCESS | (0x3 << 14); break; default: - VB_PRINTK(vb, WARNING, "Host system set a cache size "\ - "of %d which is not supported. " \ - "Disabling memory write line and memory read line.", - vb->cache_line_size); + if (atomic_read(&vb->debuglevel)) + VB_PRINTK(vb, WARNING, "Host system set a cache size "\ + "of %d which is not supported. " \ + "Disabling memory write line and memory read line.", + vb->cache_line_size); pci_access = 0xfe584202; break; } @@ -1315,6 +1316,7 @@ voicebus_init(struct pci_dev *pdev, u32 framesize, void (*handle_receive)(void *vbb, void *context), void (*handle_transmit)(void *vbb, void *context), void *context, + u32 debuglevel, struct voicebus **vbp ) { @@ -1342,6 +1344,7 @@ voicebus_init(struct pci_dev *pdev, u32 framesize, /* \todo make sure there is a note that the caller needs to make sure * board_name stays in memory until voicebus_release is called. */ + voicebus_setdebuglevel(vb, debuglevel); vb->board_name = board_name; spin_lock_init(&vb->lock); init_completion(&vb->stopped_completion); |