mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-08 22:15:42 +01:00
Fix for integer type switches...
This commit is contained in:
parent
350e1007e3
commit
290bc733a6
1 changed files with 2 additions and 2 deletions
|
@ -485,8 +485,8 @@ static void set_switch_integer( int val )
|
|||
snd_ctl_switch_t *sw = (snd_ctl_switch_t *)Xswitch;
|
||||
unsigned int xx;
|
||||
|
||||
if ( sw -> type != SND_CTL_SW_TYPE_BYTE ||
|
||||
sw -> type != SND_CTL_SW_TYPE_WORD ||
|
||||
if ( sw -> type != SND_CTL_SW_TYPE_BYTE &&
|
||||
sw -> type != SND_CTL_SW_TYPE_WORD &&
|
||||
sw -> type != SND_CTL_SW_TYPE_DWORD )
|
||||
yyerror( "Switch '%s' isn't integer type...", sw -> name );
|
||||
if ( val < sw -> low || val > sw -> high )
|
||||
|
|
Loading…
Reference in a new issue