Skip to content

Commit 2967d68

Browse files
renamed project to vsbhda
1 parent 1f774f2 commit 2967d68

25 files changed

+134
-89
lines changed

MPXPLAY/AU_CARDS.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <stdint.h>
1919
#include <stdbool.h>
2020

21-
#include "SBEMUCFG.H"
21+
#include "CONFIG.H"
2222
#include "MPXPLAY.H"
2323
#include "DMAIRQ.H"
2424
#ifndef SBEMU

MPXPLAY/CV_FREQ.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <stdint.h>
2020
//#include <assert.h>
2121

22-
#include "SBEMUCFG.H"
22+
#include "CONFIG.H"
2323
#include "MPXPLAY.H"
2424

2525
#define MALLOCSTATIC 1

MPXPLAY/DMAIRQ.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <stdint.h>
2020
#include <string.h>
2121

22-
#include "SBEMUCFG.H"
22+
#include "CONFIG.H"
2323
#include "MPXPLAY.H"
2424
#include "DMAIRQ.H"
2525

MPXPLAY/NF_DPMI.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
#include <dpmi.h>
2020
#include <sys/exceptn.h>
2121

22+
#include "CONFIG.H"
2223
#include "NEWFUNC.H"
23-
#include "SBEMUCFG.H"
2424

2525
#define PHYSICAL_MAP_COUNT 64
2626

MPXPLAY/SC_E1371.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <stdint.h>
1919
#include <stdio.h>
2020

21-
#include "SBEMUCFG.H"
21+
#include "CONFIG.H"
2222
#include "MPXPLAY.H"
2323
#include "DMAIRQ.H"
2424
#include "PCIBIOS.H"

MPXPLAY/SC_ICH.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <time.h>
2020
#include <string.h>
2121

22-
#include "SBEMUCFG.H"
22+
#include "CONFIG.H"
2323
#include "MPXPLAY.H"
2424
#include "DMAIRQ.H"
2525
#include "PCIBIOS.H"

MPXPLAY/SC_INTHD.C

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <stdio.h>
2020
#include <string.h>
2121

22-
#include "SBEMUCFG.H"
22+
#include "CONFIG.H"
2323
#include "MPXPLAY.H"
2424
#include "DMAIRQ.H"
2525
#include "PCIBIOS.H"
@@ -977,6 +977,8 @@ static void azx_setup_periods(struct intelhd_card_s *card)
977977
}
978978
}
979979

980+
/* called by HDA_setrate() */
981+
980982
static void azx_setup_controller(struct intelhd_card_s *card)
981983
/////////////////////////////////////////////////////////////
982984
{
@@ -1012,7 +1014,7 @@ static void azx_setup_controller(struct intelhd_card_s *card)
10121014
azx_sd_writel(card, SD_BDLPU, 0); // upper 32 bit
10131015
//azx_sd_writel(card, SD_CTL,azx_sd_readl(card, SD_CTL) | SD_INT_MASK);
10141016
#ifdef SBEMU
1015-
azx_sd_writel(card, SD_CTL,azx_sd_readl(card, SD_CTL) | SD_INT_COMPLETE);
1017+
//azx_sd_writel(card, SD_CTL,azx_sd_readl(card, SD_CTL) | SD_INT_COMPLETE);
10161018
#endif
10171019
pds_delay_10us(100);
10181020

@@ -1420,12 +1422,13 @@ static void HDA_start(struct mpxplay_audioout_info_s *aui)
14201422
{
14211423
struct intelhd_card_s *card = aui->card_private_data;
14221424
unsigned int timeout;
1425+
14231426
dbgprintf("HDA_start\n" );
1424-
//const unsigned int stream_index=0;
1427+
//const unsigned int stream_index = 0;
14251428
//azx_writeb(card, INTCTL, azx_readb(card, INTCTL) | (1 << stream_index)); // enable SIE
1426-
//azx_sd_writeb(card, SD_CTL, azx_sd_readb(card, SD_CTL) | SD_CTL_DMA_START | SD_INT_MASK); // start DMA
14271429

1428-
azx_sd_writeb(card, SD_CTL, azx_sd_readb(card, SD_CTL) | SD_CTL_DMA_START); // start DMA
1430+
azx_sd_writeb(card, SD_CTL, azx_sd_readb(card, SD_CTL) | SD_CTL_DMA_START | SD_INT_MASK); // start DMA
1431+
//azx_sd_writeb(card, SD_CTL, azx_sd_readb(card, SD_CTL) | SD_CTL_DMA_START); // start DMA
14291432

14301433
timeout = 500;
14311434
while(!(azx_sd_readb(card, SD_CTL) & SD_CTL_DMA_START) && --timeout) // wait for DMA start
@@ -1439,7 +1442,9 @@ static void HDA_stop(struct mpxplay_audioout_info_s *aui)
14391442
{
14401443
struct intelhd_card_s *card = aui->card_private_data;
14411444
unsigned int timeout;
1442-
//const unsigned int stream_index=0;
1445+
1446+
dbgprintf("HDA_start\n" );
1447+
14431448
azx_sd_writeb(card, SD_CTL, azx_sd_readb(card, SD_CTL) & ~(SD_CTL_DMA_START | SD_INT_MASK)); // stop DMA
14441449

14451450
timeout = 200;
@@ -1449,6 +1454,8 @@ static void HDA_stop(struct mpxplay_audioout_info_s *aui)
14491454
pds_delay_10us(100);
14501455

14511456
//azx_sd_writeb( card, SD_STS, SD_INT_MASK); // to be sure
1457+
1458+
//const unsigned int stream_index = 0;
14521459
//azx_writeb( card, INTCTL, azx_readb(card, INTCTL) & ~(1 << stream_index));
14531460
}
14541461

@@ -1494,7 +1501,7 @@ static int HDA_IRQRoutine(mpxplay_audioout_info_s* aui)
14941501
///////////////////////////////////////////////////////////
14951502
{
14961503
struct intelhd_card_s *card=aui->card_private_data;
1497-
int status = azx_sd_readb(card, SD_STS)&SD_INT_MASK;
1504+
int status = azx_sd_readb(card, SD_STS) & SD_INT_MASK;
14981505
if(status)
14991506
azx_sd_writeb(card, SD_STS, status); //ack all
15001507

MPXPLAY/SC_INTHD.H

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,8 +513,7 @@ enum {
513513
#define SD_INT_DESC_ERR 0x10 /* descriptor error interrupt */
514514
#define SD_INT_FIFO_ERR 0x08 /* FIFO error interrupt */
515515
#define SD_INT_COMPLETE 0x04 /* completion interrupt */
516-
#define SD_INT_MASK (SD_INT_DESC_ERR|SD_INT_FIFO_ERR|\
517-
SD_INT_COMPLETE)
516+
#define SD_INT_MASK (SD_INT_DESC_ERR | SD_INT_FIFO_ERR | SD_INT_COMPLETE)
518517

519518
#define RIRB_INT_MASK 0x05
520519

MPXPLAY/SC_SBL24.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#include <stdint.h>
1919

20-
#include "SBEMUCFG.H"
20+
#include "CONFIG.H"
2121
#include "MPXPLAY.H"
2222
#include "DMAIRQ.H"
2323
#include "PCIBIOS.H"

MPXPLAY/SC_SBLIV.C

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <stdint.h>
2020
#include <stdio.h>
2121

22-
#include "SBEMUCFG.H"
22+
#include "CONFIG.H"
2323
#include "MPXPLAY.H"
2424
#include "DMAIRQ.H"
2525
#include "PCIBIOS.H"

0 commit comments

Comments
 (0)