Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193335
b: refs/heads/master
c: c3746a0
h: refs/heads/master
i:
  193333: bc5f9c7
  193331: ba1f103
  193327: f0afaa0
v: v3
  • Loading branch information
Peter Ujfalusi authored and Mark Brown committed Mar 12, 2010
1 parent cd7dd1f commit 0d242e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 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: aa9b88ee80d3985ebae9567a8f4e0d07ce15b5a7
refs/heads/master: c3746a07f13f8711885fd3909c03477a1b47ab82
25 changes: 3 additions & 22 deletions trunk/sound/soc/codecs/tlv320dac33.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ static inline void dac33_soft_power(struct snd_soc_codec *codec, int power)
if (power)
reg |= DAC33_PDNALLB;
else
reg &= ~DAC33_PDNALLB;
reg &= ~(DAC33_PDNALLB | DAC33_OSCPDNB |
DAC33_DACRPDNB | DAC33_DACLPDNB);
dac33_write(codec, DAC33_PWR_CTRL, reg);
}

Expand Down Expand Up @@ -634,26 +635,6 @@ static irqreturn_t dac33_interrupt_handler(int irq, void *dev)
return IRQ_HANDLED;
}

static void dac33_shutdown(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{
struct snd_soc_pcm_runtime *rtd = substream->private_data;
struct snd_soc_device *socdev = rtd->socdev;
struct snd_soc_codec *codec = socdev->card->codec;
struct tlv320dac33_priv *dac33 = codec->private_data;
unsigned int pwr_ctrl;

/* Stop pending workqueue */
if (dac33->fifo_mode)
cancel_work_sync(&dac33->work);

mutex_lock(&dac33->mutex);
pwr_ctrl = dac33_read_reg_cache(codec, DAC33_PWR_CTRL);
pwr_ctrl &= ~(DAC33_OSCPDNB | DAC33_DACRPDNB | DAC33_DACLPDNB);
dac33_write(codec, DAC33_PWR_CTRL, pwr_ctrl);
mutex_unlock(&dac33->mutex);
}

static void dac33_oscwait(struct snd_soc_codec *codec)
{
int timeout = 20;
Expand Down Expand Up @@ -751,6 +732,7 @@ static int dac33_prepare_chip(struct snd_pcm_substream *substream)
}

mutex_lock(&dac33->mutex);
dac33_soft_power(codec, 0);
dac33_soft_power(codec, 1);

reg_tmp = dac33_read_reg_cache(codec, DAC33_INT_OSC_CTRL);
Expand Down Expand Up @@ -1185,7 +1167,6 @@ EXPORT_SYMBOL_GPL(soc_codec_dev_tlv320dac33);
#define DAC33_FORMATS SNDRV_PCM_FMTBIT_S16_LE

static struct snd_soc_dai_ops dac33_dai_ops = {
.shutdown = dac33_shutdown,
.hw_params = dac33_hw_params,
.prepare = dac33_pcm_prepare,
.trigger = dac33_pcm_trigger,
Expand Down

0 comments on commit 0d242e3

Please sign in to comment.