Ignore:
Timestamp:
Apr 21, 2025, 7:17:25 PM (4 months ago)
Author:
David Azarewicz
Message:

Merge from uniaud32-exp branch

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/drivers/mpu401/mpu401.c

    r717 r777  
    6969
    7070        if (!uart_enter[dev])
    71                 snd_printk(KERN_ERR "the uart_enter option is obsolete; remove it\n");
     71                dev_err(devptr, "the uart_enter option is obsolete; remove it\n");
    7272
    7373        *rcard = NULL;
     
    8888                                  irq[dev], NULL);
    8989        if (err < 0) {
    90                 printk(KERN_ERR "MPU401 not detected at 0x%lx\n", port[dev]);
     90                dev_err(devptr, "MPU401 not detected at 0x%lx\n", port[dev]);
    9191                return err;
    9292        }
     
    103103
    104104        if (port[dev] == SNDRV_AUTO_PORT) {
    105                 snd_printk(KERN_ERR "specify port\n");
     105                dev_err(&devptr->dev, "specify port\n");
    106106                return -EINVAL;
    107107        }
    108108        if (irq[dev] == SNDRV_AUTO_IRQ) {
    109                 snd_printk(KERN_ERR "specify or disable IRQ\n");
     109                dev_err(&devptr->dev, "specify or disable IRQ\n");
    110110                return -EINVAL;
    111111        }
     
    146146        if (!pnp_port_valid(device, 0) ||
    147147            pnp_port_flags(device, 0) & IORESOURCE_DISABLED) {
    148                 snd_printk(KERN_ERR "no PnP port\n");
     148                dev_err(&device->dev, "no PnP port\n");
    149149                return -ENODEV;
    150150        }
    151151        if (pnp_port_len(device, 0) < IO_EXTENT) {
    152                 snd_printk(KERN_ERR "PnP port length is %llu, expected %d\n",
     152                dev_err(&device->dev, "PnP port length is %llu, expected %d\n",
    153153                           (unsigned long long)pnp_port_len(device, 0),
    154154                           IO_EXTENT);
     
    159159        if (!pnp_irq_valid(device, 0) ||
    160160            pnp_irq_flags(device, 0) & IORESOURCE_DISABLED) {
    161                 snd_printk(KERN_WARNING "no PnP irq, using polling\n");
     161                dev_warn(&device->dev, "no PnP irq, using polling\n");
    162162                irq[dev] = -1;
    163163        } else {
     
    247247        if (!snd_mpu401_devices) {
    248248#ifdef MODULE
    249                 printk(KERN_ERR "MPU-401 device not found or device busy\n");
     249                pr_err("MPU-401 device not found or device busy\n");
    250250#endif
    251251                snd_mpu401_unregister_all();
Note: See TracChangeset for help on using the changeset viewer.