Ignore:
Timestamp:
Oct 30, 2008, 9:57:08 AM (17 years ago)
Author:
Paul Smedley
Message:

Update source to ALSA 1.0.18

Location:
GPL/branches/uniaud32-2.0/alsa-kernel/drivers/opl3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-2.0/alsa-kernel/drivers/opl3/opl3_lib.c

    r305 r399  
    140140                 * by the OPL4 driver; so we can assume OPL3 here.
    141141                 */
    142                 snd_assert(opl3->r_port != 0, return -ENODEV);
     142                if (snd_BUG_ON(!opl3->r_port))
     143                        return -ENODEV;
    143144                opl3->hardware = OPL3_HW_OPL3;
    144145        }
     
    325326static int snd_opl3_free(struct snd_opl3 *opl3)
    326327{
    327         snd_assert(opl3 != NULL, return -ENXIO);
     328        if (snd_BUG_ON(!opl3))
     329                return -ENXIO;
    328330        if (opl3->private_free)
    329331                opl3->private_free(opl3);
  • GPL/branches/uniaud32-2.0/alsa-kernel/drivers/opl3/opl3_midi.c

    r305 r399  
    618618        struct snd_opl3_voice *vp, *vp2;
    619619
    620         snd_assert(voice < MAX_OPL3_VOICES, return);
     620        if (snd_BUG_ON(voice >= MAX_OPL3_VOICES))
     621                return;
    621622
    622623        vp = &opl3->voices[voice];
     
    738739        struct snd_opl3_voice *vp;
    739740
    740         snd_assert(voice < MAX_OPL3_VOICES, return);
     741        if (snd_BUG_ON(voice >= MAX_OPL3_VOICES))
     742                return;
    741743
    742744        vp = &opl3->voices[voice];
  • GPL/branches/uniaud32-2.0/alsa-kernel/drivers/opl3/opl3_synth.c

    r305 r399  
    9393        void __user *argp = (void __user *)arg;
    9494
    95         snd_assert(opl3 != NULL, return -EINVAL);
     95        if (snd_BUG_ON(!opl3))
     96                return -EINVAL;
    9697
    9798        switch (cmd) {
Note: See TracChangeset for help on using the changeset viewer.