harmony.c (012e060c95e547eceea4a12c6f58592473bf4011) harmony.c (53f01bba49938f115237fe43a261c31ac13ae5c6)
1/* Hewlett-Packard Harmony audio driver
2 *
3 * This is a driver for the Harmony audio chipset found
4 * on the LASI ASIC of various early HP PA-RISC workstations.
5 *
6 * Copyright (C) 2004, Kyle McMartin <kyle@{debian.org,parisc-linux.org}>
7 *
8 * Based on the previous Harmony incarnations by,

--- 838 unchanged lines hidden (view full) ---

847 if (h == NULL)
848 return -ENOMEM;
849
850 memset(&h->st, 0, sizeof(h->st));
851 memset(&h->stats, 0, sizeof(h->stats));
852 memset(&h->pbuf, 0, sizeof(h->pbuf));
853 memset(&h->cbuf, 0, sizeof(h->cbuf));
854
1/* Hewlett-Packard Harmony audio driver
2 *
3 * This is a driver for the Harmony audio chipset found
4 * on the LASI ASIC of various early HP PA-RISC workstations.
5 *
6 * Copyright (C) 2004, Kyle McMartin <kyle@{debian.org,parisc-linux.org}>
7 *
8 * Based on the previous Harmony incarnations by,

--- 838 unchanged lines hidden (view full) ---

847 if (h == NULL)
848 return -ENOMEM;
849
850 memset(&h->st, 0, sizeof(h->st));
851 memset(&h->stats, 0, sizeof(h->stats));
852 memset(&h->pbuf, 0, sizeof(h->pbuf));
853 memset(&h->cbuf, 0, sizeof(h->cbuf));
854
855 h->hpa = padev->hpa;
855 h->hpa = padev->hpa.start;
856 h->card = card;
857 h->dev = padev;
858 h->irq = padev->irq;
856 h->card = card;
857 h->dev = padev;
858 h->irq = padev->irq;
859 h->iobase = ioremap_nocache(padev->hpa, HARMONY_SIZE);
859 h->iobase = ioremap_nocache(padev->hpa.start, HARMONY_SIZE);
860 if (h->iobase == NULL) {
861 printk(KERN_ERR PFX "unable to remap hpa 0x%lx\n",
860 if (h->iobase == NULL) {
861 printk(KERN_ERR PFX "unable to remap hpa 0x%lx\n",
862 padev->hpa);
862 padev->hpa.start);
863 err = -EBUSY;
864 goto free_and_ret;
865 }
866
867 err = request_irq(h->irq, snd_harmony_interrupt, 0,
868 "harmony", h);
869 if (err) {
870 printk(KERN_ERR PFX "could not obtain interrupt %d",

--- 125 unchanged lines hidden ---
863 err = -EBUSY;
864 goto free_and_ret;
865 }
866
867 err = request_irq(h->irq, snd_harmony_interrupt, 0,
868 "harmony", h);
869 if (err) {
870 printk(KERN_ERR PFX "could not obtain interrupt %d",

--- 125 unchanged lines hidden ---