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/cmipci.c

    r772 r777  
    496496        spinlock_t reg_lock;
    497497
    498 #ifdef CONFIG_PM_SLEEP
    499498        unsigned int saved_regs[0x20];
    500499        unsigned char saved_mixers[0x20];
    501 #endif
    502500};
    503501
     
    15821580};
    15831581
    1584 static const unsigned int rate_constraints[] = { 5512, 8000, 11025, 16000, 22050,
    1585                         32000, 44100, 48000, 88200, 96000, 128000 };
    1586 static const struct snd_pcm_hw_constraint_list hw_constraints_rates = {
    1587                 .count = ARRAY_SIZE(rate_constraints),
    1588                 .list = rate_constraints,
    1589                 .mask = 0,
    1590 };
    1591 
    15921582/*
    15931583 * check device open/close
     
    16611651                runtime->hw.rate_max = 96000;
    16621652        } else if (cm->chip_version == 55) {
    1663                 err = snd_pcm_hw_constraint_list(runtime, 0,
    1664                         SNDRV_PCM_HW_PARAM_RATE, &hw_constraints_rates);
    1665                 if (err < 0)
    1666                         return err;
    1667                 runtime->hw.rates |= SNDRV_PCM_RATE_KNOT;
     1653                runtime->hw.rates |= SNDRV_PCM_RATE_88200 |
     1654                                     SNDRV_PCM_RATE_96000 |
     1655                                     SNDRV_PCM_RATE_128000;
    16681656                runtime->hw.rate_max = 128000;
    16691657        }
     
    16871675                runtime->hw.rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000;
    16881676        } else if (cm->chip_version == 55) {
    1689                 err = snd_pcm_hw_constraint_list(runtime, 0,
    1690                         SNDRV_PCM_HW_PARAM_RATE, &hw_constraints_rates);
    1691                 if (err < 0)
    1692                         return err;
    1693                 runtime->hw.rates |= SNDRV_PCM_RATE_KNOT;
     1677                runtime->hw.rates |= SNDRV_PCM_RATE_88200 |
     1678                                     SNDRV_PCM_RATE_96000 |
     1679                                     SNDRV_PCM_RATE_128000;
    16941680                runtime->hw.rate_max = 128000;
    16951681        }
     
    17271713                runtime->hw.rate_max = 96000;
    17281714        } else if (cm->chip_version == 55) {
    1729                 err = snd_pcm_hw_constraint_list(runtime, 0,
    1730                         SNDRV_PCM_HW_PARAM_RATE, &hw_constraints_rates);
    1731                 if (err < 0)
    1732                         return err;
    1733                 runtime->hw.rates |= SNDRV_PCM_RATE_KNOT;
     1715                runtime->hw.rates |= SNDRV_PCM_RATE_88200 |
     1716                                     SNDRV_PCM_RATE_96000 |
     1717                                     SNDRV_PCM_RATE_128000;
    17341718                runtime->hw.rate_max = 128000;
    17351719        }
     
    32813265}
    32823266
    3283 #ifdef CONFIG_PM_SLEEP
    32843267/*
    32853268 * power management
     
    33453328}
    33463329
    3347 static SIMPLE_DEV_PM_OPS(snd_cmipci_pm, snd_cmipci_suspend, snd_cmipci_resume);
    3348 #define SND_CMIPCI_PM_OPS       &snd_cmipci_pm
    3349 #else
    3350 #define SND_CMIPCI_PM_OPS       NULL
    3351 #endif /* CONFIG_PM_SLEEP */
     3330static DEFINE_SIMPLE_DEV_PM_OPS(snd_cmipci_pm, snd_cmipci_suspend, snd_cmipci_resume);
    33523331
    33533332static struct pci_driver cmipci_driver = {
     
    33563335        .probe = snd_cmipci_probe,
    33573336        .driver = {
    3358                 .pm = SND_CMIPCI_PM_OPS,
     3337                .pm = &snd_cmipci_pm,
    33593338        },
    33603339};
Note: See TracChangeset for help on using the changeset viewer.