Changeset 777 for GPL/trunk/alsa-kernel/pci/emu10k1/emupcm.c
- Timestamp:
- Apr 21, 2025, 7:17:25 PM (4 months ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-exp merged: 766-767,770-771,773-774
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/pci/emu10k1/emupcm.c
r772 r777 148 148 }; 149 149 150 static const unsigned int capture_rates[8] = {151 8000, 11025, 16000, 22050, 24000, 32000, 44100, 48000152 };153 154 static const struct snd_pcm_hw_constraint_list hw_constraints_capture_rates = {155 .count = 8,156 .list = capture_rates,157 .mask = 0158 };159 160 150 static unsigned int snd_emu10k1_capture_rate_reg(unsigned int rate) 161 151 { … … 174 164 } 175 165 } 176 177 static const unsigned int audigy_capture_rates[9] = {178 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000179 };180 181 static const struct snd_pcm_hw_constraint_list hw_constraints_audigy_capture_rates = {182 .count = 9,183 .list = audigy_capture_rates,184 .mask = 0185 };186 166 187 167 static unsigned int snd_emu10k1_audigy_capture_rate_reg(unsigned int rate) … … 208 188 if (emu->card_capabilities->emu_model && 209 189 emu->emu1010.word_clock == 44100) { 210 // This also sets the rate constraint by deleting SNDRV_PCM_RATE_KNOT211 190 runtime->hw.rates = SNDRV_PCM_RATE_11025 | \ 212 191 SNDRV_PCM_RATE_22050 | \ … … 214 193 runtime->hw.rate_min = 11025; 215 194 runtime->hw.rate_max = 44100; 216 return;217 }218 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,219 emu->audigy ? &hw_constraints_audigy_capture_rates :220 &hw_constraints_capture_rates);195 } else if (emu->audigy) { 196 runtime->hw.rates = SNDRV_PCM_RATE_8000_48000 | 197 SNDRV_PCM_RATE_12000 | 198 SNDRV_PCM_RATE_24000; 199 } 221 200 } 222 201 … … 1054 1033 SNDRV_PCM_INFO_MMAP_VALID), 1055 1034 .formats = SNDRV_PCM_FMTBIT_S16_LE, 1056 .rates = SNDRV_PCM_RATE_8000_48000 | SNDRV_PCM_RATE_ KNOT,1035 .rates = SNDRV_PCM_RATE_8000_48000 | SNDRV_PCM_RATE_24000, 1057 1036 .rate_min = 8000, 1058 1037 .rate_max = 48000,
Note:
See TracChangeset
for help on using the changeset viewer.