Phase 2 (Bug fix and Sound).

This commit is contained in:
OBattler
2022-04-04 18:15:41 +02:00
parent 3cec306ecf
commit 8714f79693
2 changed files with 3 additions and 2 deletions

View File

@@ -343,6 +343,7 @@ int
device_has_config(const device_t *d)
{
int c = 0;
device_config_t *config;
if (d == NULL)
return 0;
@@ -350,7 +351,7 @@ device_has_config(const device_t *d)
if (d->config == NULL)
return 0;
config = d->config;
config = (device_config_t *) d->config;
while (config->type != -1) {
if (config->type != CONFIG_MAC)

View File

@@ -186,7 +186,7 @@ sound_card_has_config(int card)
{
if (!sound_cards[card].device)
return 0;
return sound_cards[card].device->config ? 1 : 0;
return device_has_config(sound_cards[card].device) ? 1 : 0;
}
char *