mirror of
https://github.com/alsa-project/alsa-utils
synced 2025-01-03 08:49:45 +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;
|
snd_ctl_switch_t *sw = (snd_ctl_switch_t *)Xswitch;
|
||||||
unsigned int xx;
|
unsigned int xx;
|
||||||
|
|
||||||
if ( sw -> type != SND_CTL_SW_TYPE_BYTE ||
|
if ( sw -> type != SND_CTL_SW_TYPE_BYTE &&
|
||||||
sw -> type != SND_CTL_SW_TYPE_WORD ||
|
sw -> type != SND_CTL_SW_TYPE_WORD &&
|
||||||
sw -> type != SND_CTL_SW_TYPE_DWORD )
|
sw -> type != SND_CTL_SW_TYPE_DWORD )
|
||||||
yyerror( "Switch '%s' isn't integer type...", sw -> name );
|
yyerror( "Switch '%s' isn't integer type...", sw -> name );
|
||||||
if ( val < sw -> low || val > sw -> high )
|
if ( val < sw -> low || val > sw -> high )
|
||||||
|
|
Loading…
Reference in a new issue