Changeset 746 for GPL/branches


Ignore:
Timestamp:
Sep 24, 2022, 11:55:33 AM (3 years ago)
Author:
Paul Smedley
Message:

Update uniaud32-next to 5.15.70

Location:
GPL/branches/uniaud32-next/alsa-kernel
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/alsa-kernel/core/oss/pcm_oss.c

    r711 r746  
    16781678                if (atomic_read(&substream->mmap_count))
    16791679                        goto __direct;
    1680                 err = snd_pcm_oss_make_ready(substream);
    1681                 if (err < 0)
    1682                         return err;
    16831680                atomic_inc(&runtime->oss.rw_ref);
    16841681                if (mutex_lock_interruptible(&runtime->oss.params_lock)) {
     
    16861683                        return -ERESTARTSYS;
    16871684                }
     1685                err = snd_pcm_oss_make_ready_locked(substream);
     1686                if (err < 0)
     1687                        goto unlock;
    16881688                format = snd_pcm_oss_format_from(runtime->oss.format);
    16891689                width = snd_pcm_format_physical_width(format);
  • GPL/branches/uniaud32-next/alsa-kernel/core/seq/oss/seq_oss_midi.c

    r697 r746  
    271271snd_seq_oss_midi_setup(struct seq_oss_devinfo *dp)
    272272{
     273        spin_lock_irq(&register_lock);
    273274        dp->max_mididev = max_midi_devs;
     275        spin_unlock_irq(&register_lock);
    274276}
    275277
  • GPL/branches/uniaud32-next/alsa-kernel/core/seq/seq_clientmgr.c

    r697 r746  
    122122#ifdef CONFIG_MODULES
    123123        if (!in_interrupt()) {
    124                 static char client_requested[SNDRV_SEQ_GLOBAL_CLIENTS];
    125                 static char card_requested[SNDRV_CARDS];
     124                static DECLARE_BITMAP(client_requested, SNDRV_SEQ_GLOBAL_CLIENTS);
     125                static DECLARE_BITMAP(card_requested, SNDRV_CARDS);
     126
    126127                if (clientid < SNDRV_SEQ_GLOBAL_CLIENTS) {
    127128                        int idx;
    128129                       
    129                         if (!client_requested[clientid]) {
    130                                 client_requested[clientid] = 1;
     130                        if (!test_and_set_bit(clientid, client_requested)) {
    131131                                for (idx = 0; idx < 15; idx++) {
    132132                                        if (seq_client_load[idx] < 0)
     
    143143                                SNDRV_SEQ_CLIENTS_PER_CARD;
    144144                        if (card < snd_ecards_limit) {
    145                                 if (! card_requested[card]) {
    146                                         card_requested[card] = 1;
     145                                if (!test_and_set_bit(card, card_requested))
    147146                                        snd_request_card(card);
    148                                 }
    149147                                snd_seq_device_load_drivers();
    150148                        }
  • GPL/branches/uniaud32-next/alsa-kernel/include/sound/version.h

    r725 r746  
    11/* include/version.h */
    2 #define CONFIG_SND_VERSION "5.15.65"
     2#define CONFIG_SND_VERSION "5.15.70"
    33#define CONFIG_SND_DATE ""
  • GPL/branches/uniaud32-next/alsa-kernel/pci/emu10k1/emupcm.c

    r697 r746  
    125125        if (voices > 1) {
    126126                for (i = 1; i < voices; i++) {
    127                         epcm->voices[i] = &epcm->emu->voices[epcm->voices[0]->number + i];
     127                        epcm->voices[i] = &epcm->emu->voices[(epcm->voices[0]->number + i) % NUM_G];
    128128                        epcm->voices[i]->epcm = epcm;
    129129                }
  • GPL/branches/uniaud32-next/alsa-kernel/pci/hda/patch_realtek.c

    r733 r746  
    53685368        alc236_fixup_hp_mute_led_coefbit(codec, fix, action);
    53695369        alc236_fixup_hp_micmute_led_vref(codec, fix, action);
     5370}
     5371
     5372static inline void alc298_samsung_write_coef_pack(struct hda_codec *codec,
     5373                                                  const unsigned short coefs[2])
     5374{
     5375        alc_write_coef_idx(codec, 0x23, coefs[0]);
     5376        alc_write_coef_idx(codec, 0x25, coefs[1]);
     5377        alc_write_coef_idx(codec, 0x26, 0xb011);
     5378}
     5379
     5380struct alc298_samsung_amp_desc {
     5381        unsigned char nid;
     5382        unsigned short init_seq[2][2];
     5383};
     5384
     5385static void alc298_fixup_samsung_amp(struct hda_codec *codec,
     5386                                     const struct hda_fixup *fix, int action)
     5387{
     5388        int i, j;
     5389        static const unsigned short init_seq[][2] = {
     5390                { 0x19, 0x00 }, { 0x20, 0xc0 }, { 0x22, 0x44 }, { 0x23, 0x08 },
     5391                { 0x24, 0x85 }, { 0x25, 0x41 }, { 0x35, 0x40 }, { 0x36, 0x01 },
     5392                { 0x38, 0x81 }, { 0x3a, 0x03 }, { 0x3b, 0x81 }, { 0x40, 0x3e },
     5393                { 0x41, 0x07 }, { 0x400, 0x1 }
     5394        };
     5395        static const struct alc298_samsung_amp_desc amps[] = {
     5396                { 0x3a, { { 0x18, 0x1 }, { 0x26, 0x0 } } },
     5397                { 0x39, { { 0x18, 0x2 }, { 0x26, 0x1 } } }
     5398        };
     5399
     5400        if (action != HDA_FIXUP_ACT_INIT)
     5401                return;
     5402
     5403        for (i = 0; i < ARRAY_SIZE(amps); i++) {
     5404                alc_write_coef_idx(codec, 0x22, amps[i].nid);
     5405
     5406                for (j = 0; j < ARRAY_SIZE(amps[i].init_seq); j++)
     5407                        alc298_samsung_write_coef_pack(codec, amps[i].init_seq[j]);
     5408
     5409                for (j = 0; j < ARRAY_SIZE(init_seq); j++)
     5410                        alc298_samsung_write_coef_pack(codec, init_seq[j]);
     5411        }
    53705412}
    53715413
     
    75407582        ALC236_FIXUP_HP_MUTE_LED,
    75417583        ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF,
     7584        ALC298_FIXUP_SAMSUNG_AMP,
    75427585        ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET,
    75437586        ALC256_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET,
     
    92189261                .type = HDA_FIXUP_FUNC,
    92199262                .v.func = alc236_fixup_hp_mute_led_micmute_vref,
     9263        },
     9264        [ALC298_FIXUP_SAMSUNG_AMP] = {
     9265                .type = HDA_FIXUP_FUNC,
     9266                .v.func = alc298_fixup_samsung_amp,
     9267                .chained = true,
     9268                .chain_id = ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET
    92209269        },
    92219270#ifdef TARGET_OS2xxx
     
    1000410053        SND_PCI_QUIRK(0x10f7, 0x8338, "Panasonic CF-SZ6", ALC269_FIXUP_HEADSET_MODE),
    1000510054        SND_PCI_QUIRK(0x144d, 0xc109, "Samsung Ativ book 9 (NP900X3G)", ALC269_FIXUP_INV_DMIC),
    10006         SND_PCI_QUIRK(0x144d, 0xc169, "Samsung Notebook 9 Pen (NP930SBE-K01US)", ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET),
    10007         SND_PCI_QUIRK(0x144d, 0xc176, "Samsung Notebook 9 Pro (NP930MBE-K04US)", ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET),
    10008         SND_PCI_QUIRK(0x144d, 0xc189, "Samsung Galaxy Flex Book (NT950QCG-X716)", ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET),
    10009         SND_PCI_QUIRK(0x144d, 0xc18a, "Samsung Galaxy Book Ion (NP930XCJ-K01US)", ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET),
     10055        SND_PCI_QUIRK(0x144d, 0xc169, "Samsung Notebook 9 Pen (NP930SBE-K01US)", ALC298_FIXUP_SAMSUNG_AMP),
     10056        SND_PCI_QUIRK(0x144d, 0xc176, "Samsung Notebook 9 Pro (NP930MBE-K04US)", ALC298_FIXUP_SAMSUNG_AMP),
     10057        SND_PCI_QUIRK(0x144d, 0xc189, "Samsung Galaxy Flex Book (NT950QCG-X716)", ALC298_FIXUP_SAMSUNG_AMP),
     10058        SND_PCI_QUIRK(0x144d, 0xc18a, "Samsung Galaxy Book Ion (NP930XCJ-K01US)", ALC298_FIXUP_SAMSUNG_AMP),
    1001010059        SND_PCI_QUIRK(0x144d, 0xc740, "Samsung Ativ book 8 (NP870Z5G)", ALC269_FIXUP_ATIV_BOOK_8),
    10011         SND_PCI_QUIRK(0x144d, 0xc812, "Samsung Notebook Pen S (NT950SBE-X58)", ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET),
    10012         SND_PCI_QUIRK(0x144d, 0xc830, "Samsung Galaxy Book Ion (NT950XCJ-X716A)", ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET),
     10060        SND_PCI_QUIRK(0x144d, 0xc812, "Samsung Notebook Pen S (NT950SBE-X58)", ALC298_FIXUP_SAMSUNG_AMP),
     10061        SND_PCI_QUIRK(0x144d, 0xc830, "Samsung Galaxy Book Ion (NT950XCJ-X716A)", ALC298_FIXUP_SAMSUNG_AMP),
    1001310062        SND_PCI_QUIRK(0x144d, 0xc832, "Samsung Galaxy Book Flex Alpha (NP730QCJ)", ALC256_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET),
    1001410063        SND_PCI_QUIRK(0x1458, 0xfa53, "Gigabyte BXBT-2807", ALC283_FIXUP_HEADSET_MIC),
     
    1037010419        {.id = ALC298_FIXUP_HUAWEI_MBX_STEREO, .name = "huawei-mbx-stereo"},
    1037110420        {.id = ALC256_FIXUP_MEDION_HEADSET_NO_PRESENCE, .name = "alc256-medion-headset"},
    10372         {.id = ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET, .name = "alc298-samsung-headphone"},
     10421        {.id = ALC298_FIXUP_SAMSUNG_AMP, .name = "alc298-samsung-amp"},
    1037310422        {.id = ALC256_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET, .name = "alc256-samsung-headphone"},
    1037410423        {.id = ALC255_FIXUP_XIAOMI_HEADSET_MIC, .name = "alc255-xiaomi-headset"},
  • GPL/branches/uniaud32-next/alsa-kernel/pci/hda/patch_sigmatel.c

    r710 r746  
    214214        /* beep widgets */
    215215        hda_nid_t anabeep_nid;
     216        bool beep_power_on;
    216217
    217218        /* SPDIF-out mux */
     
    45454546        return 0;
    45464547}
     4548
     4549static int stac_check_power_status(struct hda_codec *codec, hda_nid_t nid)
     4550{
     4551#ifdef CONFIG_SND_HDA_INPUT_BEEP
     4552        struct sigmatel_spec *spec = codec->spec;
     4553#endif
     4554        int ret = snd_hda_gen_check_power_status(codec, nid);
     4555
     4556#ifdef CONFIG_SND_HDA_INPUT_BEEP
     4557        if (nid == spec->gen.beep_nid && codec->beep) {
     4558                if (codec->beep->enabled != spec->beep_power_on) {
     4559                        spec->beep_power_on = codec->beep->enabled;
     4560                        if (spec->beep_power_on)
     4561                                snd_hda_power_up_pm(codec);
     4562                        else
     4563                                snd_hda_power_down_pm(codec);
     4564                }
     4565                ret |= spec->beep_power_on;
     4566        }
     4567#endif
     4568        return ret;
     4569}
    45474570#else
    45484571#define stac_suspend            NULL
     
    45574580#ifdef CONFIG_PM
    45584581        .suspend = stac_suspend,
     4582        .check_power_status = stac_check_power_status,
    45594583#endif
    45604584};
Note: See TracChangeset for help on using the changeset viewer.