Skip to content

Commit

Permalink
Merge pull request #86 from jiyunomegami/forupstream2
Browse files Browse the repository at this point in the history
YMF: Disable HW FM/MPU if another card was selected
  • Loading branch information
crazii authored Feb 11, 2024
2 parents c2cfdc0 + 8bb6a10 commit cf51b24
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mpxplay/au_cards/sc_ymf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1302,6 +1302,12 @@ static int YMF_adetect (struct mpxplay_audioout_info_s *aui)
dumped = 1;
#endif

if (!(aui->card_select_index == 0 || aui->card_select_index == aui->card_test_index)) {
// Disable HW FM/MPU if another card was selected
main_hw_fmport = 0;
main_hw_mpuport = 0;
}

#if YMF_ENABLE_PCM
if (aui->card_handler == &YMFSB_sndcard_info)
return 1;
Expand Down

0 comments on commit cf51b24

Please sign in to comment.