mirror of
https://gitee.com/openharmony/third_party_alsa-lib
synced 2025-02-18 15:49:05 +00:00
Reset all protocol versions to 1.0.0.
This commit is contained in:
parent
a6cd55dcfe
commit
e4572ec719
@ -29,7 +29,7 @@
|
||||
#include "asoundlib.h"
|
||||
|
||||
#define SND_FILE_CONTROL "/dev/snd/controlC%i"
|
||||
#define SND_CTL_VERSION_MAX SND_PROTOCOL_VERSION(2, 1, 0)
|
||||
#define SND_CTL_VERSION_MAX SND_PROTOCOL_VERSION(1, 0, 0)
|
||||
|
||||
struct snd_ctl {
|
||||
int card;
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
static const char *snd_error_codes[] =
|
||||
{
|
||||
"Sound protocol isn't compatible"
|
||||
"Sound protocol is not compatible"
|
||||
};
|
||||
|
||||
const char *snd_strerror(int errnum)
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include "asoundlib.h"
|
||||
|
||||
#define SND_FILE_MIXER "/dev/snd/mixerC%iD%i"
|
||||
#define SND_MIXER_VERSION_MAX SND_PROTOCOL_VERSION(2, 2, 0)
|
||||
#define SND_MIXER_VERSION_MAX SND_PROTOCOL_VERSION(1, 0, 0)
|
||||
|
||||
struct snd_mixer {
|
||||
int card;
|
||||
|
@ -30,7 +30,7 @@
|
||||
#include "pcm_local.h"
|
||||
|
||||
#define SND_FILE_PCM "/dev/snd/pcmC%iD%i"
|
||||
#define SND_PCM_VERSION_MAX SND_PROTOCOL_VERSION(2, 0, 0)
|
||||
#define SND_PCM_VERSION_MAX SND_PROTOCOL_VERSION(1, 0, 0)
|
||||
|
||||
int snd_pcm_open(snd_pcm_t **handle, int card, int device, int mode)
|
||||
{
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include "asoundlib.h"
|
||||
|
||||
#define SND_FILE_PCM_LB "/proc/asound/%i/pcmloopD%iS%i%s"
|
||||
#define SND_PCM_LB_VERSION_MAX SND_PROTOCOL_VERSION(2, 0, 0)
|
||||
#define SND_PCM_LB_VERSION_MAX SND_PROTOCOL_VERSION(1, 0, 0)
|
||||
|
||||
struct snd_pcm_loopback {
|
||||
int card;
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include "asoundlib.h"
|
||||
|
||||
#define SND_FILE_RAWMIDI "/dev/snd/midiC%iD%i"
|
||||
#define SND_RAWMIDI_VERSION_MAX SND_PROTOCOL_VERSION(1, 1, 0)
|
||||
#define SND_RAWMIDI_VERSION_MAX SND_PROTOCOL_VERSION(1, 0, 0)
|
||||
|
||||
struct snd_rawmidi {
|
||||
int card;
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
#define SND_FILE_SEQ "/dev/snd/seq"
|
||||
#define SND_FILE_ALOADSEQ "/dev/aloadSEQ"
|
||||
#define SND_SEQ_VERSION_MAX SND_PROTOCOL_VERSION( 1, 0, 0 )
|
||||
#define SND_SEQ_VERSION_MAX SND_PROTOCOL_VERSION(1, 0, 0)
|
||||
#define SND_SEQ_OBUF_SIZE (16*1024) /* should be configurable */
|
||||
#define SND_SEQ_IBUF_SIZE (4*1024) /* should be configurable */
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include "asoundlib.h"
|
||||
|
||||
#define SND_FILE_TIMER "/dev/snd/timer"
|
||||
#define SND_TIMER_VERSION_MAX SND_PROTOCOL_VERSION(1, 1, 0)
|
||||
#define SND_TIMER_VERSION_MAX SND_PROTOCOL_VERSION(1, 0, 0)
|
||||
|
||||
struct snd_timer {
|
||||
int fd;
|
||||
|
Loading…
x
Reference in New Issue
Block a user