Changeset 691
- Timestamp:
- Aug 7, 2021, 12:08:58 AM (4 years ago)
- Location:
- GPL/branches/uniaud32-next/alsa-kernel
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/alsa-kernel/core/pcm_native.c
r678 r691 251 251 return false; 252 252 253 if (substream->ops->mmap || 254 (substream->dma_buffer.dev.type != SNDRV_DMA_TYPE_DEV && 255 substream->dma_buffer.dev.type != SNDRV_DMA_TYPE_DEV_UC)) 253 if (substream->ops->mmap) 256 254 return true; 257 255 258 return dma_can_mmap(substream->dma_buffer.dev.dev); 256 switch (substream->dma_buffer.dev.type) { 257 case SNDRV_DMA_TYPE_UNKNOWN: 258 return false; 259 case SNDRV_DMA_TYPE_CONTINUOUS: 260 case SNDRV_DMA_TYPE_VMALLOC: 261 return true; 262 default: 263 return dma_can_mmap(substream->dma_buffer.dev.dev); 264 } 259 265 } 260 266 … … 3106 3112 snd_pcm_stream_lock_irq(substream); 3107 3113 /* FIXME: we should consider the boundary for the sync from app */ 3108 if (!(sflags & SNDRV_PCM_SYNC_PTR_APPL)) 3109 control->appl_ptr = scontrol.appl_ptr; 3110 else 3114 if (!(sflags & SNDRV_PCM_SYNC_PTR_APPL)) { 3115 err = pcm_lib_apply_appl_ptr(substream, 3116 scontrol.appl_ptr); 3117 if (err < 0) { 3118 snd_pcm_stream_unlock_irq(substream); 3119 return err; 3120 } 3121 } else 3111 3122 scontrol.appl_ptr = control->appl_ptr % boundary; 3112 3123 if (!(sflags & SNDRV_PCM_SYNC_PTR_AVAIL_MIN)) -
GPL/branches/uniaud32-next/alsa-kernel/include/sound/version.h
r687 r691 1 1 /* include/version.h */ 2 #define CONFIG_SND_VERSION "5.10.5 0"2 #define CONFIG_SND_VERSION "5.10.56" 3 3 #define CONFIG_SND_DATE "" -
GPL/branches/uniaud32-next/alsa-kernel/isa/cmi8330.c
r629 r691 549 549 if (acard->sb->hardware != SB_HW_16) { 550 550 snd_printk(KERN_ERR PFX "SB16 not found during probe\n"); 551 return err;551 return -ENODEV; 552 552 } 553 553 -
GPL/branches/uniaud32-next/alsa-kernel/isa/sb/sb16_csp.c
r685 r691 816 816 snd_sbmixer_write(p->chip, SB_DSP4_PCM_DEV, mixL & 0x7); 817 817 snd_sbmixer_write(p->chip, SB_DSP4_PCM_DEV + 1, mixR & 0x7); 818 spin_unlock_irqrestore(&p->chip->mixer_lock, flags); 818 819 819 820 spin_lock(&p->chip->reg_lock); … … 855 856 856 857 /* restore PCM volume */ 858 spin_lock_irqsave(&p->chip->mixer_lock, flags); 857 859 snd_sbmixer_write(p->chip, SB_DSP4_PCM_DEV, mixL); 858 860 snd_sbmixer_write(p->chip, SB_DSP4_PCM_DEV + 1, mixR); … … 880 882 snd_sbmixer_write(p->chip, SB_DSP4_PCM_DEV, mixL & 0x7); 881 883 snd_sbmixer_write(p->chip, SB_DSP4_PCM_DEV + 1, mixR & 0x7); 884 spin_unlock_irqrestore(&p->chip->mixer_lock, flags); 882 885 883 886 spin_lock(&p->chip->reg_lock); … … 894 897 895 898 /* restore PCM volume */ 899 spin_lock_irqsave(&p->chip->mixer_lock, flags); 896 900 snd_sbmixer_write(p->chip, SB_DSP4_PCM_DEV, mixL); 897 901 snd_sbmixer_write(p->chip, SB_DSP4_PCM_DEV + 1, mixR); … … 1074 1078 1075 1079 down_write(&card->controls_rwsem); 1076 if (p->qsound_switch) 1080 if (p->qsound_switch) { 1077 1081 snd_ctl_remove(card, p->qsound_switch); 1078 if (p->qsound_space) 1082 p->qsound_switch = NULL; 1083 } 1084 if (p->qsound_space) { 1079 1085 snd_ctl_remove(card, p->qsound_space); 1086 p->qsound_space = NULL; 1087 } 1080 1088 up_write(&card->controls_rwsem); 1081 1089 -
GPL/branches/uniaud32-next/alsa-kernel/pci/hda/hda_tegra.c
r670 r691 303 303 struct device_node *np = pdev->dev.of_node; 304 304 305 if (irq_id < 0) 306 return irq_id; 307 305 308 err = hda_tegra_init_chip(chip, pdev); 306 309 if (err) -
GPL/branches/uniaud32-next/alsa-kernel/pci/hda/patch_hdmi.c
r685 r691 1947 1947 SND_PCI_QUIRK(0x103c, 0x870f, "HP", 1), 1948 1948 SND_PCI_QUIRK(0x103c, 0x871a, "HP", 1), 1949 SND_PCI_QUIRK(0x1462, 0xec94, "MS-7C94", 1), 1949 1950 {} 1950 1951 }; -
GPL/branches/uniaud32-next/alsa-kernel/pci/hda/patch_realtek.c
r687 r691 9552 9552 SND_PCI_QUIRK(0x17aa, 0x3176, "ThinkCentre Station", ALC283_FIXUP_HEADSET_MIC), 9553 9553 SND_PCI_QUIRK(0x17aa, 0x3178, "ThinkCentre Station", ALC283_FIXUP_HEADSET_MIC), 9554 SND_PCI_QUIRK(0x17aa, 0x31af, "ThinkCentre Station", ALC623_FIXUP_LENOVO_THINKSTATION_P340), 9554 9555 SND_PCI_QUIRK(0x17aa, 0x3818, "Lenovo C940", ALC298_FIXUP_LENOVO_SPK_VOLUME), 9555 9556 SND_PCI_QUIRK(0x17aa, 0x3827, "Ideapad S740", ALC285_FIXUP_IDEAPAD_S740_COEF),
Note:
See TracChangeset
for help on using the changeset viewer.