mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Fixes in case...
This commit is contained in:
parent
5b771eb68e
commit
0c10299487
1 changed files with 6 additions and 1 deletions
|
|
@ -353,6 +353,7 @@ int snd_pcm_plugin_build_linear(int src_format, int dst_format, snd_pcm_plugin_t
|
||||||
case 32: cmd = _16BIT_32BIT; break;
|
case 32: cmd = _16BIT_32BIT; break;
|
||||||
default: return -EINVAL;
|
default: return -EINVAL;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case 24:
|
case 24:
|
||||||
switch (wide2) {
|
switch (wide2) {
|
||||||
case 8: cmd = _24BIT_8BIT; break;
|
case 8: cmd = _24BIT_8BIT; break;
|
||||||
|
|
@ -360,6 +361,7 @@ int snd_pcm_plugin_build_linear(int src_format, int dst_format, snd_pcm_plugin_t
|
||||||
case 32: cmd = _24BIT_32BIT; break;
|
case 32: cmd = _24BIT_32BIT; break;
|
||||||
default: return -EINVAL;
|
default: return -EINVAL;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case 32:
|
case 32:
|
||||||
switch (wide2) {
|
switch (wide2) {
|
||||||
case 8: cmd = _32BIT_8BIT; break;
|
case 8: cmd = _32BIT_8BIT; break;
|
||||||
|
|
@ -367,8 +369,11 @@ int snd_pcm_plugin_build_linear(int src_format, int dst_format, snd_pcm_plugin_t
|
||||||
case 24: cmd = _32BIT_24BIT; break;
|
case 24: cmd = _32BIT_24BIT; break;
|
||||||
default: return -EINVAL;
|
default: return -EINVAL;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
plugin = snd_pcm_plugin_build("wide conversion",
|
plugin = snd_pcm_plugin_build("linear format conversion",
|
||||||
sizeof(struct linear_private_data));
|
sizeof(struct linear_private_data));
|
||||||
if (plugin == NULL)
|
if (plugin == NULL)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue