Skip to content

Commit

Permalink
ALSA: asihpi - Only set sync if card supports hardware stream grouping.
Browse files Browse the repository at this point in the history
Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Eliot Blennerhassett authored and Takashi Iwai committed Dec 22, 2011
1 parent 0be55c4 commit 09c728a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/pci/asihpi/asihpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1033,8 +1033,10 @@ static int snd_card_asihpi_playback_open(struct snd_pcm_substream *substream)
SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_MMAP_VALID;

if (card->support_grouping)
if (card->support_grouping) {
snd_card_asihpi_playback.info |= SNDRV_PCM_INFO_SYNC_START;
snd_pcm_set_sync(substream);
}

/* struct is copied, so can create initializer dynamically */
runtime->hw = snd_card_asihpi_playback;
Expand All @@ -1051,8 +1053,6 @@ static int snd_card_asihpi_playback_open(struct snd_pcm_substream *substream)
snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
card->update_interval_frames * 2, UINT_MAX);

snd_pcm_set_sync(substream);

snd_printdd("playback open\n");

return 0;
Expand Down

0 comments on commit 09c728a

Please sign in to comment.