mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:45:41 +01:00
aplay: allow to compile with older alsa-lib (subformat)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
d55cd9fcd9
commit
8e6351f19d
1 changed files with 4 additions and 0 deletions
|
@ -641,8 +641,12 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case OPT_SUBFORMAT:
|
case OPT_SUBFORMAT:
|
||||||
|
#if SND_LIB_VER(1, 2, 10) < SND_LIB_VERSION
|
||||||
rhwparams.subformat = snd_pcm_subformat_value(optarg);
|
rhwparams.subformat = snd_pcm_subformat_value(optarg);
|
||||||
if (rhwparams.subformat == SND_PCM_SUBFORMAT_UNKNOWN) {
|
if (rhwparams.subformat == SND_PCM_SUBFORMAT_UNKNOWN) {
|
||||||
|
#else
|
||||||
|
if (strcasecmp(optarg, "std") != 0 && strcasecmp(optarg, "standard") != 0) {
|
||||||
|
#endif
|
||||||
error(_("wrong extended subformat '%s'"), optarg);
|
error(_("wrong extended subformat '%s'"), optarg);
|
||||||
prg_exit(EXIT_FAILURE);
|
prg_exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue