Changeset 755
- Timestamp:
- Nov 6, 2022, 5:05:32 AM (3 years ago)
- Location:
- GPL/branches/uniaud32-exp/alsa-kernel
- Files:
-
- 14 edited
-
core/control.c (modified) (1 diff)
-
include/sound/control.h (modified) (1 diff)
-
include/sound/soc-acpi-intel-match.h (modified) (2 diffs)
-
include/sound/version.h (modified) (1 diff)
-
pci/ac97/ac97_codec.c (modified) (4 diffs)
-
pci/au88x0/au88x0.h (modified) (2 diffs)
-
pci/au88x0/au88x0_core.c (modified) (1 diff)
-
pci/ca0106/ca0106_mixer.c (modified) (1 diff)
-
pci/emu10k1/emumixer.c (modified) (1 diff)
-
pci/hda/hda_codec.c (modified) (2 diffs)
-
pci/hda/patch_realtek.c (modified) (4 diffs)
-
pci/rme9652/hdsp.c (modified) (13 diffs)
-
pci/rme9652/rme9652.c (modified) (10 diffs)
-
synth/emux/emux.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-exp/alsa-kernel/core/control.c
r750 r755 766 766 } 767 767 EXPORT_SYMBOL(snd_ctl_rename_id); 768 769 /** 770 * snd_ctl_rename - rename the control on the card 771 * @card: the card instance 772 * @kctl: the control to rename 773 * @name: the new name 774 * 775 * Renames the specified control on the card to the new name. 776 * 777 * Make sure to take the control write lock - down_write(&card->controls_rwsem). 778 */ 779 void snd_ctl_rename(struct snd_card *card, struct snd_kcontrol *kctl, 780 const char *name) 781 { 782 remove_hash_entries(card, kctl); 783 784 if (strscpy(kctl->id.name, name, sizeof(kctl->id.name)) < 0) 785 pr_warn("ALSA: Renamed control new name '%s' truncated to '%s'\n", 786 name, kctl->id.name); 787 788 add_hash_entries(card, kctl); 789 } 790 EXPORT_SYMBOL(snd_ctl_rename); 768 791 769 792 #ifndef CONFIG_SND_CTL_FAST_LOOKUP -
GPL/branches/uniaud32-exp/alsa-kernel/include/sound/control.h
r750 r755 139 139 int snd_ctl_remove_id(struct snd_card * card, struct snd_ctl_elem_id *id); 140 140 int snd_ctl_rename_id(struct snd_card * card, struct snd_ctl_elem_id *src_id, struct snd_ctl_elem_id *dst_id); 141 void snd_ctl_rename(struct snd_card *card, struct snd_kcontrol *kctl, const char *name); 141 142 int snd_ctl_activate_id(struct snd_card *card, struct snd_ctl_elem_id *id, int active); 142 143 struct snd_kcontrol *snd_ctl_find_numid(struct snd_card * card, unsigned int numid); -
GPL/branches/uniaud32-exp/alsa-kernel/include/sound/soc-acpi-intel-match.h
r750 r755 31 31 extern struct snd_soc_acpi_mach snd_soc_acpi_intel_jsl_machines[]; 32 32 extern struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_machines[]; 33 extern struct snd_soc_acpi_mach snd_soc_acpi_intel_rpl_machines[]; 33 34 extern struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_machines[]; 34 35 … … 39 40 extern struct snd_soc_acpi_mach snd_soc_acpi_intel_tgl_sdw_machines[]; 40 41 extern struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_sdw_machines[]; 42 extern struct snd_soc_acpi_mach snd_soc_acpi_intel_rpl_sdw_machines[]; 41 43 extern struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_sdw_machines[]; 42 44 -
GPL/branches/uniaud32-exp/alsa-kernel/include/sound/version.h
r754 r755 1 1 /* include/version.h */ 2 #define CONFIG_SND_VERSION "6.0. 3"2 #define CONFIG_SND_VERSION "6.0.7" 3 3 #define CONFIG_SND_DATE "" -
GPL/branches/uniaud32-exp/alsa-kernel/pci/ac97/ac97_codec.c
r711 r755 2057 2057 if (err < 0) { 2058 2058 ac97_err(ac97, "Can't register ac97 bus\n"); 2059 put_device(&ac97->dev); 2059 2060 ac97->dev.bus = NULL; 2060 2061 return err; … … 2709 2710 static void set_ctl_name(char *dst, const char *src, const char *suffix) 2710 2711 { 2711 if (suffix) 2712 sprintf(dst, "%s %s", src, suffix); 2713 else 2714 strcpy(dst, src); 2715 } 2712 const size_t msize = SNDRV_CTL_ELEM_ID_NAME_MAXLEN; 2713 2714 if (suffix) { 2715 if (snprintf(dst, msize, "%s %s", src, suffix) >= msize) 2716 pr_warn("ALSA: AC97 control name '%s %s' truncated to '%s'\n", 2717 src, suffix, dst); 2718 } else { 2719 if (strscpy(dst, src, msize) < 0) 2720 pr_warn("ALSA: AC97 control name '%s' truncated to '%s'\n", 2721 src, dst); 2722 } 2723 } 2716 2724 2717 2725 /* remove the control with the given name and optional suffix */ … … 2740 2748 { 2741 2749 struct snd_kcontrol *kctl = ctl_find(ac97, src, suffix); 2750 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; 2751 2742 2752 if (kctl) { 2743 set_ctl_name(kctl->id.name, dst, suffix); 2753 set_ctl_name(name, dst, suffix); 2754 snd_ctl_rename(ac97->bus->card, kctl, name); 2744 2755 return 0; 2745 2756 } … … 2760 2771 { 2761 2772 struct snd_kcontrol *kctl1, *kctl2; 2773 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; 2774 2762 2775 kctl1 = ctl_find(ac97, s1, suffix); 2763 2776 kctl2 = ctl_find(ac97, s2, suffix); 2764 2777 if (kctl1 && kctl2) { 2765 set_ctl_name(kctl1->id.name, s2, suffix); 2766 set_ctl_name(kctl2->id.name, s1, suffix); 2778 set_ctl_name(name, s2, suffix); 2779 snd_ctl_rename(ac97->bus->card, kctl1, name); 2780 2781 set_ctl_name(name, s1, suffix); 2782 snd_ctl_rename(ac97->bus->card, kctl2, name); 2783 2767 2784 return 0; 2768 2785 } -
GPL/branches/uniaud32-exp/alsa-kernel/pci/au88x0/au88x0.h
r615 r755 142 142 stream_t dma_wt[NR_WT]; 143 143 wt_voice_t wt_voice[NR_WT]; /* WT register cache. */ 144 charmixwt[(NR_WT / NR_WTPB) * 6]; /* WT mixin objects */144 s8 mixwt[(NR_WT / NR_WTPB) * 6]; /* WT mixin objects */ 145 145 #endif 146 146 … … 236 236 static int vortex_adb_allocroute(vortex_t * vortex, int dma, int nr_ch, 237 237 int dir, int type, int subdev); 238 static charvortex_adb_checkinout(vortex_t * vortex, int resmap[], int out,239 int restype);238 static int vortex_adb_checkinout(vortex_t * vortex, int resmap[], int out, 239 int restype); 240 240 #ifndef CHIP_AU8810 241 241 static int vortex_wt_allocroute(vortex_t * vortex, int dma, int nr_ch); -
GPL/branches/uniaud32-exp/alsa-kernel/pci/au88x0/au88x0_core.c
r697 r755 1999 1999 restype: Indicates type of resource to be checked in or out. 2000 2000 */ 2001 static char2001 static int 2002 2002 vortex_adb_checkinout(vortex_t * vortex, int resmap[], int out, int restype) 2003 2003 { -
GPL/branches/uniaud32-exp/alsa-kernel/pci/ca0106/ca0106_mixer.c
r738 r755 721 721 struct snd_kcontrol *kctl = ctl_find(card, src); 722 722 if (kctl) { 723 s trcpy(kctl->id.name, dst);723 snd_ctl_rename(card, kctl, dst); 724 724 return 0; 725 725 } -
GPL/branches/uniaud32-exp/alsa-kernel/pci/emu10k1/emumixer.c
r697 r755 1768 1768 struct snd_kcontrol *kctl = ctl_find(card, src); 1769 1769 if (kctl) { 1770 s trcpy(kctl->id.name, dst);1770 snd_ctl_rename(card, kctl, dst); 1771 1771 return 0; 1772 1772 } -
GPL/branches/uniaud32-exp/alsa-kernel/pci/hda/hda_codec.c
r754 r755 944 944 945 945 codec->bus = bus; 946 codec->depop_delay = -1; 947 codec->fixup_id = HDA_FIXUP_ID_NOT_SET; 946 codec->core.type = HDA_DEV_LEGACY; 947 948 return codec; 949 } 950 EXPORT_SYMBOL_GPL(snd_hda_codec_device_init); 951 952 /** 953 * snd_hda_codec_new - create a HDA codec 954 * @bus: the bus to assign 955 * @card: card for this codec 956 * @codec_addr: the codec address 957 * @codecp: the pointer to store the generated codec 958 * 959 * Returns 0 if successful, or a negative error code. 960 */ 961 int snd_hda_codec_new(struct hda_bus *bus, struct snd_card *card, 962 unsigned int codec_addr, struct hda_codec **codecp) 963 { 964 struct hda_codec *codec; 965 int ret; 966 967 codec = snd_hda_codec_device_init(bus, codec_addr, "hdaudioC%dD%d", 968 card->number, codec_addr); 969 if (IS_ERR(codec)) 970 return PTR_ERR(codec); 971 *codecp = codec; 972 973 ret = snd_hda_codec_device_new(bus, card, codec_addr, *codecp, true); 974 if (ret) 975 put_device(hda_codec_dev(*codecp)); 976 977 return ret; 978 } 979 EXPORT_SYMBOL_GPL(snd_hda_codec_new); 980 981 int snd_hda_codec_device_new(struct hda_bus *bus, struct snd_card *card, 982 unsigned int codec_addr, struct hda_codec *codec, 983 bool snddev_managed) 984 { 985 char component[31]; 986 hda_nid_t fg; 987 int err; 988 static const struct snd_device_ops dev_ops = { 989 .dev_register = snd_hda_codec_dev_register, 990 .dev_free = snd_hda_codec_dev_free, 991 }; 992 993 dev_dbg(card->dev, "%s: entry\n", __func__); 994 995 if (snd_BUG_ON(!bus)) 996 return -EINVAL; 997 if (snd_BUG_ON(codec_addr > HDA_MAX_CODEC_ADDRESS)) 998 return -EINVAL; 999 948 1000 codec->core.dev.release = snd_hda_codec_dev_release; 949 1001 codec->core.exec_verb = codec_exec_verb; 950 codec->core.type = HDA_DEV_LEGACY; 951 1002 1003 codec->card = card; 1004 codec->addr = codec_addr; 952 1005 mutex_init(&codec->spdif_mutex); 953 1006 mutex_init(&codec->control_mutex); … … 962 1015 INIT_LIST_HEAD(&codec->conn_list); 963 1016 INIT_LIST_HEAD(&codec->pcm_list_head); 964 INIT_DELAYED_WORK(&codec->jackpoll_work, hda_jackpoll_work);965 1017 refcount_set(&codec->pcm_ref, 1); 966 1018 init_waitqueue_head(&codec->remove_sleep); 967 1019 968 return codec; 969 } 970 EXPORT_SYMBOL_GPL(snd_hda_codec_device_init); 971 972 /** 973 * snd_hda_codec_new - create a HDA codec 974 * @bus: the bus to assign 975 * @card: card for this codec 976 * @codec_addr: the codec address 977 * @codecp: the pointer to store the generated codec 978 * 979 * Returns 0 if successful, or a negative error code. 980 */ 981 int snd_hda_codec_new(struct hda_bus *bus, struct snd_card *card, 982 unsigned int codec_addr, struct hda_codec **codecp) 983 { 984 struct hda_codec *codec; 985 int ret; 986 987 codec = snd_hda_codec_device_init(bus, codec_addr, "hdaudioC%dD%d", 988 card->number, codec_addr); 989 if (IS_ERR(codec)) 990 return PTR_ERR(codec); 991 *codecp = codec; 992 993 ret = snd_hda_codec_device_new(bus, card, codec_addr, *codecp, true); 994 if (ret) 995 put_device(hda_codec_dev(*codecp)); 996 997 return ret; 998 } 999 EXPORT_SYMBOL_GPL(snd_hda_codec_new); 1000 1001 int snd_hda_codec_device_new(struct hda_bus *bus, struct snd_card *card, 1002 unsigned int codec_addr, struct hda_codec *codec, 1003 bool snddev_managed) 1004 { 1005 char component[31]; 1006 hda_nid_t fg; 1007 int err; 1008 static const struct snd_device_ops dev_ops = { 1009 .dev_register = snd_hda_codec_dev_register, 1010 .dev_free = snd_hda_codec_dev_free, 1011 }; 1012 1013 dev_dbg(card->dev, "%s: entry\n", __func__); 1014 1015 if (snd_BUG_ON(!bus)) 1016 return -EINVAL; 1017 if (snd_BUG_ON(codec_addr > HDA_MAX_CODEC_ADDRESS)) 1018 return -EINVAL; 1019 1020 codec->card = card; 1021 codec->addr = codec_addr; 1020 INIT_DELAYED_WORK(&codec->jackpoll_work, hda_jackpoll_work); 1021 codec->depop_delay = -1; 1022 codec->fixup_id = HDA_FIXUP_ID_NOT_SET; 1022 1023 1023 1024 #ifdef CONFIG_PM -
GPL/branches/uniaud32-exp/alsa-kernel/pci/hda/patch_realtek.c
r754 r755 2506 2506 kctl = snd_hda_find_mixer_ctl(codec, oldname); 2507 2507 if (kctl) 2508 s trcpy(kctl->id.name, newname);2508 snd_ctl_rename(codec->card, kctl, newname); 2509 2509 } 2510 2510 … … 10359 10359 SND_PCI_QUIRK(0x103c, 0x88d0, "HP Pavilion 15-eh1xxx (mainboard 88D0)", ALC287_FIXUP_HP_GPIO_LED), 10360 10360 SND_PCI_QUIRK(0x103c, 0x8902, "HP OMEN 16", ALC285_FIXUP_HP_MUTE_LED), 10361 SND_PCI_QUIRK(0x103c, 0x896d, "HP ZBook Firefly 16 G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED), 10361 10362 SND_PCI_QUIRK(0x103c, 0x896e, "HP EliteBook x360 830 G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED), 10362 10363 SND_PCI_QUIRK(0x103c, 0x8971, "HP EliteBook 830 G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED), … … 10377 10378 SND_PCI_QUIRK(0x103c, 0x89ac, "HP EliteBook 640 G9", ALC236_FIXUP_HP_GPIO_LED), 10378 10379 SND_PCI_QUIRK(0x103c, 0x89ae, "HP EliteBook 650 G9", ALC236_FIXUP_HP_GPIO_LED), 10380 SND_PCI_QUIRK(0x103c, 0x89c0, "HP ZBook Power 15.6 G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED), 10379 10381 SND_PCI_QUIRK(0x103c, 0x89c3, "Zbook Studio G9", ALC245_FIXUP_CS35L41_SPI_4_HP_GPIO_LED), 10380 10382 SND_PCI_QUIRK(0x103c, 0x89c6, "Zbook Fury 17 G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED), … … 10431 10433 SND_PCI_QUIRK(0x1043, 0x1d42, "ASUS Zephyrus G14 2022", ALC289_FIXUP_ASUS_GA401), 10432 10434 SND_PCI_QUIRK(0x1043, 0x1d4e, "ASUS TM420", ALC256_FIXUP_ASUS_HPE), 10435 SND_PCI_QUIRK(0x1043, 0x1e02, "ASUS UX3402", ALC245_FIXUP_CS35L41_SPI_2), 10433 10436 SND_PCI_QUIRK(0x1043, 0x1e11, "ASUS Zephyrus G15", ALC289_FIXUP_ASUS_GA502), 10434 10437 SND_PCI_QUIRK(0x1043, 0x1e51, "ASUS Zephyrus M15", ALC294_FIXUP_ASUS_GU502_PINS), -
GPL/branches/uniaud32-exp/alsa-kernel/pci/rme9652/hdsp.c
r739 r755 434 434 struct snd_rawmidi_substream *input; 435 435 struct snd_rawmidi_substream *output; 436 charistimer; /* timer in use */436 signed char istimer; /* timer in use */ 437 437 struct timer_list timer; 438 438 spinlock_t lock; … … 481 481 int running; 482 482 int system_sample_rate; 483 const char*channel_map;483 const signed char *channel_map; 484 484 int dev; 485 485 int irq; … … 503 503 */ 504 504 505 static const char channel_map_df_ss[HDSP_MAX_CHANNELS] = {505 static const signed char channel_map_df_ss[HDSP_MAX_CHANNELS] = { 506 506 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 507 507 18, 19, 20, 21, 22, 23, 24, 25 … … 518 518 }; 519 519 520 static const char channel_map_ds[HDSP_MAX_CHANNELS] = {520 static const signed char channel_map_ds[HDSP_MAX_CHANNELS] = { 521 521 /* ADAT channels are remapped */ 522 522 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, … … 527 527 }; 528 528 529 static const char channel_map_H9632_ss[HDSP_MAX_CHANNELS] = {529 static const signed char channel_map_H9632_ss[HDSP_MAX_CHANNELS] = { 530 530 /* ADAT channels */ 531 531 0, 1, 2, 3, 4, 5, 6, 7, … … 541 541 }; 542 542 543 static const char channel_map_H9632_ds[HDSP_MAX_CHANNELS] = {543 static const signed char channel_map_H9632_ds[HDSP_MAX_CHANNELS] = { 544 544 /* ADAT */ 545 545 1, 3, 5, 7, … … 555 555 }; 556 556 557 static const char channel_map_H9632_qs[HDSP_MAX_CHANNELS] = {557 static const signed char channel_map_H9632_qs[HDSP_MAX_CHANNELS] = { 558 558 /* ADAT is disabled in this mode */ 559 559 /* SPDIF */ … … 3940 3940 } 3941 3941 3942 static char *hdsp_channel_buffer_location(struct hdsp *hdsp,3942 static signed char *hdsp_channel_buffer_location(struct hdsp *hdsp, 3943 3943 int stream, 3944 3944 int channel) … … 3965 3965 { 3966 3966 struct hdsp *hdsp = snd_pcm_substream_chip(substream); 3967 char *channel_buf;3967 signed char *channel_buf; 3968 3968 3969 3969 if (snd_BUG_ON(pos + count > HDSP_CHANNEL_BUFFER_BYTES)) … … 3983 3983 { 3984 3984 struct hdsp *hdsp = snd_pcm_substream_chip(substream); 3985 char *channel_buf;3985 signed char *channel_buf; 3986 3986 3987 3987 channel_buf = hdsp_channel_buffer_location(hdsp, substream->pstr->stream, channel); … … 3997 3997 { 3998 3998 struct hdsp *hdsp = snd_pcm_substream_chip(substream); 3999 char *channel_buf;3999 signed char *channel_buf; 4000 4000 4001 4001 if (snd_BUG_ON(pos + count > HDSP_CHANNEL_BUFFER_BYTES)) … … 4015 4015 { 4016 4016 struct hdsp *hdsp = snd_pcm_substream_chip(substream); 4017 char *channel_buf;4017 signed char *channel_buf; 4018 4018 4019 4019 channel_buf = hdsp_channel_buffer_location(hdsp, substream->pstr->stream, channel); … … 4029 4029 { 4030 4030 struct hdsp *hdsp = snd_pcm_substream_chip(substream); 4031 char *channel_buf;4031 signed char *channel_buf; 4032 4032 4033 4033 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel); -
GPL/branches/uniaud32-exp/alsa-kernel/pci/rme9652/rme9652.c
r737 r755 231 231 int last_adat_sample_rate; /* ... induced rate changes */ 232 232 233 const char *channel_map;233 const signed char *channel_map; 234 234 235 235 struct snd_card *card; … … 248 248 */ 249 249 250 static const char channel_map_9652_ss[26] = {250 static const signed char channel_map_9652_ss[26] = { 251 251 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 252 252 18, 19, 20, 21, 22, 23, 24, 25 253 253 }; 254 254 255 static const char channel_map_9636_ss[26] = {255 static const signed char channel_map_9636_ss[26] = { 256 256 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 257 257 /* channels 16 and 17 are S/PDIF */ … … 261 261 }; 262 262 263 static const char channel_map_9652_ds[26] = {263 static const signed char channel_map_9652_ds[26] = { 264 264 /* ADAT channels are remapped */ 265 265 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, … … 270 270 }; 271 271 272 static const char channel_map_9636_ds[26] = {272 static const signed char channel_map_9636_ds[26] = { 273 273 /* ADAT channels are remapped */ 274 274 1, 3, 5, 7, 9, 11, 13, 15, … … 1820 1820 } 1821 1821 1822 static char *rme9652_channel_buffer_location(struct snd_rme9652 *rme9652,1822 static signed char *rme9652_channel_buffer_location(struct snd_rme9652 *rme9652, 1823 1823 int stream, 1824 1824 int channel) … … 1848 1848 { 1849 1849 struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream); 1850 char *channel_buf;1850 signed char *channel_buf; 1851 1851 1852 1852 if (snd_BUG_ON(pos + count > RME9652_CHANNEL_BUFFER_BYTES)) … … 1868 1868 { 1869 1869 struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream); 1870 char *channel_buf;1870 signed char *channel_buf; 1871 1871 1872 1872 channel_buf = rme9652_channel_buffer_location(rme9652, … … 1884 1884 { 1885 1885 struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream); 1886 char *channel_buf;1886 signed char *channel_buf; 1887 1887 1888 1888 if (snd_BUG_ON(pos + count > RME9652_CHANNEL_BUFFER_BYTES)) … … 1904 1904 { 1905 1905 struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream); 1906 char *channel_buf;1906 signed char *channel_buf; 1907 1907 1908 1908 channel_buf = rme9652_channel_buffer_location(rme9652, … … 1920 1920 { 1921 1921 struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream); 1922 char *channel_buf;1922 signed char *channel_buf; 1923 1923 1924 1924 channel_buf = rme9652_channel_buffer_location (rme9652, -
GPL/branches/uniaud32-exp/alsa-kernel/synth/emux/emux.c
r711 r755 133 133 int snd_emux_free(struct snd_emux *emu) 134 134 { 135 unsigned long flags;136 137 135 if (! emu) 138 136 return -EINVAL; 139 137 140 spin_lock_irqsave(&emu->voice_lock, flags); 141 if (emu->timer_active) 142 del_timer(&emu->tlist); 143 spin_unlock_irqrestore(&emu->voice_lock, flags); 138 del_timer_sync(&emu->tlist); 144 139 145 140 snd_emux_proc_free(emu);
Note:
See TracChangeset
for help on using the changeset viewer.
