summaryrefslogtreecommitdiffstats
path: root/Ensoniq
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-11-04 15:05:18 +0100
committerFulup Ar Foll <fulup@iot.bzh>2017-11-04 15:05:18 +0100
commitb93f9134f7342fcbf9fb15399e19f830401a7fe7 (patch)
tree73656f5afb700729301d0507e27782e3f393881c /Ensoniq
parente866930eade8dbc24e21b8f814d83fed4049e3df (diff)
Updated HAL to match with latest Alsa-Core API
Diffstat (limited to 'Ensoniq')
-rw-r--r--Ensoniq/EnsoniqHAL.c33
1 files changed, 24 insertions, 9 deletions
diff --git a/Ensoniq/EnsoniqHAL.c b/Ensoniq/EnsoniqHAL.c
index c91fc75..e5a79a4 100644
--- a/Ensoniq/EnsoniqHAL.c
+++ b/Ensoniq/EnsoniqHAL.c
@@ -138,15 +138,30 @@ STATIC alsaHalMapT alsaHalMap[]= {
},
// Bind with existing ones created by ALSA configuration (and linked to softvol) [0-255]
- { .tag=Guidance_Playback_Volume , .ctl={.name="Guidance_Volume", .minval=0, .maxval=255, .step=1, .value=204 } },
- { .tag=Entertainment_Playback_Volume , .ctl={.name="Entertainment_Volume", .minval=0, .maxval=255, .step=1, .value=204 } },
- { .tag=Notification_Playback_Volume , .ctl={.name="Notification_Volume", .minval=0, .maxval=255, .step=1, .value=204 } },
- { .tag=Communication_Playback_Volume , .ctl={.name="Communications_Volume", .minval=0, .maxval=255, .step=1, .value=204 } },
- { .tag=Warning_Playback_Volume , .ctl={.name="Warning_Volume", .minval=0, .maxval=255, .step=1, .value=204 } },
- { .tag=System_Playback_Volume , .ctl={.name="System_Volume", .minval=0, .maxval=255, .step=1, .value=204 } },
- { .tag=Startup_Playback_Volume , .ctl={.name="Startup_Volume", .minval=0, .maxval=255, .step=1, .value=204 } },
- { .tag=Shutdown_Playback_Volume , .ctl={.name="Shutdown_Volume", .minval=0, .maxval=255, .step=1, .value=204 } },
- // Could have similar controls for input side
+ { .tag=Guidance_Playback_Volume ,
+ .ctl={.name="Guidance_Volume",.numid=CTL_AUTO, .type=SND_CTL_ELEM_TYPE_INTEGER,.count=2, .maxval=255, .value=204 }
+ },
+ { .tag=Entertainment_Playback_Volume ,
+ .ctl={.name="Entertainment_Volume",.numid=CTL_AUTO, .type=SND_CTL_ELEM_TYPE_INTEGER,.count=2, .maxval=255, .value=204 }
+ },
+ { .tag=Notification_Playback_Volume ,
+ .ctl={.name="Notification_Volume",.numid=CTL_AUTO, .type=SND_CTL_ELEM_TYPE_INTEGER,.count=2, .maxval=255, .value=204 }
+ },
+ { .tag=Communication_Playback_Volume ,
+ .ctl={.name="Communications_Volume", .numid=CTL_AUTO, .type=SND_CTL_ELEM_TYPE_INTEGER,.count=2, .maxval=255, .value=204 }
+ },
+ { .tag=Warning_Playback_Volume ,
+ .ctl={.name="Warning_Volume",.numid=CTL_AUTO, .type=SND_CTL_ELEM_TYPE_INTEGER,.count=2, .maxval=255, .value=204}
+ },
+ { .tag=System_Playback_Volume ,
+ .ctl={.name="System_Volume", .numid=CTL_AUTO, .type=SND_CTL_ELEM_TYPE_INTEGER,.count=2, .maxval=255, .value=204 }
+ },
+ { .tag=Startup_Playback_Volume ,
+ .ctl={.name="Startup_Volume", .numid=CTL_AUTO, .type=SND_CTL_ELEM_TYPE_INTEGER,.count=2, .maxval=255, .value=204}
+ },
+ { .tag=Shutdown_Playback_Volume ,
+ .ctl={.name="Shutdown_Volume",.numid=CTL_AUTO, .type=SND_CTL_ELEM_TYPE_INTEGER,.count=2, .maxval=255, .value=204 }
+ },
{ .tag=EndHalCrlTag} /* marker for end of the array */
} ;