summaryrefslogtreecommitdiff
path: root/src/pcm/pcm_ioplug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcm/pcm_ioplug.c')
-rw-r--r--src/pcm/pcm_ioplug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pcm/pcm_ioplug.c b/src/pcm/pcm_ioplug.c
index a30efebd..393dfa40 100644
--- a/src/pcm/pcm_ioplug.c
+++ b/src/pcm/pcm_ioplug.c
@@ -146,7 +146,7 @@ static int snd_pcm_ioplug_prepare(snd_pcm_t *pcm)
return 0;
}
-static int hw_params_type[SND_PCM_IOPLUG_HW_PARAMS] = {
+static const int hw_params_type[SND_PCM_IOPLUG_HW_PARAMS] = {
[SND_PCM_IOPLUG_HW_ACCESS] = SND_PCM_HW_PARAM_ACCESS,
[SND_PCM_IOPLUG_HW_FORMAT] = SND_PCM_HW_PARAM_FORMAT,
[SND_PCM_IOPLUG_HW_CHANNELS] = SND_PCM_HW_PARAM_CHANNELS,
@@ -483,7 +483,7 @@ static int snd_pcm_ioplug_drain(snd_pcm_t *pcm)
static int snd_pcm_ioplug_pause(snd_pcm_t *pcm, int enable)
{
ioplug_priv_t *io = pcm->private_data;
- static snd_pcm_state_t states[2] = {
+ static const snd_pcm_state_t states[2] = {
SND_PCM_STATE_RUNNING, SND_PCM_STATE_PAUSED
};
int prev, err;