Skip to content

Commit

Permalink
CMI: bugfix onv TX/VX
Browse files Browse the repository at this point in the history
  • Loading branch information
crazii committed Jan 15, 2024
1 parent d44c305 commit 2cf938a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions mpxplay/au_cards/sc_cmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,8 @@ static void cmi8x38_chip_init(struct cmi8x38_card *cm)
case PCI_DEVICE_ID_CMEDIA_CM8738:
case PCI_DEVICE_ID_CMEDIA_CM8738B:
/* PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82437VX */
if(pcibios_FindDevice(0x8086, 0x7030,NULL)==PCI_SUCCESSFUL)
snd_cmipci_set_bit(cm, CM_REG_MISC_CTRL, CM_TXVX);
if(pcibios_FindDevice(0x8086, 0x7030,NULL)==PCI_DEVICE_NOTFOUND)
snd_cmipci_set_bit(cm, CM_REG_MISC_CTRL, CM_TXVX); //bit set means TX
break;
}

Expand Down Expand Up @@ -699,11 +699,7 @@ static void CMI8X38_setrate(struct mpxplay_audioout_info_s *aui)
int periods = max(1, dmabufsize / PCMBUFFERPAGESIZE);
card->dma_size = dmabufsize >> card->shift;
card->period_size = (dmabufsize/periods) >> card->shift;

aui->card_samples_per_int = card->period_size;

// set buffer address
snd_cmipci_write_32(card, CM_REG_CH0_FRAME1, (uint32_t) pds_cardmem_physicalptr(card->dm, card->pcmout_buffer));
#else
card->dma_size = dmabufsize >> card->shift;
card->period_size = dmabufsize >> card->shift;
Expand Down

0 comments on commit 2cf938a

Please sign in to comment.