diff options
author | Eliot Blennerhassett <eblennerhassett@audioscience.com> | 2011-12-21 19:38:38 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-12-22 02:13:02 -0500 |
commit | 09c728aced2bb212ce060a91c28d2ee40a6bf33c (patch) | |
tree | 884e78a0e03f4b91c48c46726f38497ffb4abee7 /sound/pci/asihpi | |
parent | 0be55c453f0b46de3d4e9025749dbba571cd7b84 (diff) |
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) | |||
1033 | SNDRV_PCM_INFO_MMAP | | 1033 | SNDRV_PCM_INFO_MMAP | |
1034 | SNDRV_PCM_INFO_MMAP_VALID; | 1034 | SNDRV_PCM_INFO_MMAP_VALID; |
1035 | 1035 | ||
1036 | if (card->support_grouping) | 1036 | if (card->support_grouping) { |
1037 | snd_card_asihpi_playback.info |= SNDRV_PCM_INFO_SYNC_START; | 1037 | snd_card_asihpi_playback.info |= SNDRV_PCM_INFO_SYNC_START; |
1038 | snd_pcm_set_sync(substream); | ||
1039 | } | ||
1038 | 1040 | ||
1039 | /* struct is copied, so can create initializer dynamically */ | 1041 | /* struct is copied, so can create initializer dynamically */ |
1040 | runtime->hw = snd_card_asihpi_playback; | 1042 | runtime->hw = snd_card_asihpi_playback; |
@@ -1051,8 +1053,6 @@ static int snd_card_asihpi_playback_open(struct snd_pcm_substream *substream) | |||
1051 | snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, | 1053 | snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, |
1052 | card->update_interval_frames * 2, UINT_MAX); | 1054 | card->update_interval_frames * 2, UINT_MAX); |
1053 | 1055 | ||
1054 | snd_pcm_set_sync(substream); | ||
1055 | |||
1056 | snd_printdd("playback open\n"); | 1056 | snd_printdd("playback open\n"); |
1057 | 1057 | ||
1058 | return 0; | 1058 | return 0; |