diff options
| -rw-r--r-- | include/sound/sb16_csp.h | 9 | ||||
| -rw-r--r-- | sound/atmel/abdac.c | 2 | ||||
| -rw-r--r-- | sound/atmel/ac97c.c | 2 | ||||
| -rw-r--r-- | sound/pci/cs5535audio/cs5535audio_pcm.c | 4 | ||||
| -rw-r--r-- | sound/pci/hda/hda_eld.c | 2 | ||||
| -rw-r--r-- | sound/pci/hda/patch_conexant.c | 4 | ||||
| -rw-r--r-- | sound/pci/rme9652/hdspm.c | 8 | ||||
| -rw-r--r-- | sound/spi/at73c213.c | 2 |
8 files changed, 22 insertions, 11 deletions
diff --git a/include/sound/sb16_csp.h b/include/sound/sb16_csp.h index 736eac71d053..af1b49e982df 100644 --- a/include/sound/sb16_csp.h +++ b/include/sound/sb16_csp.h | |||
| @@ -99,7 +99,14 @@ struct snd_sb_csp_info { | |||
| 99 | /* get CSP information */ | 99 | /* get CSP information */ |
| 100 | #define SNDRV_SB_CSP_IOCTL_INFO _IOR('H', 0x10, struct snd_sb_csp_info) | 100 | #define SNDRV_SB_CSP_IOCTL_INFO _IOR('H', 0x10, struct snd_sb_csp_info) |
| 101 | /* load microcode to CSP */ | 101 | /* load microcode to CSP */ |
| 102 | #define SNDRV_SB_CSP_IOCTL_LOAD_CODE _IOW('H', 0x11, struct snd_sb_csp_microcode) | 102 | /* NOTE: struct snd_sb_csp_microcode overflows the max size (13 bits) |
| 103 | * defined for some architectures like MIPS, and it leads to build errors. | ||
| 104 | * (x86 and co have 14-bit size, thus it's valid, though.) | ||
| 105 | * As a workaround for skipping the size-limit check, here we don't use the | ||
| 106 | * normal _IOW() macro but _IOC() with the manual argument. | ||
| 107 | */ | ||
| 108 | #define SNDRV_SB_CSP_IOCTL_LOAD_CODE \ | ||
| 109 | _IOC(_IOC_WRITE, 'H', 0x11, sizeof(struct snd_sb_csp_microcode)) | ||
| 103 | /* unload microcode from CSP */ | 110 | /* unload microcode from CSP */ |
| 104 | #define SNDRV_SB_CSP_IOCTL_UNLOAD_CODE _IO('H', 0x12) | 111 | #define SNDRV_SB_CSP_IOCTL_UNLOAD_CODE _IO('H', 0x12) |
| 105 | /* start CSP */ | 112 | /* start CSP */ |
diff --git a/sound/atmel/abdac.c b/sound/atmel/abdac.c index 6e2409181895..bfee60c4d4c0 100644 --- a/sound/atmel/abdac.c +++ b/sound/atmel/abdac.c | |||
| @@ -599,4 +599,4 @@ module_exit(atmel_abdac_exit); | |||
| 599 | 599 | ||
| 600 | MODULE_LICENSE("GPL"); | 600 | MODULE_LICENSE("GPL"); |
| 601 | MODULE_DESCRIPTION("Driver for Atmel Audio Bitstream DAC (ABDAC)"); | 601 | MODULE_DESCRIPTION("Driver for Atmel Audio Bitstream DAC (ABDAC)"); |
| 602 | MODULE_AUTHOR("Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>"); | 602 | MODULE_AUTHOR("Hans-Christian Egtvedt <egtvedt@samfundet.no>"); |
diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c index b310702c646e..ac35222ad0dd 100644 --- a/sound/atmel/ac97c.c +++ b/sound/atmel/ac97c.c | |||
| @@ -1199,4 +1199,4 @@ module_exit(atmel_ac97c_exit); | |||
| 1199 | 1199 | ||
| 1200 | MODULE_LICENSE("GPL"); | 1200 | MODULE_LICENSE("GPL"); |
| 1201 | MODULE_DESCRIPTION("Driver for Atmel AC97 controller"); | 1201 | MODULE_DESCRIPTION("Driver for Atmel AC97 controller"); |
| 1202 | MODULE_AUTHOR("Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>"); | 1202 | MODULE_AUTHOR("Hans-Christian Egtvedt <egtvedt@samfundet.no>"); |
diff --git a/sound/pci/cs5535audio/cs5535audio_pcm.c b/sound/pci/cs5535audio/cs5535audio_pcm.c index f16bc8aad6ed..e083122ca55a 100644 --- a/sound/pci/cs5535audio/cs5535audio_pcm.c +++ b/sound/pci/cs5535audio/cs5535audio_pcm.c | |||
| @@ -149,7 +149,7 @@ static int cs5535audio_build_dma_packets(struct cs5535audio *cs5535au, | |||
| 149 | &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[i]; | 149 | &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[i]; |
| 150 | desc->addr = cpu_to_le32(addr); | 150 | desc->addr = cpu_to_le32(addr); |
| 151 | desc->size = cpu_to_le32(period_bytes); | 151 | desc->size = cpu_to_le32(period_bytes); |
| 152 | desc->ctlreserved = cpu_to_le32(PRD_EOP); | 152 | desc->ctlreserved = cpu_to_le16(PRD_EOP); |
| 153 | desc_addr += sizeof(struct cs5535audio_dma_desc); | 153 | desc_addr += sizeof(struct cs5535audio_dma_desc); |
| 154 | addr += period_bytes; | 154 | addr += period_bytes; |
| 155 | } | 155 | } |
| @@ -157,7 +157,7 @@ static int cs5535audio_build_dma_packets(struct cs5535audio *cs5535au, | |||
| 157 | lastdesc = &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[periods]; | 157 | lastdesc = &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[periods]; |
| 158 | lastdesc->addr = cpu_to_le32((u32) dma->desc_buf.addr); | 158 | lastdesc->addr = cpu_to_le32((u32) dma->desc_buf.addr); |
| 159 | lastdesc->size = 0; | 159 | lastdesc->size = 0; |
| 160 | lastdesc->ctlreserved = cpu_to_le32(PRD_JMP); | 160 | lastdesc->ctlreserved = cpu_to_le16(PRD_JMP); |
| 161 | jmpprd_addr = cpu_to_le32(lastdesc->addr + | 161 | jmpprd_addr = cpu_to_le32(lastdesc->addr + |
| 162 | (sizeof(struct cs5535audio_dma_desc)*periods)); | 162 | (sizeof(struct cs5535audio_dma_desc)*periods)); |
| 163 | 163 | ||
diff --git a/sound/pci/hda/hda_eld.c b/sound/pci/hda/hda_eld.c index b05f7be9dc1b..e3e853153d14 100644 --- a/sound/pci/hda/hda_eld.c +++ b/sound/pci/hda/hda_eld.c | |||
| @@ -294,7 +294,7 @@ static int hdmi_update_eld(struct hdmi_eld *e, | |||
| 294 | snd_printd(KERN_INFO "HDMI: out of range MNL %d\n", mnl); | 294 | snd_printd(KERN_INFO "HDMI: out of range MNL %d\n", mnl); |
| 295 | goto out_fail; | 295 | goto out_fail; |
| 296 | } else | 296 | } else |
| 297 | strlcpy(e->monitor_name, buf + ELD_FIXED_BYTES, mnl); | 297 | strlcpy(e->monitor_name, buf + ELD_FIXED_BYTES, mnl + 1); |
| 298 | 298 | ||
| 299 | for (i = 0; i < e->sad_count; i++) { | 299 | for (i = 0; i < e->sad_count; i++) { |
| 300 | if (ELD_FIXED_BYTES + mnl + 3 * (i + 1) > size) { | 300 | if (ELD_FIXED_BYTES + mnl + 3 * (i + 1) > size) { |
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c index 694b9daf691f..7bbc5f237a5e 100644 --- a/sound/pci/hda/patch_conexant.c +++ b/sound/pci/hda/patch_conexant.c | |||
| @@ -3074,6 +3074,7 @@ static const char * const cxt5066_models[CXT5066_MODELS] = { | |||
| 3074 | }; | 3074 | }; |
| 3075 | 3075 | ||
| 3076 | static const struct snd_pci_quirk cxt5066_cfg_tbl[] = { | 3076 | static const struct snd_pci_quirk cxt5066_cfg_tbl[] = { |
| 3077 | SND_PCI_QUIRK(0x1025, 0x054c, "Acer Aspire 3830TG", CXT5066_AUTO), | ||
| 3077 | SND_PCI_QUIRK_MASK(0x1025, 0xff00, 0x0400, "Acer", CXT5066_IDEAPAD), | 3078 | SND_PCI_QUIRK_MASK(0x1025, 0xff00, 0x0400, "Acer", CXT5066_IDEAPAD), |
| 3078 | SND_PCI_QUIRK(0x1028, 0x02d8, "Dell Vostro", CXT5066_DELL_VOSTRO), | 3079 | SND_PCI_QUIRK(0x1028, 0x02d8, "Dell Vostro", CXT5066_DELL_VOSTRO), |
| 3079 | SND_PCI_QUIRK(0x1028, 0x02f5, "Dell Vostro 320", CXT5066_IDEAPAD), | 3080 | SND_PCI_QUIRK(0x1028, 0x02f5, "Dell Vostro 320", CXT5066_IDEAPAD), |
| @@ -4389,6 +4390,8 @@ static const struct hda_codec_preset snd_hda_preset_conexant[] = { | |||
| 4389 | .patch = patch_cxt5066 }, | 4390 | .patch = patch_cxt5066 }, |
| 4390 | { .id = 0x14f15069, .name = "CX20585", | 4391 | { .id = 0x14f15069, .name = "CX20585", |
| 4391 | .patch = patch_cxt5066 }, | 4392 | .patch = patch_cxt5066 }, |
| 4393 | { .id = 0x14f1506c, .name = "CX20588", | ||
| 4394 | .patch = patch_cxt5066 }, | ||
| 4392 | { .id = 0x14f1506e, .name = "CX20590", | 4395 | { .id = 0x14f1506e, .name = "CX20590", |
| 4393 | .patch = patch_cxt5066 }, | 4396 | .patch = patch_cxt5066 }, |
| 4394 | { .id = 0x14f15097, .name = "CX20631", | 4397 | { .id = 0x14f15097, .name = "CX20631", |
| @@ -4417,6 +4420,7 @@ MODULE_ALIAS("snd-hda-codec-id:14f15066"); | |||
| 4417 | MODULE_ALIAS("snd-hda-codec-id:14f15067"); | 4420 | MODULE_ALIAS("snd-hda-codec-id:14f15067"); |
| 4418 | MODULE_ALIAS("snd-hda-codec-id:14f15068"); | 4421 | MODULE_ALIAS("snd-hda-codec-id:14f15068"); |
| 4419 | MODULE_ALIAS("snd-hda-codec-id:14f15069"); | 4422 | MODULE_ALIAS("snd-hda-codec-id:14f15069"); |
| 4423 | MODULE_ALIAS("snd-hda-codec-id:14f1506c"); | ||
| 4420 | MODULE_ALIAS("snd-hda-codec-id:14f1506e"); | 4424 | MODULE_ALIAS("snd-hda-codec-id:14f1506e"); |
| 4421 | MODULE_ALIAS("snd-hda-codec-id:14f15097"); | 4425 | MODULE_ALIAS("snd-hda-codec-id:14f15097"); |
| 4422 | MODULE_ALIAS("snd-hda-codec-id:14f15098"); | 4426 | MODULE_ALIAS("snd-hda-codec-id:14f15098"); |
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c index 3f08afc0f0d3..c8e402fc3782 100644 --- a/sound/pci/rme9652/hdspm.c +++ b/sound/pci/rme9652/hdspm.c | |||
| @@ -896,11 +896,11 @@ struct hdspm { | |||
| 896 | unsigned char max_channels_in; | 896 | unsigned char max_channels_in; |
| 897 | unsigned char max_channels_out; | 897 | unsigned char max_channels_out; |
| 898 | 898 | ||
| 899 | char *channel_map_in; | 899 | signed char *channel_map_in; |
| 900 | char *channel_map_out; | 900 | signed char *channel_map_out; |
| 901 | 901 | ||
| 902 | char *channel_map_in_ss, *channel_map_in_ds, *channel_map_in_qs; | 902 | signed char *channel_map_in_ss, *channel_map_in_ds, *channel_map_in_qs; |
| 903 | char *channel_map_out_ss, *channel_map_out_ds, *channel_map_out_qs; | 903 | signed char *channel_map_out_ss, *channel_map_out_ds, *channel_map_out_qs; |
| 904 | 904 | ||
| 905 | char **port_names_in; | 905 | char **port_names_in; |
| 906 | char **port_names_out; | 906 | char **port_names_out; |
diff --git a/sound/spi/at73c213.c b/sound/spi/at73c213.c index 337a00241a1f..4dd051bdf4fd 100644 --- a/sound/spi/at73c213.c +++ b/sound/spi/at73c213.c | |||
| @@ -1124,6 +1124,6 @@ static void __exit at73c213_exit(void) | |||
| 1124 | } | 1124 | } |
| 1125 | module_exit(at73c213_exit); | 1125 | module_exit(at73c213_exit); |
| 1126 | 1126 | ||
| 1127 | MODULE_AUTHOR("Hans-Christian Egtvedt <hcegtvedt@atmel.com>"); | 1127 | MODULE_AUTHOR("Hans-Christian Egtvedt <egtvedt@samfundet.no>"); |
| 1128 | MODULE_DESCRIPTION("Sound driver for AT73C213 with Atmel SSC"); | 1128 | MODULE_DESCRIPTION("Sound driver for AT73C213 with Atmel SSC"); |
| 1129 | MODULE_LICENSE("GPL"); | 1129 | MODULE_LICENSE("GPL"); |
