summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/sound/pcm/dsp.c4
-rw-r--r--sys/sys/soundcard.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c
index 979f0ed..56f50a7 100644
--- a/sys/dev/sound/pcm/dsp.c
+++ b/sys/dev/sound/pcm/dsp.c
@@ -1809,8 +1809,8 @@ dspfound:
ai->max_channels = maxch;
ai->nrates = chn_getrates(ch, &rates);
- if (ai->nrates > MAX_SAMPLE_RATES)
- ai->nrates = MAX_SAMPLE_RATES;
+ if (ai->nrates > OSS_MAX_SAMPLE_RATES)
+ ai->nrates = OSS_MAX_SAMPLE_RATES;
for (i = 0; i < ai->nrates; i++)
ai->rates[i] = rates[i];
diff --git a/sys/sys/soundcard.h b/sys/sys/soundcard.h
index a43952f..0342da3 100644
--- a/sys/sys/soundcard.h
+++ b/sys/sys/soundcard.h
@@ -1769,9 +1769,9 @@ typedef struct oss_audioinfo
int binding; /* DSP_BIND_FRONT, etc. 0 means undefined */
int rate_source;
char handle[32];
- #define MAX_SAMPLE_RATES 20 /* Cannot be changed */
+ #define OSS_MAX_SAMPLE_RATES 20 /* Cannot be changed */
unsigned int nrates;
- unsigned int rates[MAX_SAMPLE_RATES]; /* Please read the manual before using these */
+ unsigned int rates[OSS_MAX_SAMPLE_RATES]; /* Please read the manual before using these */
oss_longname_t song_name; /* Song name (if given) */
oss_label_t label; /* Device label (if given) */
int latency; /* In usecs, -1=unknown */
OpenPOWER on IntegriCloud