Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268332
b: refs/heads/master
c: 1531e88
h: refs/heads/master
v: v3
  • Loading branch information
Leonid V. Fedorenchik authored and Greg Kroah-Hartman committed Sep 12, 2011
1 parent 74e8275 commit b8a6988
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cc4600c9f46d83d2ced3310e05ea9e94a5c130fb
refs/heads/master: 1531e889ab5eaaa87f1a5440c7cbf4af3c1a9bb9
25 changes: 9 additions & 16 deletions trunk/drivers/staging/cx25821/cx25821-audio-upstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,8 @@ static void cx25821_audioups_handler(struct work_struct *work)
return;
}

cx25821_get_audio_data(dev,
dev->channels[dev->
_audio_upstream_channel].
sram_channels);
cx25821_get_audio_data(dev, dev->channels[dev->_audio_upstream_channel].
sram_channels);
}

int cx25821_openfile_audio(struct cx25821_dev *dev,
Expand Down Expand Up @@ -555,8 +553,7 @@ int cx25821_audio_upstream_irq(struct cx25821_dev *dev, int chan_num,
}
}
/* Jump to 2nd Audio Frame */
*(rp++) =
cpu_to_le32(RISC_JUMP | RISC_IRQ1 |
*(rp++) = cpu_to_le32(RISC_JUMP | RISC_IRQ1 |
RISC_CNT_RESET);
*(rp++) = cpu_to_le32(risc_phys_jump_addr);
*(rp++) = cpu_to_le32(0);
Expand Down Expand Up @@ -611,11 +608,8 @@ static irqreturn_t cx25821_upstream_irq_audio(int irq, void *dev_id)

/* Only deal with our interrupt */
if (audio_status) {
handled =
cx25821_audio_upstream_irq(dev,
dev->
_audio_upstream_channel,
audio_status);
handled = cx25821_audio_upstream_irq(dev,
dev->_audio_upstream_channel, audio_status);
}

if (handled < 0)
Expand Down Expand Up @@ -770,18 +764,17 @@ int cx25821_audio_upstream_init(struct cx25821_dev *dev, int channel_select)
memcpy(dev->_audiofilename, _defaultAudioName, str_length + 1);
}

retval =
cx25821_sram_channel_setup_upstream_audio(dev, sram_ch, _line_size,
0);
retval = cx25821_sram_channel_setup_upstream_audio(dev, sram_ch,
_line_size, 0);

dev->audio_upstream_riscbuf_size =
AUDIO_RISC_DMA_BUF_SIZE * NUM_AUDIO_PROGS +
RISC_SYNC_INSTRUCTION_SIZE;
dev->audio_upstream_databuf_size = AUDIO_DATA_BUF_SZ * NUM_AUDIO_PROGS;

/* Allocating buffers and prepare RISC program */
retval =
cx25821_audio_upstream_buffer_prepare(dev, sram_ch, _line_size);
retval = cx25821_audio_upstream_buffer_prepare(dev, sram_ch,
_line_size);
if (retval < 0) {
pr_err("%s: Failed to set up Audio upstream buffers!\n",
dev->name);
Expand Down

0 comments on commit b8a6988

Please sign in to comment.