New updated mixer interface and better protocol handling...

This commit is contained in:
Jaroslav Kysela 1998-08-24 16:23:22 +00:00
parent e093a81e5e
commit 44582b2fbe
7 changed files with 63 additions and 18 deletions

View file

@ -49,7 +49,8 @@ int snd_ctl_open( void **handle, int card )
close( fd );
return -errno;
}
if ( ver > SND_CTL_VERSION_MAX ) return -SND_ERROR_UNCOMPATIBLE_VERSION;
if ( SND_PROTOCOL_UNCOMPATIBLE( ver, SND_CTL_VERSION_MAX ) )
return -SND_ERROR_UNCOMPATIBLE_VERSION;
ctl = (snd_ctl_t *)calloc( 1, sizeof( snd_ctl_t ) );
if ( ctl == NULL ) {
close( fd );