Skip to content

Commit

Permalink
Re-enable sound initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindbohler committed Sep 29, 2024
1 parent 1f11829 commit 7297d3f
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions seabios/src/llama/llama_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,32 +104,32 @@ void llama_boot(llama_bios_settings *lbs) {
}

// First, initialize the CS4237 with external FM enabled
// cs4237_hostload(lbs, 1);
// cs4237_slam_configuration(lbs);
// lbs->cs4237_ext_fm_present = cs4237_test_opl3(lbs);
// if (lbs->cs4237_ext_fm.value == 0 || lbs->cs4237_ext_fm_present == 0) {
// // If the user has disabled external FM or it's not present,
// // initialize the CS4237 with internal FM enabled
// cs4237_hostload(lbs, 0);
// cs4237_slam_configuration(lbs);
//}
// cs4237_setup_mixer(lbs);
// if (lbs->cs4237_digital.value) {
// cs4237_enable_digital_output(lbs);
//}
cs4237_hostload(lbs, 1);
cs4237_slam_configuration(lbs);
lbs->cs4237_ext_fm_present = cs4237_test_opl3(lbs);
if (lbs->cs4237_ext_fm.value == 0 || lbs->cs4237_ext_fm_present == 0) {
// If the user has disabled external FM or it's not present,
// initialize the CS4237 with internal FM enabled
cs4237_hostload(lbs, 0);
cs4237_slam_configuration(lbs);
}
cs4237_setup_mixer(lbs);
if (lbs->cs4237_digital.value) {
cs4237_enable_digital_output(lbs);
}

// printf("\n\nCrystal CS4237 Initialized\nFM Synthesizer: ");
// if (lbs->cs4237_ext_fm.value && lbs->cs4237_ext_fm_present) {
// printf("OPL3 module");
// } else {
// printf("Internal");
// }
// printf("\nDigital S/PDIF output: ");
// if (lbs->cs4237_digital.value) {
// printf("Enabled");
// } else {
// printf("Disabled");
// }
printf("\n\nCrystal CS4237 Initialized\nFM Synthesizer: ");
if (lbs->cs4237_ext_fm.value && lbs->cs4237_ext_fm_present) {
printf("OPL3 module");
} else {
printf("Internal");
}
printf("\nDigital S/PDIF output: ");
if (lbs->cs4237_digital.value) {
printf("Enabled");
} else {
printf("Disabled");
}

printf("\n\nEMC2303 Fan Controller ");
if (llama_get_emc_product_id_reg() == 0x35) {
Expand Down

0 comments on commit 7297d3f

Please sign in to comment.