Ignore:
Timestamp:
Aug 21, 2021, 3:35:34 AM (4 years ago)
Author:
David Azarewicz
Message:

Merge changes from next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/pci/ens1370.c

    r679 r695  
    5656#ifdef CHIP1370
    5757MODULE_DESCRIPTION("Ensoniq AudioPCI ES1370");
    58 MODULE_SUPPORTED_DEVICE("{{Ensoniq,AudioPCI-97 ES1370},"
    59                 "{Creative Labs,SB PCI64/128 (ES1370)}}");
    6058#endif
    6159#ifdef CHIP1371
    6260MODULE_DESCRIPTION("Ensoniq/Creative AudioPCI ES1371+");
    63 MODULE_SUPPORTED_DEVICE("{{Ensoniq,AudioPCI ES1371/73},"
    64                 "{Ensoniq,AudioPCI ES1373},"
    65                 "{Creative Labs,Ectiva EV1938},"
    66                 "{Creative Labs,SB PCI64/128 (ES1371/73)},"
    67                 "{Creative Labs,Vibra PCI128},"
    68                 "{Ectiva,EV1938}}");
    6961#endif
    7062
     
    756748
    757749        mutex_lock(&ensoniq->src_mutex);
    758         freq = ((rate << 15) + 1500) / 3000;
     750        freq = DIV_ROUND_CLOSEST(rate << 15, 3000);
    759751        r = (snd_es1371_wait_src_ready(ensoniq) & (ES_1371_SRC_DISABLE |
    760752                                                   ES_1371_DIS_P2 | ES_1371_DIS_R1)) |
     
    777769
    778770        mutex_lock(&ensoniq->src_mutex);
    779         freq = ((rate << 15) + 1500) / 3000;
     771        freq = DIV_ROUND_CLOSEST(rate << 15, 3000);
    780772        r = (snd_es1371_wait_src_ready(ensoniq) & (ES_1371_SRC_DISABLE |
    781773                                                   ES_1371_DIS_P1 | ES_1371_DIS_R1)) |
Note: See TracChangeset for help on using the changeset viewer.