Skip to content

Commit

Permalink
Merge remote-tracking branches 'asoc/fix/atmel', 'asoc/fix/compress',…
Browse files Browse the repository at this point in the history
… 'asoc/fix/da7213' and 'asoc/fix/debugfs' into asoc-linus
  • Loading branch information
Mark Brown committed Aug 24, 2016
5 parents d520519 + 3e103a6 + b0f12c6 + 5d76491 + d1e8142 commit e8f0f8a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions sound/soc/atmel/atmel_ssc_dai.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,9 @@ static int atmel_ssc_startup(struct snd_pcm_substream *substream,
clk_enable(ssc_p->ssc->clk);
ssc_p->mck_rate = clk_get_rate(ssc_p->ssc->clk);

/* Reset the SSC to keep it at a clean status */
ssc_writel(ssc_p->ssc->regs, CR, SSC_BIT(CR_SWRST));
/* Reset the SSC unless initialized to keep it in a clean state */
if (!ssc_p->initialized)
ssc_writel(ssc_p->ssc->regs, CR, SSC_BIT(CR_SWRST));

if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
dir = 0;
Expand Down
4 changes: 2 additions & 2 deletions sound/soc/codecs/da7213.c
Original file line number Diff line number Diff line change
Expand Up @@ -1247,8 +1247,8 @@ static int da7213_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt)
return -EINVAL;
}

/* By default only 32 BCLK per WCLK is supported */
dai_clk_mode |= DA7213_DAI_BCLKS_PER_WCLK_32;
/* By default only 64 BCLK per WCLK is supported */
dai_clk_mode |= DA7213_DAI_BCLKS_PER_WCLK_64;

snd_soc_write(codec, DA7213_DAI_CLK_MODE, dai_clk_mode);
snd_soc_update_bits(codec, DA7213_DAI_CTRL, DA7213_DAI_FORMAT_MASK,
Expand Down
4 changes: 3 additions & 1 deletion sound/soc/soc-compress.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static int soc_compr_open_fe(struct snd_compr_stream *cstream)

dpcm_be_disconnect(fe, stream);
fe->dpcm[stream].runtime = NULL;
goto fe_err;
goto path_err;
}

dpcm_clear_pending_state(fe, stream);
Expand All @@ -136,6 +136,8 @@ static int soc_compr_open_fe(struct snd_compr_stream *cstream)

return 0;

path_err:
dpcm_path_put(&list);
fe_err:
if (fe->dai_link->compr_ops && fe->dai_link->compr_ops->shutdown)
fe->dai_link->compr_ops->shutdown(cstream);
Expand Down
3 changes: 1 addition & 2 deletions sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2083,14 +2083,13 @@ static int soc_cleanup_card_resources(struct snd_soc_card *card)
/* remove auxiliary devices */
soc_remove_aux_devices(card);

snd_soc_dapm_free(&card->dapm);
soc_cleanup_card_debugfs(card);

/* remove the card */
if (card->remove)
card->remove(card);

snd_soc_dapm_free(&card->dapm);

snd_card_free(card->snd_card);
return 0;

Expand Down

0 comments on commit e8f0f8a

Please sign in to comment.