diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-08-15 10:42:23 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-08-15 13:36:49 +0200 |
commit | 3fa9e3d230911272eaf1c3856f5483b0af3903f3 (patch) | |
tree | 462be0c1792a00624beeef49b6b8514f4e352c26 /sound/pci | |
parent | 52e6fb48121a552d11ea0eb05540178fb3ac4e15 (diff) | |
download | op-kernel-dev-3fa9e3d230911272eaf1c3856f5483b0af3903f3.zip op-kernel-dev-3fa9e3d230911272eaf1c3856f5483b0af3903f3.tar.gz |
ALSA: hdspm - Add missing KNOT flag for AES32 rate restriction
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>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/rme9652/hdspm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c index c33f4a5..4add485 100644 --- a/sound/pci/rme9652/hdspm.c +++ b/sound/pci/rme9652/hdspm.c @@ -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 { |