Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284109
b: refs/heads/master
c: 8e0874e
h: refs/heads/master
i:
  284107: 0231dff
v: v3
  • Loading branch information
Eliot Blennerhassett authored and Takashi Iwai committed Dec 22, 2011
1 parent a2e6e44 commit 48b579a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 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: cbd757daf5ed29618214b4ec4e298c79117baa8e
refs/heads/master: 8e0874ea72d9dde8d300a5d4d6dfa87238ff7a81
12 changes: 6 additions & 6 deletions trunk/sound/pci/asihpi/hpi6205.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,8 @@ static void outstream_host_buffer_allocate(struct hpi_adapter_obj *pao,
obj_index];
status->samples_processed = 0;
status->stream_state = HPI_STATE_STOPPED;
status->dSP_index = 0;
status->host_index = status->dSP_index;
status->dsp_index = 0;
status->host_index = status->dsp_index;
status->size_in_bytes = phm->u.d.u.buffer.buffer_size;
status->auxiliary_data_available = 0;

Expand Down Expand Up @@ -878,7 +878,7 @@ static void outstream_host_buffer_free(struct hpi_adapter_obj *pao,
static u32 outstream_get_space_available(struct hpi_hostbuffer_status *status)
{
return status->size_in_bytes - (status->host_index -
status->dSP_index);
status->dsp_index);
}

static void outstream_write(struct hpi_adapter_obj *pao,
Expand Down Expand Up @@ -1080,8 +1080,8 @@ static void instream_host_buffer_allocate(struct hpi_adapter_obj *pao,
obj_index];
status->samples_processed = 0;
status->stream_state = HPI_STATE_STOPPED;
status->dSP_index = 0;
status->host_index = status->dSP_index;
status->dsp_index = 0;
status->host_index = status->dsp_index;
status->size_in_bytes = phm->u.d.u.buffer.buffer_size;
status->auxiliary_data_available = 0;

Expand Down Expand Up @@ -1162,7 +1162,7 @@ static void instream_start(struct hpi_adapter_obj *pao,

static u32 instream_get_bytes_available(struct hpi_hostbuffer_status *status)
{
return status->dSP_index - status->host_index;
return status->dsp_index - status->host_index;
}

static void instream_read(struct hpi_adapter_obj *pao,
Expand Down
4 changes: 2 additions & 2 deletions trunk/sound/pci/asihpi/hpi_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ struct hpi_hostbuffer_status {
u32 auxiliary_data_available;
u32 stream_state;
/* DSP index in to the host bus master buffer. */
u32 dSP_index;
u32 dsp_index;
/* Host index in to the host bus master buffer. */
u32 host_index;
u32 size_in_bytes;
Expand Down Expand Up @@ -1461,7 +1461,7 @@ struct hpi_control_cache_pad {
/* 2^N sized FIFO buffer (internal to HPI<->DSP interaction) */
struct hpi_fifo_buffer {
u32 size;
u32 dSP_index;
u32 dsp_index;
u32 host_index;
};

Expand Down

0 comments on commit 48b579a

Please sign in to comment.