return ENODEV for disconnected devices

Return -ENODEV instead of -ENOTTY for disconnected devices.
This commit is contained in:
Clemens Ladisch 2006-03-03 14:08:58 +00:00
parent d730ff3556
commit 8f61812f1c
5 changed files with 15 additions and 15 deletions

View file

@ -288,7 +288,7 @@ static inline int snd_pcm_check_error(snd_pcm_t *pcm, int err)
case SND_PCM_STATE_SUSPENDED:
return -ESTRPIPE;
case SND_PCM_STATE_DISCONNECTED:
return -ENOTTY;
return -ENODEV;
default:
break;
}