Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 293476
b: refs/heads/master
c: e2002ab
h: refs/heads/master
v: v3
  • Loading branch information
Peter Ujfalusi authored and Liam Girdwood committed Mar 12, 2012
1 parent 166a287 commit 8a870cc
Show file tree
Hide file tree
Showing 2 changed files with 6 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: b8fb4907a74dbcbd0b21e02380d58e422bd4a1fe
refs/heads/master: e2002ab35ff7f9111081824667ce331b2c33923c
21 changes: 5 additions & 16 deletions trunk/sound/soc/omap/mcbsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,9 @@ static void omap_st_chgain(struct omap_mcbsp *mcbsp)

int omap_st_set_chgain(struct omap_mcbsp *mcbsp, int channel, s16 chgain)
{
struct omap_mcbsp_st_data *st_data;
struct omap_mcbsp_st_data *st_data = mcbsp->st_data;
int ret = 0;

st_data = mcbsp->st_data;

if (!st_data)
return -ENOENT;

Expand All @@ -298,11 +296,9 @@ int omap_st_set_chgain(struct omap_mcbsp *mcbsp, int channel, s16 chgain)

int omap_st_get_chgain(struct omap_mcbsp *mcbsp, int channel, s16 *chgain)
{
struct omap_mcbsp_st_data *st_data;
struct omap_mcbsp_st_data *st_data = mcbsp->st_data;
int ret = 0;

st_data = mcbsp->st_data;

if (!st_data)
return -ENOENT;

Expand Down Expand Up @@ -337,9 +333,7 @@ static int omap_st_start(struct omap_mcbsp *mcbsp)

int omap_st_enable(struct omap_mcbsp *mcbsp)
{
struct omap_mcbsp_st_data *st_data;

st_data = mcbsp->st_data;
struct omap_mcbsp_st_data *st_data = mcbsp->st_data;

if (!st_data)
return -ENODEV;
Expand Down Expand Up @@ -368,11 +362,9 @@ static int omap_st_stop(struct omap_mcbsp *mcbsp)

int omap_st_disable(struct omap_mcbsp *mcbsp)
{
struct omap_mcbsp_st_data *st_data;
struct omap_mcbsp_st_data *st_data = mcbsp->st_data;
int ret = 0;

st_data = mcbsp->st_data;

if (!st_data)
return -ENODEV;

Expand All @@ -386,14 +378,11 @@ int omap_st_disable(struct omap_mcbsp *mcbsp)

int omap_st_is_enabled(struct omap_mcbsp *mcbsp)
{
struct omap_mcbsp_st_data *st_data;

st_data = mcbsp->st_data;
struct omap_mcbsp_st_data *st_data = mcbsp->st_data;

if (!st_data)
return -ENODEV;


return st_data->enabled;
}

Expand Down

0 comments on commit 8a870cc

Please sign in to comment.