Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124344
b: refs/heads/master
c: 9357b31
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Dec 30, 2008
1 parent d9e696c commit 1c69c63
Show file tree
Hide file tree
Showing 6 changed files with 280 additions and 194 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: 825c6aa2a874731fa5fbe96a9a0c8f2e27f6a0c0
refs/heads/master: 9357b31c6cbd3d1c279fb161b3bf179c53062365
14 changes: 7 additions & 7 deletions trunk/drivers/media/video/cx25840/cx25840-audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

static int set_audclk_freq(struct i2c_client *client, u32 freq)
{
struct cx25840_state *state = i2c_get_clientdata(client);
struct cx25840_state *state = to_state(i2c_get_clientdata(client));

if (freq != 32000 && freq != 44100 && freq != 48000)
return -EINVAL;
Expand Down Expand Up @@ -193,7 +193,7 @@ static int set_audclk_freq(struct i2c_client *client, u32 freq)

void cx25840_audio_set_path(struct i2c_client *client)
{
struct cx25840_state *state = i2c_get_clientdata(client);
struct cx25840_state *state = to_state(i2c_get_clientdata(client));

/* assert soft reset */
cx25840_and_or(client, 0x810, ~0x1, 0x01);
Expand Down Expand Up @@ -235,7 +235,7 @@ void cx25840_audio_set_path(struct i2c_client *client)

static int get_volume(struct i2c_client *client)
{
struct cx25840_state *state = i2c_get_clientdata(client);
struct cx25840_state *state = to_state(i2c_get_clientdata(client));
int vol;

if (state->unmute_volume >= 0)
Expand All @@ -252,7 +252,7 @@ static int get_volume(struct i2c_client *client)

static void set_volume(struct i2c_client *client, int volume)
{
struct cx25840_state *state = i2c_get_clientdata(client);
struct cx25840_state *state = to_state(i2c_get_clientdata(client));
int vol;

if (state->unmute_volume >= 0) {
Expand Down Expand Up @@ -340,14 +340,14 @@ static void set_balance(struct i2c_client *client, int balance)

static int get_mute(struct i2c_client *client)
{
struct cx25840_state *state = i2c_get_clientdata(client);
struct cx25840_state *state = to_state(i2c_get_clientdata(client));

return state->unmute_volume >= 0;
}

static void set_mute(struct i2c_client *client, int mute)
{
struct cx25840_state *state = i2c_get_clientdata(client);
struct cx25840_state *state = to_state(i2c_get_clientdata(client));

if (mute && state->unmute_volume == -1) {
int vol = get_volume(client);
Expand All @@ -365,7 +365,7 @@ static void set_mute(struct i2c_client *client, int mute)

int cx25840_audio(struct i2c_client *client, unsigned int cmd, void *arg)
{
struct cx25840_state *state = i2c_get_clientdata(client);
struct cx25840_state *state = to_state(i2c_get_clientdata(client));
struct v4l2_control *ctrl = arg;
int retval;

Expand Down
Loading

0 comments on commit 1c69c63

Please sign in to comment.