ALSA: hdspm - Add missing KNOT flag for AES32 rate restriction
authorTakashi Iwai <tiwai@suse.de>
Mon, 15 Aug 2011 08:42:23 +0000 (10:42 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 15 Aug 2011 11:36:49 +0000 (13:36 +0200)
AES32 supports the non-standard 128kHZ, and this is enabled only when
SNDRV_PCM_RATE_KNOT is set in hw.rates field.

Tested-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/rme9652/hdspm.c

index c33f4a5c52419fe5f560b5173e2de8fd1591148b..4add485e6b1632006668bcf6133c1f266c365d70 100644 (file)
@@ -6006,6 +6006,7 @@ static int snd_hdspm_playback_open(struct snd_pcm_substream *substream)
        }
 
        if (AES32 == hdspm->io_type) {
+               runtime->hw.rates |= SNDRV_PCM_RATE_KNOT;
                snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
                                &hdspm_hw_constraints_aes32_sample_rates);
        } else {
@@ -6076,6 +6077,7 @@ static int snd_hdspm_capture_open(struct snd_pcm_substream *substream)
        }
 
        if (AES32 == hdspm->io_type) {
+               runtime->hw.rates |= SNDRV_PCM_RATE_KNOT;
                snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
                                &hdspm_hw_constraints_aes32_sample_rates);
        } else {