Changeset 746 for GPL/branches
- Timestamp:
- Sep 24, 2022, 11:55:33 AM (3 years ago)
- Location:
- GPL/branches/uniaud32-next/alsa-kernel
- Files:
-
- 7 edited
-
core/oss/pcm_oss.c (modified) (2 diffs)
-
core/seq/oss/seq_oss_midi.c (modified) (1 diff)
-
core/seq/seq_clientmgr.c (modified) (2 diffs)
-
include/sound/version.h (modified) (1 diff)
-
pci/emu10k1/emupcm.c (modified) (1 diff)
-
pci/hda/patch_realtek.c (modified) (5 diffs)
-
pci/hda/patch_sigmatel.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/alsa-kernel/core/oss/pcm_oss.c
r711 r746 1678 1678 if (atomic_read(&substream->mmap_count)) 1679 1679 goto __direct; 1680 err = snd_pcm_oss_make_ready(substream);1681 if (err < 0)1682 return err;1683 1680 atomic_inc(&runtime->oss.rw_ref); 1684 1681 if (mutex_lock_interruptible(&runtime->oss.params_lock)) { … … 1686 1683 return -ERESTARTSYS; 1687 1684 } 1685 err = snd_pcm_oss_make_ready_locked(substream); 1686 if (err < 0) 1687 goto unlock; 1688 1688 format = snd_pcm_oss_format_from(runtime->oss.format); 1689 1689 width = snd_pcm_format_physical_width(format); -
GPL/branches/uniaud32-next/alsa-kernel/core/seq/oss/seq_oss_midi.c
r697 r746 271 271 snd_seq_oss_midi_setup(struct seq_oss_devinfo *dp) 272 272 { 273 spin_lock_irq(®ister_lock); 273 274 dp->max_mididev = max_midi_devs; 275 spin_unlock_irq(®ister_lock); 274 276 } 275 277 -
GPL/branches/uniaud32-next/alsa-kernel/core/seq/seq_clientmgr.c
r697 r746 122 122 #ifdef CONFIG_MODULES 123 123 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 126 127 if (clientid < SNDRV_SEQ_GLOBAL_CLIENTS) { 127 128 int idx; 128 129 129 if (!client_requested[clientid]) { 130 client_requested[clientid] = 1; 130 if (!test_and_set_bit(clientid, client_requested)) { 131 131 for (idx = 0; idx < 15; idx++) { 132 132 if (seq_client_load[idx] < 0) … … 143 143 SNDRV_SEQ_CLIENTS_PER_CARD; 144 144 if (card < snd_ecards_limit) { 145 if (! card_requested[card]) { 146 card_requested[card] = 1; 145 if (!test_and_set_bit(card, card_requested)) 147 146 snd_request_card(card); 148 }149 147 snd_seq_device_load_drivers(); 150 148 } -
GPL/branches/uniaud32-next/alsa-kernel/include/sound/version.h
r725 r746 1 1 /* include/version.h */ 2 #define CONFIG_SND_VERSION "5.15. 65"2 #define CONFIG_SND_VERSION "5.15.70" 3 3 #define CONFIG_SND_DATE "" -
GPL/branches/uniaud32-next/alsa-kernel/pci/emu10k1/emupcm.c
r697 r746 125 125 if (voices > 1) { 126 126 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]; 128 128 epcm->voices[i]->epcm = epcm; 129 129 } -
GPL/branches/uniaud32-next/alsa-kernel/pci/hda/patch_realtek.c
r733 r746 5368 5368 alc236_fixup_hp_mute_led_coefbit(codec, fix, action); 5369 5369 alc236_fixup_hp_micmute_led_vref(codec, fix, action); 5370 } 5371 5372 static 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 5380 struct alc298_samsung_amp_desc { 5381 unsigned char nid; 5382 unsigned short init_seq[2][2]; 5383 }; 5384 5385 static 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 } 5370 5412 } 5371 5413 … … 7540 7582 ALC236_FIXUP_HP_MUTE_LED, 7541 7583 ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF, 7584 ALC298_FIXUP_SAMSUNG_AMP, 7542 7585 ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET, 7543 7586 ALC256_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET, … … 9218 9261 .type = HDA_FIXUP_FUNC, 9219 9262 .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 9220 9269 }, 9221 9270 #ifdef TARGET_OS2xxx … … 10004 10053 SND_PCI_QUIRK(0x10f7, 0x8338, "Panasonic CF-SZ6", ALC269_FIXUP_HEADSET_MODE), 10005 10054 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), 10010 10059 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), 10013 10062 SND_PCI_QUIRK(0x144d, 0xc832, "Samsung Galaxy Book Flex Alpha (NP730QCJ)", ALC256_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET), 10014 10063 SND_PCI_QUIRK(0x1458, 0xfa53, "Gigabyte BXBT-2807", ALC283_FIXUP_HEADSET_MIC), … … 10370 10419 {.id = ALC298_FIXUP_HUAWEI_MBX_STEREO, .name = "huawei-mbx-stereo"}, 10371 10420 {.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"}, 10373 10422 {.id = ALC256_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET, .name = "alc256-samsung-headphone"}, 10374 10423 {.id = ALC255_FIXUP_XIAOMI_HEADSET_MIC, .name = "alc255-xiaomi-headset"}, -
GPL/branches/uniaud32-next/alsa-kernel/pci/hda/patch_sigmatel.c
r710 r746 214 214 /* beep widgets */ 215 215 hda_nid_t anabeep_nid; 216 bool beep_power_on; 216 217 217 218 /* SPDIF-out mux */ … … 4545 4546 return 0; 4546 4547 } 4548 4549 static 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 } 4547 4570 #else 4548 4571 #define stac_suspend NULL … … 4557 4580 #ifdef CONFIG_PM 4558 4581 .suspend = stac_suspend, 4582 .check_power_status = stac_check_power_status, 4559 4583 #endif 4560 4584 };
Note:
See TracChangeset
for help on using the changeset viewer.
