diff options
Diffstat (limited to 'sound/pci/ymfpci')
-rw-r--r-- | sound/pci/ymfpci/ymfpci_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/pci/ymfpci/ymfpci_main.c b/sound/pci/ymfpci/ymfpci_main.c index 88c5c5c28d02..66ea71b2a70d 100644 --- a/sound/pci/ymfpci/ymfpci_main.c +++ b/sound/pci/ymfpci/ymfpci_main.c | |||
@@ -906,6 +906,9 @@ static int snd_ymfpci_playback_open_1(struct snd_pcm_substream *substream) | |||
906 | 5334, UINT_MAX); | 906 | 5334, UINT_MAX); |
907 | if (err < 0) | 907 | if (err < 0) |
908 | return err; | 908 | return err; |
909 | err = snd_pcm_hw_rule_noresample(runtime, 48000); | ||
910 | if (err < 0) | ||
911 | return err; | ||
909 | 912 | ||
910 | ypcm = kzalloc(sizeof(*ypcm), GFP_KERNEL); | 913 | ypcm = kzalloc(sizeof(*ypcm), GFP_KERNEL); |
911 | if (ypcm == NULL) | 914 | if (ypcm == NULL) |
@@ -1028,6 +1031,9 @@ static int snd_ymfpci_capture_open(struct snd_pcm_substream *substream, | |||
1028 | 5334, UINT_MAX); | 1031 | 5334, UINT_MAX); |
1029 | if (err < 0) | 1032 | if (err < 0) |
1030 | return err; | 1033 | return err; |
1034 | err = snd_pcm_hw_rule_noresample(runtime, 48000); | ||
1035 | if (err < 0) | ||
1036 | return err; | ||
1031 | 1037 | ||
1032 | ypcm = kzalloc(sizeof(*ypcm), GFP_KERNEL); | 1038 | ypcm = kzalloc(sizeof(*ypcm), GFP_KERNEL); |
1033 | if (ypcm == NULL) | 1039 | if (ypcm == NULL) |