Ignore:
Timestamp:
Apr 21, 2025, 7:17:25 PM (4 months ago)
Author:
David Azarewicz
Message:

Merge from uniaud32-exp branch

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/pci/emu10k1/emupcm.c

    r772 r777  
    148148};
    149149
    150 static const unsigned int capture_rates[8] = {
    151         8000, 11025, 16000, 22050, 24000, 32000, 44100, 48000
    152 };
    153 
    154 static const struct snd_pcm_hw_constraint_list hw_constraints_capture_rates = {
    155         .count = 8,
    156         .list = capture_rates,
    157         .mask = 0
    158 };
    159 
    160150static unsigned int snd_emu10k1_capture_rate_reg(unsigned int rate)
    161151{
     
    174164        }
    175165}
    176 
    177 static const unsigned int audigy_capture_rates[9] = {
    178         8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
    179 };
    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 = 0
    185 };
    186166
    187167static unsigned int snd_emu10k1_audigy_capture_rate_reg(unsigned int rate)
     
    208188        if (emu->card_capabilities->emu_model &&
    209189            emu->emu1010.word_clock == 44100) {
    210                 // This also sets the rate constraint by deleting SNDRV_PCM_RATE_KNOT
    211190                runtime->hw.rates = SNDRV_PCM_RATE_11025 | \
    212191                                    SNDRV_PCM_RATE_22050 | \
     
    214193                runtime->hw.rate_min = 11025;
    215194                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        }
    221200}
    222201
     
    10541033                                 SNDRV_PCM_INFO_MMAP_VALID),
    10551034        .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,
    10571036        .rate_min =             8000,
    10581037        .rate_max =             48000,
Note: See TracChangeset for help on using the changeset viewer.