[alsa-cvslog] CVS: alsa-driver/lowlevel/pci ymfpci.c,1.90,1.91
Brought to you by:
perex
From: Jaroslav K. <pe...@us...> - 2001-07-31 08:33:57
|
Update of /cvsroot/alsa/alsa-driver/lowlevel/pci In directory usw-pr-cvs1:/tmp/cvs-serv7995 Modified Files: ymfpci.c Log Message: Some small fixes (rate & allocation) Index: ymfpci.c =================================================================== RCS file: /cvsroot/alsa/alsa-driver/lowlevel/pci/ymfpci.c,v retrieving revision 1.90 retrieving revision 1.91 diff -u -r1.90 -r1.91 --- ymfpci.c 2001/07/26 12:02:53 1.90 +++ ymfpci.c 2001/07/31 08:33:54 1.91 @@ -130,7 +130,7 @@ case 22050: return 0x07599a00; case 32000: return 0x0aaaab00; case 44100: return 0x0eb33300; - default: return ((rate << 16) / 48000) << 12; + default: return ((rate << 16) / 375) << 5; } } @@ -1622,12 +1622,12 @@ chip->work_ptr_addr = ptr_addr; chip->work_ptr_size = size; + ptr += (playback_ctrl_size + 0x00ff) & ~0x00ff; + ptr_addr += (playback_ctrl_size + 0x00ff) & ~0x00ff; chip->bank_base_playback = ptr; chip->bank_base_playback_addr = ptr_addr; chip->ctrl_playback = (u32 *)ptr; chip->ctrl_playback[0] = cpu_to_le32(YDSXG_PLAYBACK_VOICES); - ptr += (playback_ctrl_size + 0x00ff) & ~0x00ff; - ptr_addr += (playback_ctrl_size + 0x00ff) & ~0x00ff; for (voice = 0; voice < YDSXG_PLAYBACK_VOICES; voice++) { chip->voices[voice].number = voice; chip->voices[voice].bank = (snd_ymfpci_playback_bank_t *)ptr; |