Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157721
b: refs/heads/master
c: 30cd0c4
h: refs/heads/master
i:
  157719: d6eea9a
v: v3
  • Loading branch information
Candelaria Villareal, Jorge authored and Mark Brown committed Aug 25, 2009
1 parent 0c0ed07 commit 07e4447
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 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: faf907c7ba3d7df6266366556817f2ef7314640a
refs/heads/master: 30cd0c4ad57f45e257758edad537cc5f6554e711
15 changes: 11 additions & 4 deletions trunk/sound/soc/omap/sdp3430.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@
#include "omap-pcm.h"
#include "../codecs/twl4030.h"

#define TWL4030_INTBR_PMBR1 0x0D
#define EXTMUTE(value) (value << 2)
/* TWL4030 PMBR1 Register */
#define TWL4030_INTBR_PMBR1 0x0D
/* TWL4030 PMBR1 Register GPIO6 mux bit */
#define TWL4030_GPIO6_PWM0_MUTE(value) (value << 2)

static struct snd_soc_card snd_soc_sdp3430;

Expand Down Expand Up @@ -299,6 +301,7 @@ static struct platform_device *sdp3430_snd_device;
static int __init sdp3430_soc_init(void)
{
int ret;
u8 pin_mux;

if (!machine_is_omap_3430sdp()) {
pr_debug("Not SDP3430!\n");
Expand All @@ -318,8 +321,12 @@ static int __init sdp3430_soc_init(void)
*(unsigned int *)sdp3430_dai[1].cpu_dai->private_data = 2; /* McBSP3 */

/* Set TWL4030 GPIO6 as EXTMUTE signal */
twl4030_i2c_write_u8(TWL4030_MODULE_INTBR, EXTMUTE(0x02),
TWL4030_MODULE_INTBR);
twl4030_i2c_read_u8(TWL4030_MODULE_INTBR, &pin_mux,
TWL4030_INTBR_PMBR1);
pin_mux &= ~TWL4030_GPIO6_PWM0_MUTE(0x03);
pin_mux |= TWL4030_GPIO6_PWM0_MUTE(0x02);
twl4030_i2c_write_u8(TWL4030_MODULE_INTBR, pin_mux,
TWL4030_INTBR_PMBR1);

ret = platform_device_add(sdp3430_snd_device);
if (ret)
Expand Down

0 comments on commit 07e4447

Please sign in to comment.