Skip to content

Commit

Permalink
ASoC: SOF: Intel: only support INFO_BATCH for legacy platforms
Browse files Browse the repository at this point in the history
The current position update is not precise enough for PulseAudio to
work reliably, so disable the NO_PERIOD_WAKEUP capability and use
BATCH to signal that the pistion is only reliabe and updated during
period_elapsed events.

This will be reverted when the firmware provides a more accurate
position.

Signed-off-by: Pierre-Louis Bossart <[email protected]>
  • Loading branch information
plbossart committed Oct 18, 2019
1 parent d2e05e6 commit c3f966b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sound/soc/sof/intel/bdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ const struct snd_sof_dsp_ops sof_bdw_ops = {
SNDRV_PCM_INFO_MMAP_VALID |
SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_PAUSE |
SNDRV_PCM_INFO_NO_PERIOD_WAKEUP,
SNDRV_PCM_INFO_BATCH,
};
EXPORT_SYMBOL(sof_bdw_ops);

Expand Down
6 changes: 3 additions & 3 deletions sound/soc/sof/intel/byt.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ const struct snd_sof_dsp_ops sof_tng_ops = {
SNDRV_PCM_INFO_MMAP_VALID |
SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_PAUSE |
SNDRV_PCM_INFO_NO_PERIOD_WAKEUP,
SNDRV_PCM_INFO_BATCH,
};
EXPORT_SYMBOL(sof_tng_ops);

Expand Down Expand Up @@ -706,7 +706,7 @@ const struct snd_sof_dsp_ops sof_byt_ops = {
SNDRV_PCM_INFO_MMAP_VALID |
SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_PAUSE |
SNDRV_PCM_INFO_NO_PERIOD_WAKEUP,
SNDRV_PCM_INFO_BATCH,
};
EXPORT_SYMBOL(sof_byt_ops);

Expand Down Expand Up @@ -773,7 +773,7 @@ const struct snd_sof_dsp_ops sof_cht_ops = {
SNDRV_PCM_INFO_MMAP_VALID |
SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_PAUSE |
SNDRV_PCM_INFO_NO_PERIOD_WAKEUP,
SNDRV_PCM_INFO_BATCH,
};
EXPORT_SYMBOL(sof_cht_ops);

Expand Down

0 comments on commit c3f966b

Please sign in to comment.