X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fppc%2F8xx_io%2Fcs4218_tdm.c;h=8c7f28de26028b829844c089f3c9f43005dc342c;hb=5d0dd51ddb446e7c058023420f5b7d4404501980;hp=514e7de4055b25311d9dff914263f88885424b16;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/arch/ppc/8xx_io/cs4218_tdm.c b/arch/ppc/8xx_io/cs4218_tdm.c index 514e7de40..8c7f28de2 100644 --- a/arch/ppc/8xx_io/cs4218_tdm.c +++ b/arch/ppc/8xx_io/cs4218_tdm.c @@ -1619,7 +1619,7 @@ static ssize_t sound_copy_translate_read(const u_char *userPtr, static int mixer_open(struct inode *inode, struct file *file) { mixer.busy = 1; - return nonseekable_open(inode, file); + return 0; } @@ -2105,7 +2105,7 @@ static int sq_open(struct inode *inode, struct file *file) sound_set_format(AFMT_MU_LAW); } - return nonseekable_open(inode, file); + return 0; err_out_nobusy: if (file->f_mode & FMODE_WRITE) { @@ -2404,7 +2404,7 @@ static int state_open(struct inode *inode, struct file *file) len += sprintf(buffer+len, "\tsq.active = %d sq.syncing = %d\n", sq.active, sq.syncing); state.len = len; - return nonseekable_open(inode, file); + return 0; } @@ -2463,7 +2463,7 @@ static long long sound_lseek(struct file *file, long long offset, int orig) int __init tdm8xx_sound_init(void) { int i, has_sound; - uint dp_offset; + uint dp_addr, dp_mem; volatile uint *sirp; volatile cbd_t *bdp; volatile cpm8xx_t *cp; @@ -2525,14 +2525,15 @@ int __init tdm8xx_sound_init(void) /* We need to allocate a transmit and receive buffer * descriptors from dual port ram. */ - dp_addr = cpm_dpalloc(sizeof(cbd_t) * numReadBufs, 8); + dp_mem = m8xx_cpm_dpalloc(sizeof(cbd_t) * numReadBufs); + dp_addr = m8xx_cpm_dpram_offset(dp_mem); /* Set the physical address of the host memory * buffers in the buffer descriptors, and the * virtual address for us to work with. */ bdp = (cbd_t *)&cp->cp_dpmem[dp_addr]; - up->smc_rbase = dp_offset; + up->smc_rbase = dp_mem; rx_cur = rx_base = (cbd_t *)bdp; for (i=0; i<(numReadBufs-1); i++) { @@ -2547,10 +2548,11 @@ int __init tdm8xx_sound_init(void) /* Now, do the same for the transmit buffers. */ - dp_offset = cpm_dpalloc(sizeof(cbd_t) * numBufs, 8); + dp_mem = m8xx_cpm_dpalloc(sizeof(cbd_t) * numBufs); + dp_addr = m8xx_cpm_dpram_offset(dp_mem); bdp = (cbd_t *)&cp->cp_dpmem[dp_addr]; - up->smc_tbase = dp_offset; + up->smc_tbase = dp_mem; tx_cur = tx_base = (cbd_t *)bdp; for (i=0; i<(numBufs-1); i++) {