summaryrefslogtreecommitdiff
path: root/src/pcm/pcm_mmap.c
diff options
context:
space:
mode:
authorAbramo Bagnara <abramo@alsa-project.org>2001-02-04 17:03:17 +0000
committerAbramo Bagnara <abramo@alsa-project.org>2001-02-04 17:03:17 +0000
commita7561a9c7eaf4f0a5daa48f049c3d1e9a503380b (patch)
treec008f59b70a8f23caa4eb9e9c3cf4ffb84ff885f /src/pcm/pcm_mmap.c
parent544718f10d04eae7bebae17e0f669ccba996994c (diff)
Corrected and completed encapsulation for PCM and rawmidi. Remove SND_PCM_HW_PARAM_* and use functions. Separated rawmidi info between streams
Diffstat (limited to 'src/pcm/pcm_mmap.c')
-rw-r--r--src/pcm/pcm_mmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pcm/pcm_mmap.c b/src/pcm/pcm_mmap.c
index af9f551e..89d1074a 100644
--- a/src/pcm/pcm_mmap.c
+++ b/src/pcm/pcm_mmap.c
@@ -227,7 +227,7 @@ int snd_pcm_channel_info(snd_pcm_t *pcm, snd_pcm_channel_info_t *info)
int snd_pcm_channel_info_shm(snd_pcm_t *pcm, snd_pcm_channel_info_t *info,
int shmid)
{
- switch (pcm->access) {
+ switch (snd_enum_to_int(pcm->access)) {
case SND_PCM_ACCESS_MMAP_INTERLEAVED:
case SND_PCM_ACCESS_RW_INTERLEAVED:
info->first = info->channel * pcm->sample_bits;
@@ -432,7 +432,7 @@ snd_pcm_sframes_t snd_pcm_write_mmap(snd_pcm_t *pcm, snd_pcm_uframes_t size)
snd_pcm_uframes_t cont = pcm->buffer_size - offset;
if (cont < frames)
frames = cont;
- switch (pcm->access) {
+ switch (snd_enum_to_int(pcm->access)) {
case SND_PCM_ACCESS_MMAP_INTERLEAVED:
{
const snd_pcm_channel_area_t *a = snd_pcm_mmap_areas(pcm);
@@ -478,7 +478,7 @@ snd_pcm_sframes_t snd_pcm_read_mmap(snd_pcm_t *pcm, snd_pcm_uframes_t size)
snd_pcm_uframes_t cont = pcm->buffer_size - offset;
if (cont < frames)
frames = cont;
- switch (pcm->access) {
+ switch (snd_enum_to_int(pcm->access)) {
case SND_PCM_ACCESS_MMAP_INTERLEAVED:
{
const snd_pcm_channel_area_t *a = snd_pcm_mmap_areas(pcm);