Fixed detection of whether or not standalone MPU-401 should be allowed.
This commit is contained in:
@@ -764,7 +764,7 @@ void mpu401_device_add(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
n = sound_card_getname(sound_card_current);
|
n = sound_card_get_internal_name(sound_card_current);
|
||||||
if (n != NULL)
|
if (n != NULL)
|
||||||
{
|
{
|
||||||
if (!strcmp(n, "sb16") || !strcmp(n, "sbawe32"))
|
if (!strcmp(n, "sb16") || !strcmp(n, "sbawe32"))
|
||||||
|
|||||||
@@ -1114,7 +1114,7 @@ int mpu401_present(void)
|
|||||||
{
|
{
|
||||||
char *n;
|
char *n;
|
||||||
|
|
||||||
n = sound_card_getname(temp_sound_card);
|
n = sound_card_get_internal_name(temp_sound_card);
|
||||||
if (n != NULL)
|
if (n != NULL)
|
||||||
{
|
{
|
||||||
if (!strcmp(n, "sb16") || !strcmp(n, "sbawe32"))
|
if (!strcmp(n, "sb16") || !strcmp(n, "sbawe32"))
|
||||||
@@ -1130,7 +1130,7 @@ int mpu401_standalone_allow(void)
|
|||||||
{
|
{
|
||||||
char *n;
|
char *n;
|
||||||
|
|
||||||
n = sound_card_getname(temp_sound_card);
|
n = sound_card_get_internal_name(temp_sound_card);
|
||||||
if (n != NULL)
|
if (n != NULL)
|
||||||
{
|
{
|
||||||
if (!strcmp(n, "sb16") || !strcmp(n, "sbawe32"))
|
if (!strcmp(n, "sb16") || !strcmp(n, "sbawe32"))
|
||||||
|
|||||||
Reference in New Issue
Block a user