Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202035
b: refs/heads/master
c: 6d8c2ba
h: refs/heads/master
i:
  202033: 4aede2f
  202031: 3a4a419
v: v3
  • Loading branch information
Palash Bandyopadhyay authored and Mauro Carvalho Chehab committed Aug 2, 2010
1 parent 77f4819 commit 1b19c13
Show file tree
Hide file tree
Showing 28 changed files with 1,048 additions and 5,505 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: fab8125919c0fc724e11b184b1c812dfb8990549
refs/heads/master: 6d8c2ba1d154f2a94303fc92691887525065199e
11 changes: 5 additions & 6 deletions trunk/drivers/staging/cx25821/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
cx25821-objs := cx25821-core.o cx25821-cards.o cx25821-i2c.o cx25821-gpio.o \
cx25821-medusa-video.o cx25821-video.o cx25821-video0.o cx25821-video1.o \
cx25821-video2.o cx25821-video3.o cx25821-video4.o cx25821-video5.o \
cx25821-video6.o cx25821-video7.o cx25821-vidups9.o cx25821-vidups10.o \
cx25821-audups11.o cx25821-video-upstream.o cx25821-video-upstream-ch2.o \
cx25821-audio-upstream.o cx25821-videoioctl.o
cx25821-objs := cx25821-core.o cx25821-cards.o cx25821-i2c.o \
cx25821-gpio.o cx25821-medusa-video.o \
cx25821-video.o cx25821-video-upstream.o \
cx25821-video-upstream-ch2.o \
cx25821-audio-upstream.o

obj-$(CONFIG_VIDEO_CX25821) += cx25821.o
obj-$(CONFIG_VIDEO_CX25821_ALSA) += cx25821-alsa.o
Expand Down
16 changes: 9 additions & 7 deletions trunk/drivers/staging/cx25821/cx25821-audio-upstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ static __le32 *cx25821_risc_field_upstream_audio(struct cx25821_dev *dev,
{
unsigned int line;
struct sram_channel *sram_ch =
&dev->sram_channels[dev->_audio_upstream_channel_select];
dev->channels[dev->_audio_upstream_channel_select].sram_channels;
int offset = 0;

/* scan lines */
Expand Down Expand Up @@ -217,7 +217,7 @@ void cx25821_free_memory_audio(struct cx25821_dev *dev)
void cx25821_stop_upstream_audio(struct cx25821_dev *dev)
{
struct sram_channel *sram_ch =
&dev->sram_channels[AUDIO_UPSTREAM_SRAM_CHANNEL_B];
dev->channels[AUDIO_UPSTREAM_SRAM_CHANNEL_B].sram_channels;
u32 tmp = 0;

if (!dev->_audio_is_running) {
Expand Down Expand Up @@ -353,8 +353,9 @@ static void cx25821_audioups_handler(struct work_struct *work)
}

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

int cx25821_openfile_audio(struct cx25821_dev *dev,
Expand Down Expand Up @@ -505,7 +506,7 @@ int cx25821_audio_upstream_irq(struct cx25821_dev *dev, int chan_num,
{
int i = 0;
u32 int_msk_tmp;
struct sram_channel *channel = &dev->sram_channels[chan_num];
struct sram_channel *channel = dev->channels[chan_num].sram_channels;
dma_addr_t risc_phys_jump_addr;
__le32 *rp;

Expand Down Expand Up @@ -607,7 +608,8 @@ static irqreturn_t cx25821_upstream_irq_audio(int irq, void *dev_id)
if (!dev)
return -1;

sram_ch = &dev->sram_channels[dev->_audio_upstream_channel_select];
sram_ch = dev->channels[dev->_audio_upstream_channel_select].
sram_channels;

msk_stat = cx_read(sram_ch->int_mstat);
audio_status = cx_read(sram_ch->int_stat);
Expand Down Expand Up @@ -731,7 +733,7 @@ int cx25821_audio_upstream_init(struct cx25821_dev *dev, int channel_select)
}

dev->_audio_upstream_channel_select = channel_select;
sram_ch = &dev->sram_channels[channel_select];
sram_ch = dev->channels[channel_select].sram_channels;

/* Work queue */
INIT_WORK(&dev->_audio_work_entry, cx25821_audioups_handler);
Expand Down
13 changes: 7 additions & 6 deletions trunk/drivers/staging/cx25821/cx25821-audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,25 @@
#define LINES_PER_BUFFER 15
#define AUDIO_LINE_SIZE 128

//Number of buffer programs to use at once.
/* Number of buffer programs to use at once. */
#define NUMBER_OF_PROGRAMS 8

//Max size of the RISC program for a buffer. - worst case is 2 writes per line
// Space is also added for the 4 no-op instructions added on the end.

/*
Max size of the RISC program for a buffer. - worst case is 2 writes per line
Space is also added for the 4 no-op instructions added on the end.
*/
#ifndef USE_RISC_NOOP
#define MAX_BUFFER_PROGRAM_SIZE \
(2*LINES_PER_BUFFER*RISC_WRITE_INSTRUCTION_SIZE + RISC_WRITECR_INSTRUCTION_SIZE*4)
#endif

// MAE 12 July 2005 Try to use NOOP RISC instruction instead
/* MAE 12 July 2005 Try to use NOOP RISC instruction instead */
#ifdef USE_RISC_NOOP
#define MAX_BUFFER_PROGRAM_SIZE \
(2*LINES_PER_BUFFER*RISC_WRITE_INSTRUCTION_SIZE + RISC_NOOP_INSTRUCTION_SIZE*4)
#endif

//Sizes of various instructions in bytes. Used when adding instructions.
/* Sizes of various instructions in bytes. Used when adding instructions. */
#define RISC_WRITE_INSTRUCTION_SIZE 12
#define RISC_JUMP_INSTRUCTION_SIZE 12
#define RISC_SKIP_INSTRUCTION_SIZE 4
Expand Down
Loading

0 comments on commit 1b19c13

Please sign in to comment.