Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124202
b: refs/heads/master
c: 8975111
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 29, 2008
1 parent 54b330a commit 18123da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 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: 6fbcebf06a40f10a1c9dd7bc835115662284c40c
refs/heads/master: 897511139634b96a5980420f5d37972589a19f17
8 changes: 4 additions & 4 deletions trunk/drivers/media/video/em28xx/em28xx-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,11 @@ static int em28xx_set_audio_source(struct em28xx *dev)
/* Sets AC97 mixer registers
This is seems to be needed, even for non-ac97 configs
*/
ret = em28xx_write_ac97(dev, EM28XX_R14_VIDEO_AC97, video);
ret = em28xx_write_ac97(dev, AC97_VIDEO_VOL, video);
if (ret < 0)
return ret;

ret = em28xx_write_ac97(dev, EM28XX_R10_LINE_IN_AC97, line);
ret = em28xx_write_ac97(dev, AC97_LINEIN_VOL, line);

return ret;
}
Expand All @@ -324,7 +324,7 @@ int em28xx_audio_analog_set(struct em28xx *dev)

/* Mute */
s[1] |= 0x80;
ret = em28xx_write_ac97(dev, EM28XX_R02_MASTER_AC97, s);
ret = em28xx_write_ac97(dev, AC97_MASTER_VOL, s);

if (ret < 0)
return ret;
Expand All @@ -346,7 +346,7 @@ int em28xx_audio_analog_set(struct em28xx *dev)
/* Unmute device */
if (!dev->mute)
s[1] &= ~0x80;
ret = em28xx_write_ac97(dev, EM28XX_R02_MASTER_AC97, s);
ret = em28xx_write_ac97(dev, AC97_MASTER_VOL, s);

return ret;
}
Expand Down
5 changes: 0 additions & 5 deletions trunk/drivers/media/video/em28xx/em28xx-reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@
0x47 IR data
*/

/* em202 registers */
#define EM28XX_R02_MASTER_AC97 0x02
#define EM28XX_R10_LINE_IN_AC97 0x10
#define EM28XX_R14_VIDEO_AC97 0x14

/* em2874 registers */
#define EM2874_R50_IR_CONFIG 0x50
#define EM2874_R51_IR 0x51
Expand Down

0 comments on commit 18123da

Please sign in to comment.