mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
pcm: add 'default' case for switch statement
This commit fixes below compiler warnings.
pcm_direct.c: In function ‘snd1_pcm_direct_prepare’:
pcm_direct.c:821:2: warning: enumeration value ‘SND_PCM_STATE_PREPARED’ not handled in switch [-Wswitch]
switch (snd_pcm_state(dmix->spcm)) {
^
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
8870c11894
commit
16eb412043
1 changed files with 2 additions and 0 deletions
|
|
@ -830,6 +830,8 @@ int snd_pcm_direct_prepare(snd_pcm_t *pcm)
|
||||||
case SND_PCM_STATE_OPEN:
|
case SND_PCM_STATE_OPEN:
|
||||||
case SND_PCM_STATE_DISCONNECTED:
|
case SND_PCM_STATE_DISCONNECTED:
|
||||||
return -EBADFD;
|
return -EBADFD;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
snd_pcm_direct_check_interleave(dmix, pcm);
|
snd_pcm_direct_check_interleave(dmix, pcm);
|
||||||
dmix->state = SND_PCM_STATE_PREPARED;
|
dmix->state = SND_PCM_STATE_PREPARED;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue