diff options
author | Eliot Blennerhassett <eblennerhassett@audioscience.com> | 2011-12-22 04:38:38 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-12-22 11:13:02 +0400 |
commit | 09c728aced2bb212ce060a91c28d2ee40a6bf33c (patch) | |
tree | 884e78a0e03f4b91c48c46726f38497ffb4abee7 /sound/pci/asihpi | |
parent | 0be55c453f0b46de3d4e9025749dbba571cd7b84 (diff) | |
download | linux-09c728aced2bb212ce060a91c28d2ee40a6bf33c.tar.xz |
ALSA: asihpi - Only set sync if card supports hardware stream grouping.
Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/asihpi')
-rw-r--r-- | sound/pci/asihpi/asihpi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/asihpi/asihpi.c b/sound/pci/asihpi/asihpi.c index d3cab3517180..62f094c0ef08 100644 --- a/sound/pci/asihpi/asihpi.c +++ b/sound/pci/asihpi/asihpi.c @@ -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; @@ -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; |