ASoC: codecs: Correct stream name, add dapm sync
Widget suspend is not ignored since stream names mismatch. Correct stream names and add dapm sync for widgets to work during suspend. Order of digital PM suspend and soc codec suspend differs, which results in mclk remaining on during suspend, so change digital PM suspend to late suspend. Change-Id: I37d64b044714847cee70a83df9480fbccbf6efc5 Signed-off-by: Divya Ojha <dojha@codeaurora.org>
This commit is contained in:
parent
c1ef16be6d
commit
353aac57a9
2 changed files with 8 additions and 4 deletions
|
@ -3181,7 +3181,7 @@ static struct snd_soc_dai_driver msm_anlg_cdc_i2s_dai[] = {
|
|||
.name = "msm_anlg_cdc_i2s_rx1",
|
||||
.id = AIF1_PB,
|
||||
.playback = {
|
||||
.stream_name = "Playback",
|
||||
.stream_name = "PDM Playback",
|
||||
.rates = SDM660_CDC_RATES,
|
||||
.formats = SDM660_CDC_FORMATS,
|
||||
.rate_max = 192000,
|
||||
|
@ -3195,7 +3195,7 @@ static struct snd_soc_dai_driver msm_anlg_cdc_i2s_dai[] = {
|
|||
.name = "msm_anlg_cdc_i2s_tx1",
|
||||
.id = AIF1_CAP,
|
||||
.capture = {
|
||||
.stream_name = "Record",
|
||||
.stream_name = "PDM Capture",
|
||||
.rates = SDM660_CDC_RATES,
|
||||
.formats = SDM660_CDC_FORMATS,
|
||||
.rate_max = 48000,
|
||||
|
@ -4159,6 +4159,8 @@ static int msm_anlg_cdc_soc_probe(struct snd_soc_codec *codec)
|
|||
snd_soc_dapm_ignore_suspend(dapm, "PDM Playback");
|
||||
snd_soc_dapm_ignore_suspend(dapm, "PDM Capture");
|
||||
|
||||
snd_soc_dapm_sync(dapm);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -1207,6 +1207,8 @@ static int msm_dig_cdc_soc_probe(struct snd_soc_codec *codec)
|
|||
snd_soc_dapm_ignore_suspend(dapm, "PDM_OUT_RX2");
|
||||
snd_soc_dapm_ignore_suspend(dapm, "PDM_OUT_RX3");
|
||||
|
||||
snd_soc_dapm_sync(dapm);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -2127,8 +2129,8 @@ static int msm_dig_resume(struct device *dev)
|
|||
}
|
||||
|
||||
static const struct dev_pm_ops msm_dig_pm_ops = {
|
||||
.suspend = msm_dig_suspend,
|
||||
.resume = msm_dig_resume,
|
||||
.suspend_late = msm_dig_suspend,
|
||||
.resume_early = msm_dig_resume,
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue