Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157582
b: refs/heads/master
c: c5910a7
h: refs/heads/master
v: v3
  • Loading branch information
Candelaria Villareal, Jorge authored and Mark Brown committed Jul 17, 2009
1 parent 308807d commit 8014dd1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 416c8fe3cdcd2d46a6ca12d8ec6143c62d8569d9
refs/heads/master: c5910a703889cf44ac1aa9405642a7d3b5bc6f24
9 changes: 9 additions & 0 deletions trunk/sound/soc/omap/sdp3430.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include <linux/clk.h>
#include <linux/platform_device.h>
#include <linux/i2c/twl4030.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/soc.h>
Expand All @@ -39,6 +40,9 @@
#include "omap-pcm.h"
#include "../codecs/twl4030.h"

#define TWL4030_INTBR_PMBR1 0x0D
#define EXTMUTE(value) (value << 2)

static struct snd_soc_card snd_soc_sdp3430;

static int sdp3430_hw_params(struct snd_pcm_substream *substream,
Expand Down Expand Up @@ -280,6 +284,7 @@ static struct snd_soc_card snd_soc_sdp3430 = {
static struct twl4030_setup_data twl4030_setup = {
.ramp_delay_value = 3,
.sysclk = 26000,
.hs_extmute = 1,
};

/* Audio subsystem */
Expand Down Expand Up @@ -312,6 +317,10 @@ static int __init sdp3430_soc_init(void)
*(unsigned int *)sdp3430_dai[0].cpu_dai->private_data = 1; /* McBSP2 */
*(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);

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

0 comments on commit 8014dd1

Please sign in to comment.