Changeset 774 for GPL/branches
- Timestamp:
- Apr 21, 2025, 1:39:12 AM (4 months ago)
- Location:
- GPL/branches/uniaud32-exp
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-exp/alsa-kernel/core/rawmidi.c
r767 r774 91 91 (IS_ENABLED(CONFIG_SND_UMP) && ((rmidi)->info_flags & SNDRV_RAWMIDI_INFO_UMP)) 92 92 #else 93 #define rawmidi_is_ump(rmidi) \ 94 (0 && ((rmidi)->info_flags & SNDRV_RAWMIDI_INFO_UMP)) 93 #define rawmidi_is_ump(rmidi) (0) 95 94 #endif 96 95 … … 203 202 runtime->appl_ptr = runtime->hw_ptr = 0; 204 203 substream->runtime = runtime; 204 #ifndef TARGET_OS2 205 205 if (rawmidi_is_ump(substream->rmidi)) 206 206 runtime->align = 3; 207 #endif 207 208 return 0; 208 209 } … … 1134 1135 #ifndef TARGET_OS2 1135 1136 struct snd_rawmidi_framing_tstamp frame = { .tv_sec = tstamp->tv_sec, .tv_nsec = tstamp->tv_nsec }; 1137 int dest_frames = 0; 1136 1138 #else 1137 1139 struct snd_rawmidi_framing_tstamp frame; … … 1139 1141 frame.tv_nsec = tstamp->tv_nsec; 1140 1142 #endif 1141 int dest_frames = 0;1142 1143 int orig_count = src_count; 1143 1144 int frame_size = sizeof(struct snd_rawmidi_framing_tstamp); … … 1944 1945 if (err < 0) 1945 1946 return err; 1947 #ifndef TARGET_OS2 1946 1948 if (rawmidi_is_ump(rmidi)) 1947 1949 dev_set_name(rmidi->dev, "umpC%iD%i", card->number, device); 1948 1950 else 1951 #endif 1949 1952 dev_set_name(rmidi->dev, "midiC%iD%i", card->number, device); 1950 1953 -
GPL/branches/uniaud32-exp/alsa-kernel/core/timer.c
r771 r774 427 427 { 428 428 struct snd_timer *timer = timeri->timer; 429 #ifndef TARGET_OS2 429 430 struct snd_timer_instance *slave, *tmp; 430 431 #endif 431 432 if (timer) { 432 433 spin_lock_irq(&timer->lock); -
GPL/branches/uniaud32-exp/alsa-kernel/hda/hda_bus_type.c
r766 r774 47 47 } 48 48 49 static int hda_bus_match(struct device *dev, conststruct device_driver *drv)49 static int hda_bus_match(struct device *dev, struct device_driver *drv) 50 50 { 51 51 struct hdac_device *hdev = dev_to_hdac_dev(dev); … … 77 77 } 78 78 79 conststruct bus_type snd_hda_bus_type = {79 /*const */struct bus_type snd_hda_bus_type = { 80 80 .name = "hdaudio", 81 81 .match = hda_bus_match, -
GPL/branches/uniaud32-exp/alsa-kernel/hda/hdac_component.c
r762 r774 6 6 #include <linux/pci.h> 7 7 #include <linux/component.h> 8 #include <linux/ctype.h> 8 9 #include <sound/core.h> 9 10 #include <sound/hdaudio.h> … … 194 195 return ret; 195 196 197 #ifndef TARGET_OS2 196 198 if (WARN_ON(!(acomp->dev && acomp->ops))) { 197 199 ret = -EINVAL; 198 200 goto out_unbind; 199 201 } 200 202 #endif 201 203 /* pin the module to avoid dynamic unbinding, but only if given */ 202 204 if (!try_module_get(acomp->ops->owner)) { -
GPL/branches/uniaud32-exp/alsa-kernel/hda/hdac_stream.c
r767 r774 112 112 113 113 if (bus->spbcap) { 114 azx_dev->spib_addr = bus->spbcap + AZX_SPB_BASE +114 azx_dev->spib_addr = (void*) bus->spbcap + AZX_SPB_BASE + 115 115 AZX_SPB_INTERVAL * idx + 116 116 AZX_SPB_SPIB; 117 117 118 azx_dev->fifo_addr = bus->spbcap + AZX_SPB_BASE +118 azx_dev->fifo_addr = (void*) bus->spbcap + AZX_SPB_BASE + 119 119 AZX_SPB_INTERVAL * idx + 120 120 AZX_SPB_MAXFIFO; … … 122 122 123 123 if (bus->drsmcap) 124 azx_dev->dpibr_addr = bus->drsmcap + AZX_DRSM_BASE +124 azx_dev->dpibr_addr = (void*) bus->drsmcap + AZX_DRSM_BASE + 125 125 AZX_DRSM_INTERVAL * idx; 126 126 } … … 289 289 struct snd_pcm_runtime *runtime; 290 290 unsigned int val; 291 #ifndef TARGET_OS2 291 292 u16 reg; 292 293 int ret; 294 #endif 293 295 294 296 if (azx_dev->substream) -
GPL/branches/uniaud32-exp/alsa-kernel/include/sound/hdaudio.h
r767 r774 36 36 * exported bus type 37 37 */ 38 extern conststruct bus_type snd_hda_bus_type;38 extern struct bus_type snd_hda_bus_type; 39 39 40 40 /* -
GPL/branches/uniaud32-exp/alsa-kernel/pci/emu10k1/io.c
r766 r774 291 291 void snd_emu1010_fpga_write(struct snd_emu10k1 *emu, u32 reg, u32 value) 292 292 { 293 #ifndef TARGET_OS2 293 294 if (snd_BUG_ON(!mutex_is_locked(&emu->emu1010.lock))) 294 295 return; 296 #endif 295 297 snd_emu1010_fpga_write_locked(emu, reg, value); 296 298 } … … 311 313 u32 mask = emu->card_capabilities->ca0108_chip ? 0x1f : 0x7f; 312 314 315 #ifndef TARGET_OS2 313 316 if (snd_BUG_ON(!mutex_is_locked(&emu->emu1010.lock))) 314 317 return; 318 #endif 315 319 if (snd_BUG_ON(reg > 0x3f)) 316 320 return; -
GPL/branches/uniaud32-exp/alsa-kernel/pci/hda/hda_intel.c
r766 r774 459 459 } 460 460 461 #ifdef NOT_USED 461 462 /* 462 463 * In BXT-P A0, HD-Audio DMA requests is later than expected, … … 474 475 azx_writel(chip, VS_EM4L, val); 475 476 } 477 #endif 476 478 477 479 /* -
GPL/branches/uniaud32-exp/alsa-kernel/pci/hda/patch_ca0132.c
r766 r774 3633 3633 static bool dspload_wait_loaded(struct hda_codec *codec) 3634 3634 { 3635 #ifndef TARGET_OS2 3635 3636 unsigned long timeout = jiffies + msecs_to_jiffies(2000); 3636 3637 … … 3642 3643 msleep(20); 3643 3644 } while (time_before(jiffies, timeout)); 3644 3645 #endif 3645 3646 codec_err(codec, "ca0132 failed to download DSP\n"); 3646 3647 return false; … … 6671 6672 #else 6672 6673 struct snd_kcontrol_new knew = { 6673 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 6674 .index = 0, \6675 .subdevice = HDA_SUBDEV_AMP_FLAG, 6674 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 6675 .index = 0, 6676 .subdevice = HDA_SUBDEV_AMP_FLAG, 6676 6677 .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | 6677 6678 SNDRV_CTL_ELEM_ACCESS_TLV_READ | 6678 SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK, 6679 .info = snd_hda_mixer_amp_volume_info, \6679 SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK, 6680 .info = snd_hda_mixer_amp_volume_info, 6680 6681 .get = snd_hda_mixer_amp_volume_get, 6681 .put = snd_hda_mixer_amp_volume_put, 6682 .put = snd_hda_mixer_amp_volume_put, 6682 6683 .tlv = { .c = snd_hda_mixer_amp_tlv }, 6683 6684 … … 6754 6755 { 6755 6756 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 6756 .index = 0, 6757 .subdevice = HDA_SUBDEV_AMP_FLAG, 6758 .info = snd_hda_mixer_amp_switch_info, 6759 .get = snd_hda_mixer_amp_switch_get, 6760 .put = snd_hda_mixer_amp_switch_put, 6757 .index = 0, 6758 .subdevice = HDA_SUBDEV_AMP_FLAG, 6759 .info = snd_hda_mixer_amp_switch_info, 6760 .get = snd_hda_mixer_amp_switch_get, 6761 .put = snd_hda_mixer_amp_switch_put, 6761 6762 }; 6762 6763 knew.name = ca0132_voicefx.name; 6763 6764 knew.private_value = HDA_COMPOSE_AMP_VAL(VOICEFX, 1, 0, HDA_INPUT); 6764 6765 6765 #endif 6766 6766 knew.info = ca0132_voicefx_info; … … 6781 6781 { 6782 6782 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 6783 .index = 0, 6784 .subdevice = HDA_SUBDEV_AMP_FLAG, 6785 .info = snd_hda_mixer_amp_switch_info, 6786 .get = snd_hda_mixer_amp_switch_get, 6787 .put = snd_hda_mixer_amp_switch_put, 6783 .index = 0, 6784 .subdevice = HDA_SUBDEV_AMP_FLAG, 6785 .info = snd_hda_mixer_amp_switch_info, 6786 .get = snd_hda_mixer_amp_switch_get, 6787 .put = snd_hda_mixer_amp_switch_put, 6788 6788 }; 6789 6789 knew.name = ca0132_alt_eq_enum.name; … … 9168 9168 /* put any chip cleanup stuffs here. */ 9169 9169 9170 #ifndef TARGET_OS2 9170 9171 if (dspload_is_loaded(codec)) 9171 9172 dsp_reset(codec); 9173 #endif 9172 9174 } 9173 9175 -
GPL/branches/uniaud32-exp/alsa-kernel/pci/hda/patch_conexant.c
r766 r774 1071 1071 .chain_id = CXT_FIXUP_HEADSET_MIC, 1072 1072 }, 1073 #endif 1073 1074 [CXT_PINCFG_SWS_JS201D] = { 1074 1075 .type = HDA_FIXUP_PINS, 1075 1076 .v.pins = cxt_pincfg_sws_js201d, 1076 1077 }, 1078 #ifdef NOT_USED 1077 1079 [CXT_PINCFG_TOP_SPEAKER] = { 1078 1080 .type = HDA_FIXUP_PINS, … … 1082 1084 }, 1083 1085 }, 1086 #endif 1084 1087 [CXT_FIXUP_HP_A_U] = { 1085 1088 .type = HDA_FIXUP_FUNC, 1086 1089 .v.func = cxt_fixup_hp_a_u, 1087 1090 }, 1088 #endif1089 1091 }; 1090 1092 -
GPL/branches/uniaud32-exp/alsa-kernel/pci/hda/patch_hdmi.c
r766 r774 2083 2083 mutex_lock(&codec->spdif_mutex); 2084 2084 spdif = snd_hda_spdif_out_of_nid(codec, cvt_nid); 2085 #ifndef TARGET_OS2 2085 2086 /* Add sanity check to pass klockwork check. 2086 2087 * This should never happen. … … 2090 2091 return true; 2091 2092 } 2093 #endif 2092 2094 non_pcm = !!(spdif->status & IEC958_AES0_NONAUDIO); 2093 2095 mutex_unlock(&codec->spdif_mutex); -
GPL/branches/uniaud32-exp/alsa-kernel/pci/hda/patch_realtek.c
r770 r774 5842 5842 static void alc_hp_mute_disable(struct hda_codec *codec, unsigned int delay) 5843 5843 { 5844 if (delay <= 0)5844 if (delay == 0) 5845 5845 delay = 75; 5846 5846 snd_hda_codec_write(codec, 0x21, 0, … … 5854 5854 static void alc_hp_enable_unmute(struct hda_codec *codec, unsigned int delay) 5855 5855 { 5856 if (delay <= 0)5856 if (delay == 0) 5857 5857 delay = 75; 5858 5858 snd_hda_codec_write(codec, 0x21, 0, … … 7799 7799 static void find_cirrus_companion_amps(struct hda_codec *cdc) 7800 7800 { 7801 #ifndef TARGET_OS2 7801 7802 struct device *dev = hda_codec_dev(cdc); 7802 7803 struct acpi_device *adev; … … 7812 7813 int i, count = 0, count_devindex = 0; 7813 7814 7814 #ifndef TARGET_OS27815 7815 for (i = 0; i < ARRAY_SIZE(acpi_ids); ++i) { 7816 7816 adev = acpi_dev_get_first_match_dev(acpi_ids[i].hid, NULL, -1); … … 8766 8766 {0} 8767 8767 }; 8768 8769 static const struct hda_pintbl ALC285_FIXUP_ASUS_GA403U_HEADSET_MIC_PINS[] = { 8770 { 0x19, 0x03a11050 }, 8771 { 0x1b, 0x03a11c30 }, 8772 {0} 8773 }; 8774 8775 static const struct hda_pintbl ALC294_FIXUP_LENOVO_MIC_LOCATION_PINS[] = { 8776 /* Change the mic location from front to right, otherwise there are 8777 two front mics with the same name, pulseaudio can't handle them. 8778 This is just a temporary workaround, after applying this fixup, 8779 there will be one "Front Mic" and one "Mic" in this machine. 8780 */ 8781 { 0x1a, 0x04a19040 }, 8782 {0} 8783 }; 8768 8784 #endif 8769 8785 … … 9899 9915 .chain_id = ALC233_FIXUP_ASUS_MIC_NO_PRESENCE 9900 9916 }, 9917 #endif 9901 9918 [ALC294_FIXUP_LENOVO_MIC_LOCATION] = { 9902 9919 .type = HDA_FIXUP_PINS, 9920 #ifndef TARGET_OS2 9903 9921 .v.pins = (const struct hda_pintbl[]) { 9904 9922 /* Change the mic location from front to right, otherwise there are … … 9910 9928 {0} 9911 9929 }, 9912 }, 9930 #else 9931 .v.pins = ALC294_FIXUP_LENOVO_MIC_LOCATION_PINS, 9932 #endif 9933 }, 9934 #ifdef NOT_USED 9913 9935 [ALC225_FIXUP_DELL_WYSE_MIC_NO_PRESENCE] = { 9914 9936 .type = HDA_FIXUP_PINS, … … 11173 11195 .v.func = alc285_fixup_asus_ga403u, 11174 11196 }, 11175 #ifdef NOT_USED11176 11197 [ALC285_FIXUP_ASUS_GA403U_HEADSET_MIC] = { 11177 11198 .type = HDA_FIXUP_PINS, 11199 #ifndef TARGET_OS2 11178 11200 .v.pins = (const struct hda_pintbl[]) { 11179 11201 { 0x19, 0x03a11050 }, … … 11181 11203 { } 11182 11204 }, 11205 #else 11206 .v.pins = ALC285_FIXUP_ASUS_GA403U_HEADSET_MIC_PINS, 11207 #endif 11183 11208 .chained = true, 11184 11209 .chain_id = ALC285_FIXUP_ASUS_GA403U_I2C_SPEAKER2_TO_DAC1 11185 11210 }, 11186 #endif11187 11211 [ALC285_FIXUP_ASUS_GU605_SPI_SPEAKER2_TO_DAC1] = { 11188 11212 .type = HDA_FIXUP_FUNC, -
GPL/branches/uniaud32-exp/include/linux/ctype.h
r615 r774 1 1 #ifndef _LINUX_CTYPE_H 2 2 #define _LINUX_CTYPE_H 3 3 _WCRTLINK extern int isdigit(int c); 4 4 #include <ctype.h> 5 5 _WCRTLINK extern int tolower(int); 6 6 7 #endif /* _LINUX_CTYPE_H */ -
GPL/branches/uniaud32-exp/include/linux/device.h
r767 r774 58 58 struct device * parent; 59 59 struct device_private *p; 60 conststruct bus_type * bus; /* type of bus device is on */60 struct bus_type * bus; /* type of bus device is on */ 61 61 struct kobject kobj; 62 62 const char *init_name; /* initial name of the device */ … … 120 120 const char *dev_name; 121 121 int (*match)(struct device *dev, struct device_driver *drv); 122 int (*uevent)( struct device *dev, struct kobj_uevent_env *env);122 int (*uevent)(const struct device *dev, struct kobj_uevent_env *env); 123 123 int (*probe)(struct device *dev); 124 124 int (*remove)(struct device *dev); -
GPL/branches/uniaud32-exp/include/linux/export.h
r767 r774 6 6 #define EXPORT_SYMBOL(a) 7 7 #define EXPORT_SYMBOL_GPL(a) 8 #define EXPORT_SYMBOL_NS_GPL(a) 8 #define EXPORT_SYMBOL_NS(a, b) 9 #define EXPORT_SYMBOL_NS_GPL(a, b) 9 10 10 11 #endif /* _LINUX_EXPORT_H */ -
GPL/branches/uniaud32-exp/include/linux/kernel.h
r767 r774 113 113 114 114 char *kvasprintf(gfp_t gfp, const char *fmt, va_list args); 115 int vscnprintf(char *buf, size_t size, const char *fmt, va_list args); 115 116 extern int hex_to_bin(char ch); 116 117 #define __ALIGN_MASK(x, mask) __ALIGN_KERNEL_MASK((x), (mask)) -
GPL/branches/uniaud32-exp/include/linux/string.h
r764 r774 33 33 ssize_t strscpy(char *dest, const char *src, size_t count); 34 34 extern bool sysfs_streq(const char *s1, const char *s2); 35 36 35 #endif 37 36 -
GPL/branches/uniaud32-exp/include/linux/sysfs.h
r615 r774 2 2 #define _LINUX_SYSFS_H 3 3 #include <linux/types.h> 4 5 int sysfs_emit(char *buf, const char *fmt, ...); 6 int sysfs_emit_at(char *buf, int at, const char *fmt, ...); 4 7 5 8 struct attribute { -
GPL/branches/uniaud32-exp/include/linux/workqueue.h
r725 r774 57 57 #define __WORK_INITIALIZER(n, f) { \ 58 58 .data = 0, \ 59 .func = ( f),\59 .func = (void(*)(void *))(f), \ 60 60 } 61 61 -
GPL/branches/uniaud32-exp/lib32/bitmap.c
r764 r774 704 704 int nmaskbits) 705 705 { 706 if (!access_ok( VERIFY_READ,ubuf, ulen))706 if (!access_ok(ubuf, ulen)) 707 707 return -EFAULT; 708 708 return __bitmap_parselist((const char *)ubuf, -
GPL/branches/uniaud32-exp/lib32/devres.c
r753 r774 794 794 goto err_inval; 795 795 796 rc = pci_request_region(pdev, i, name);796 rc = pci_request_region(pdev, i, (char*)name); 797 797 if (rc) 798 798 goto err_inval; -
GPL/branches/uniaud32-exp/lib32/sound.c
r675 r774 1018 1018 periodsize = maxperiodsize; 1019 1019 periodbytes = samples_to_bytes(periodsize); 1020 dprintf((" Per oid size error IOCTL HW Parms"));1020 dprintf((" Period size error IOCTL HW Parms")); 1021 1021 fTryAgain = TRUE; 1022 1022 goto tryagain;
Note:
See TracChangeset
for help on using the changeset viewer.