Skip to content

Commit

Permalink
HDA: warning fix; SBLIVE: improve sound timing;
Browse files Browse the repository at this point in the history
  • Loading branch information
crazii committed Jan 14, 2024
1 parent 76a9273 commit 6bb7c0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions mpxplay/au_cards/sc_inthd.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#ifdef AU_CARDS_LINK_IHD

#include <string.h>
#include <dos.h>
#include "dmairq.h"
#include "pcibios.h"
#include "sc_inthd.h"
Expand Down Expand Up @@ -936,7 +937,7 @@ static unsigned int snd_ihd_mixer_init(struct intelhd_card_s *card)
snd_hda_codec_write(card, card->afg_root_nodenum, 0, AC_VERB_SET_CODEC_RESET, 0);
delay(10);
snd_hda_codec_write(card, card->afg_root_nodenum, 0, AC_VERB_SET_CODEC_RESET, 0);
delay(200); //required for D3cold to D0
delay(200); //requited for D3cold to D0
snd_hda_codec_write(card, card->afg_root_nodenum, 0, AC_VERB_SET_POWER_STATE, 0/*d0: full power*/);
#endif

Expand All @@ -948,7 +949,7 @@ static unsigned int snd_ihd_mixer_init(struct intelhd_card_s *card)
#endif
}
#ifdef SBEMU
delay(75); //spec required max time to full power on (D0)
delay(75); //spec require max to full power on (D0)
#endif

if(!snd_hda_parse_output(card))
Expand Down
2 changes: 1 addition & 1 deletion mpxplay/au_cards/sc_sbliv.c
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ static void snd_emu10kx_pcm_start_playback(struct emu10k1_card *card)
{
#ifdef SBEMU
emu10k1_writefn0(card, INTE, emu10k1_readfn0(card, INTE)|INTE_SAMPLERATETRACKER|INTE_INTERVALTIMERENB|INTE_FXDSPENABLE); //enable timer interrupt
emu10k1_writefn0(card, TIMER, 0x240); //set timer rate
emu10k1_writefn0(card, TIMER, TIMER_RATE); //set timer rate
#endif

snd_emu10k1_playback_start_voice(card,0,VOICE_FLAGS_MASTER);
Expand Down

0 comments on commit 6bb7c0f

Please sign in to comment.