Ignore:
Timestamp:
Dec 11, 2005, 5:57:39 PM (20 years ago)
Author:
vladest
Message:

Latest update from ALSA. some intial > 15 interrupts support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/include/sound/asound.h

    r33 r34  
    5555#ifndef __bitwise
    5656#define __bitwise
     57#endif
     58
     59#ifdef TARGET_OS2
     60#define SNDRV_PCM_VOL_FRONT_LEFT        0
     61#define SNDRV_PCM_VOL_FRONT_RIGHT       1
     62#define SNDRV_PCM_VOL_REAR_LEFT         2
     63#define SNDRV_PCM_VOL_REAR_RIGHT        3
     64#define SNDRV_PCM_VOL_CENTER            4
     65#define SNDRV_PCM_VOL_LFE               5
     66
     67#define SNDRV_PCM_VOL_MAX               100
     68
     69struct snd_pcm_volume {
     70        int nrchannels;
     71        int volume[6];
     72};
    5773#endif
    5874
     
    314330#define SNDRV_PCM_HW_PARAM_ACCESS       ((__force snd_pcm_hw_param_t) 0) /* Access type */
    315331#define SNDRV_PCM_HW_PARAM_FORMAT       ((__force snd_pcm_hw_param_t) 1) /* Format */
    316 #define SNDRV_PCM_HW_PARAM_SUBFORMAT    ((__force snd_pcm_hw_param_t) 2) /* Subformat */
     332#ifdef TARGET_OS2
     333#define SNDRV_PCM_HW_PARAM_RATE_MASK    ((__force snd_pcm_hw_param_t) 2) /* Format */
     334#endif
     335#define SNDRV_PCM_HW_PARAM_SUBFORMAT    ((__force snd_pcm_hw_param_t) 3) /* Subformat */
    317336#define SNDRV_PCM_HW_PARAM_FIRST_MASK   SNDRV_PCM_HW_PARAM_ACCESS
    318337#define SNDRV_PCM_HW_PARAM_LAST_MASK    SNDRV_PCM_HW_PARAM_SUBFORMAT
     
    856875        SNDRV_CTL_IOCTL_RAWMIDI_PREFER_SUBDEVICE = _IOW('U', 0x42, int),
    857876        SNDRV_CTL_IOCTL_POWER = _IOWR('U', 0xd0, int),
    858         SNDRV_CTL_IOCTL_POWER_STATE = _IOR('U', 0xd1, int),
     877        SNDRV_CTL_IOCTL_POWER_STATE = _IOR('U', 0xd1, int),
     878#ifdef TARGET_OS2
     879        SNDRV_PCM_IOCTL_SETVOLUME = _IOW('A', 0x62, struct snd_pcm_volume),
     880        SNDRV_PCM_IOCTL_GETVOLUME = _IOR('A', 0x63, struct snd_pcm_volume),
     881#endif
     882
    859883};
    860884
     
    916940};
    917941
     942#define msleep(msecs) \
     943        do { \
     944                set_current_state(TASK_UNINTERRUPTIBLE); \
     945                schedule_timeout(((msecs) * HZ + 999) / 1000);  \
     946        } while (0)
     947
     948#define schedule_timeout_interruptible(x) \
     949 {set_current_state(TASK_INTERRUPTIBLE); schedule_timeout(x);}
     950#define schedule_timeout_uninterruptible(x) {set_current_state(TASK_UNINTERRUPTIBLE); schedule_timeout(x);}
     951
    918952#endif /* __SOUND_ASOUND_H */
Note: See TracChangeset for help on using the changeset viewer.