dbri.c (a9de18eb761f7c1c860964b2e5addc1a35c7e861) | dbri.c (bd7dd77c2a05c530684eea2e3af16449ae9c5d52) |
---|---|
1/* 2 * Driver for DBRI sound chip found on Sparcs. 3 * Copyright (C) 2004, 2005 Martin Habets (mhabets@users.sourceforge.net) 4 * 5 * Converted to ring buffered version by Krzysztof Helt (krzysztof.h1@wp.pl) 6 * 7 * Based entirely upon drivers/sbus/audio/dbri.c which is: 8 * Copyright (C) 1997 Rudolf Koenig (rfkoenig@immd4.informatik.uni-erlangen.de) --- 2598 unchanged lines hidden (view full) --- 2607 } 2608 2609 irq = op->irqs[0]; 2610 if (irq <= 0) { 2611 printk(KERN_ERR "DBRI-%d: No IRQ.\n", dev); 2612 return -ENODEV; 2613 } 2614 | 1/* 2 * Driver for DBRI sound chip found on Sparcs. 3 * Copyright (C) 2004, 2005 Martin Habets (mhabets@users.sourceforge.net) 4 * 5 * Converted to ring buffered version by Krzysztof Helt (krzysztof.h1@wp.pl) 6 * 7 * Based entirely upon drivers/sbus/audio/dbri.c which is: 8 * Copyright (C) 1997 Rudolf Koenig (rfkoenig@immd4.informatik.uni-erlangen.de) --- 2598 unchanged lines hidden (view full) --- 2607 } 2608 2609 irq = op->irqs[0]; 2610 if (irq <= 0) { 2611 printk(KERN_ERR "DBRI-%d: No IRQ.\n", dev); 2612 return -ENODEV; 2613 } 2614 |
2615 card = snd_card_new(index[dev], id[dev], THIS_MODULE, 2616 sizeof(struct snd_dbri)); 2617 if (card == NULL) 2618 return -ENOMEM; | 2615 err = snd_card_create(index[dev], id[dev], THIS_MODULE, 2616 sizeof(struct snd_dbri), &card); 2617 if (err < 0) 2618 return err; |
2619 2620 strcpy(card->driver, "DBRI"); 2621 strcpy(card->shortname, "Sun DBRI"); 2622 rp = &op->resource[0]; 2623 sprintf(card->longname, "%s at 0x%02lx:0x%016Lx, irq %d", 2624 card->shortname, 2625 rp->flags & 0xffL, (unsigned long long)rp->start, irq); 2626 --- 80 unchanged lines hidden --- | 2619 2620 strcpy(card->driver, "DBRI"); 2621 strcpy(card->shortname, "Sun DBRI"); 2622 rp = &op->resource[0]; 2623 sprintf(card->longname, "%s at 0x%02lx:0x%016Lx, irq %d", 2624 card->shortname, 2625 rp->flags & 0xffL, (unsigned long long)rp->start, irq); 2626 --- 80 unchanged lines hidden --- |