Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148377
b: refs/heads/master
c: 514eef9
h: refs/heads/master
i:
  148375: 2349db4
v: v3
  • Loading branch information
Takashi Iwai committed Jun 8, 2009
1 parent 3c12710 commit d33ac99
Show file tree
Hide file tree
Showing 12 changed files with 302 additions and 298 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: 4836ac655410e7f126d316b0be062b38746f7529
refs/heads/master: 514eef9c2a711b4c24b97bb456d39695a6fe1775
62 changes: 31 additions & 31 deletions trunk/sound/pci/ctxfi/ctamixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ static struct rsc_ops amixer_basic_rsc_ops = {

static int amixer_set_input(struct amixer *amixer, struct rsc *rsc)
{
struct hw *hw = NULL;
struct hw *hw;

hw = (struct hw *)amixer->rsc.hw;
hw = amixer->rsc.hw;
hw->amixer_set_mode(amixer->rsc.ctrl_blk, AMIXER_Y_IMMEDIATE);
amixer->input = rsc;
if (NULL == rsc)
Expand All @@ -75,29 +75,29 @@ static int amixer_set_input(struct amixer *amixer, struct rsc *rsc)
/* y is a 14-bit immediate constant */
static int amixer_set_y(struct amixer *amixer, unsigned int y)
{
struct hw *hw = NULL;
struct hw *hw;

hw = (struct hw *)amixer->rsc.hw;
hw = amixer->rsc.hw;
hw->amixer_set_y(amixer->rsc.ctrl_blk, y);

return 0;
}

static int amixer_set_invalid_squash(struct amixer *amixer, unsigned int iv)
{
struct hw *hw = NULL;
struct hw *hw;

hw = (struct hw *)amixer->rsc.hw;
hw = amixer->rsc.hw;
hw->amixer_set_iv(amixer->rsc.ctrl_blk, iv);

return 0;
}

static int amixer_set_sum(struct amixer *amixer, struct sum *sum)
{
struct hw *hw = NULL;
struct hw *hw;

hw = (struct hw *)amixer->rsc.hw;
hw = amixer->rsc.hw;
amixer->sum = sum;
if (NULL == sum) {
hw->amixer_set_se(amixer->rsc.ctrl_blk, 0);
Expand All @@ -112,13 +112,13 @@ static int amixer_set_sum(struct amixer *amixer, struct sum *sum)

static int amixer_commit_write(struct amixer *amixer)
{
struct hw *hw = NULL;
unsigned int index = 0;
int i = 0;
struct rsc *input = NULL;
struct sum *sum = NULL;
struct hw *hw;
unsigned int index;
int i;
struct rsc *input;
struct sum *sum;

hw = (struct hw *)amixer->rsc.hw;
hw = amixer->rsc.hw;
input = amixer->input;
sum = amixer->sum;

Expand Down Expand Up @@ -158,10 +158,10 @@ static int amixer_commit_write(struct amixer *amixer)

static int amixer_commit_raw_write(struct amixer *amixer)
{
struct hw *hw = NULL;
unsigned int index = 0;
struct hw *hw;
unsigned int index;

hw = (struct hw *)amixer->rsc.hw;
hw = amixer->rsc.hw;
index = amixer->rsc.ops->output_slot(&amixer->rsc);
hw->amixer_commit_write(hw, index, amixer->rsc.ctrl_blk);

Expand All @@ -170,9 +170,9 @@ static int amixer_commit_raw_write(struct amixer *amixer)

static int amixer_get_y(struct amixer *amixer)
{
struct hw *hw = NULL;
struct hw *hw;

hw = (struct hw *)amixer->rsc.hw;
hw = amixer->rsc.hw;
return hw->amixer_get_y(amixer->rsc.ctrl_blk);
}

Expand Down Expand Up @@ -201,7 +201,7 @@ static int amixer_rsc_init(struct amixer *amixer,
const struct amixer_desc *desc,
struct amixer_mgr *mgr)
{
int err = 0;
int err;

err = rsc_init(&amixer->rsc, amixer->idx[0],
AMIXER, desc->msr, mgr->mgr.hw);
Expand Down Expand Up @@ -233,9 +233,9 @@ static int get_amixer_rsc(struct amixer_mgr *mgr,
const struct amixer_desc *desc,
struct amixer **ramixer)
{
int err = 0, i = 0;
unsigned int idx = 0;
struct amixer *amixer = NULL;
int err, i;
unsigned int idx;
struct amixer *amixer;
unsigned long flags;

*ramixer = NULL;
Expand Down Expand Up @@ -284,7 +284,7 @@ static int get_amixer_rsc(struct amixer_mgr *mgr,
static int put_amixer_rsc(struct amixer_mgr *mgr, struct amixer *amixer)
{
unsigned long flags;
int i = 0;
int i;

spin_lock_irqsave(&mgr->mgr_lock, flags);
for (i = 0; i < amixer->rsc.msr; i++)
Expand All @@ -299,7 +299,7 @@ static int put_amixer_rsc(struct amixer_mgr *mgr, struct amixer *amixer)

int amixer_mgr_create(void *hw, struct amixer_mgr **ramixer_mgr)
{
int err = 0;
int err;
struct amixer_mgr *amixer_mgr;

*ramixer_mgr = NULL;
Expand Down Expand Up @@ -367,7 +367,7 @@ static int sum_rsc_init(struct sum *sum,
const struct sum_desc *desc,
struct sum_mgr *mgr)
{
int err = 0;
int err;

err = rsc_init(&sum->rsc, sum->idx[0], SUM, desc->msr, mgr->mgr.hw);
if (err)
Expand All @@ -388,9 +388,9 @@ static int get_sum_rsc(struct sum_mgr *mgr,
const struct sum_desc *desc,
struct sum **rsum)
{
int err = 0, i = 0;
unsigned int idx = 0;
struct sum *sum = NULL;
int err, i;
unsigned int idx;
struct sum *sum;
unsigned long flags;

*rsum = NULL;
Expand Down Expand Up @@ -438,7 +438,7 @@ static int get_sum_rsc(struct sum_mgr *mgr,
static int put_sum_rsc(struct sum_mgr *mgr, struct sum *sum)
{
unsigned long flags;
int i = 0;
int i;

spin_lock_irqsave(&mgr->mgr_lock, flags);
for (i = 0; i < sum->rsc.msr; i++)
Expand All @@ -453,7 +453,7 @@ static int put_sum_rsc(struct sum_mgr *mgr, struct sum *sum)

int sum_mgr_create(void *hw, struct sum_mgr **rsum_mgr)
{
int err = 0;
int err;
struct sum_mgr *sum_mgr;

*rsum_mgr = NULL;
Expand Down
Loading

0 comments on commit d33ac99

Please sign in to comment.