Skip to content

Commit d460975

Browse files
committed
Merge branch 'for-linus' into for-next
Back-merge of 5.17-devel branch for further work on Intel LPE HDMI stuff Signed-off-by: Takashi Iwai <tiwai@suse.de>
2 parents d7f15be + cd94df1 commit d460975

9 files changed

Lines changed: 19 additions & 8 deletions

File tree

sound/firewire/fcp.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,7 @@ int fcp_avc_transaction(struct fw_unit *unit,
240240
t.response_match_bytes = response_match_bytes;
241241
t.state = STATE_PENDING;
242242
init_waitqueue_head(&t.wait);
243-
244-
if (*(const u8 *)command == 0x00 || *(const u8 *)command == 0x03)
245-
t.deferrable = true;
243+
t.deferrable = (*(const u8 *)command == 0x00 || *(const u8 *)command == 0x03);
246244

247245
spin_lock_irq(&transactions_lock);
248246
list_add_tail(&t.list, &transactions);

sound/pci/hda/hda_intel.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1941,6 +1941,7 @@ static int azx_first_init(struct azx *chip)
19411941
dma_bits = 32;
19421942
if (dma_set_mask_and_coherent(&pci->dev, DMA_BIT_MASK(dma_bits)))
19431943
dma_set_mask_and_coherent(&pci->dev, DMA_BIT_MASK(32));
1944+
dma_set_max_seg_size(&pci->dev, UINT_MAX);
19441945

19451946
/* read number of streams from GCAP register instead of using
19461947
* hardcoded value

sound/pci/hda/patch_realtek.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9144,6 +9144,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
91449144
SND_PCI_QUIRK(0x1558, 0x8561, "Clevo NH[57][0-9][ER][ACDH]Q", ALC269_FIXUP_HEADSET_MIC),
91459145
SND_PCI_QUIRK(0x1558, 0x8562, "Clevo NH[57][0-9]RZ[Q]", ALC269_FIXUP_DMIC),
91469146
SND_PCI_QUIRK(0x1558, 0x8668, "Clevo NP50B[BE]", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
9147+
SND_PCI_QUIRK(0x1558, 0x867d, "Clevo NP7[01]PN[HJK]", ALC256_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
91479148
SND_PCI_QUIRK(0x1558, 0x8680, "Clevo NJ50LU", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),
91489149
SND_PCI_QUIRK(0x1558, 0x8686, "Clevo NH50[CZ]U", ALC256_FIXUP_MIC_NO_PRESENCE_AND_RESUME),
91499150
SND_PCI_QUIRK(0x1558, 0x8a20, "Clevo NH55DCQ-Y", ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE),

sound/soc/codecs/cs4265.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ static const struct snd_kcontrol_new cs4265_snd_controls[] = {
150150
SOC_SINGLE("E to F Buffer Disable Switch", CS4265_SPDIF_CTL1,
151151
6, 1, 0),
152152
SOC_ENUM("C Data Access", cam_mode_enum),
153-
SOC_SINGLE("SPDIF Switch", CS4265_SPDIF_CTL2, 5, 1, 1),
154153
SOC_SINGLE("Validity Bit Control Switch", CS4265_SPDIF_CTL2,
155154
3, 1, 0),
156155
SOC_ENUM("SPDIF Mono/Stereo", spdif_mono_stereo_enum),
@@ -186,7 +185,7 @@ static const struct snd_soc_dapm_widget cs4265_dapm_widgets[] = {
186185

187186
SND_SOC_DAPM_SWITCH("Loopback", SND_SOC_NOPM, 0, 0,
188187
&loopback_ctl),
189-
SND_SOC_DAPM_SWITCH("SPDIF", SND_SOC_NOPM, 0, 0,
188+
SND_SOC_DAPM_SWITCH("SPDIF", CS4265_SPDIF_CTL2, 5, 1,
190189
&spdif_switch),
191190
SND_SOC_DAPM_SWITCH("DAC", CS4265_PWRCTL, 1, 1,
192191
&dac_switch),

sound/soc/intel/skylake/skl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,7 @@ static int skl_first_init(struct hdac_bus *bus)
952952
/* allow 64bit DMA address if supported by H/W */
953953
if (dma_set_mask_and_coherent(bus->dev, DMA_BIT_MASK(64)))
954954
dma_set_mask_and_coherent(bus->dev, DMA_BIT_MASK(32));
955+
dma_set_max_seg_size(bus->dev, UINT_MAX);
955956

956957
/* initialize streams */
957958
snd_hdac_ext_stream_init_all

sound/soc/soc-ops.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ int snd_soc_put_volsw(struct snd_kcontrol *kcontrol,
319319
if (ucontrol->value.integer.value[0] < 0)
320320
return -EINVAL;
321321
val = ucontrol->value.integer.value[0];
322-
if (mc->platform_max && val > mc->platform_max)
322+
if (mc->platform_max && ((int)val + min) > mc->platform_max)
323323
return -EINVAL;
324324
if (val > max - min)
325325
return -EINVAL;
@@ -332,7 +332,7 @@ int snd_soc_put_volsw(struct snd_kcontrol *kcontrol,
332332
if (ucontrol->value.integer.value[1] < 0)
333333
return -EINVAL;
334334
val2 = ucontrol->value.integer.value[1];
335-
if (mc->platform_max && val2 > mc->platform_max)
335+
if (mc->platform_max && ((int)val2 + min) > mc->platform_max)
336336
return -EINVAL;
337337
if (val2 > max - min)
338338
return -EINVAL;

sound/soc/sof/intel/hda.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,7 @@ int hda_dsp_probe(struct snd_sof_dev *sdev)
956956
dev_dbg(sdev->dev, "DMA mask is 32 bit\n");
957957
dma_set_mask_and_coherent(&pci->dev, DMA_BIT_MASK(32));
958958
}
959+
dma_set_max_seg_size(&pci->dev, UINT_MAX);
959960

960961
/* init streams */
961962
ret = hda_dsp_stream_init(sdev);

sound/usb/mixer_maps.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,16 @@ static const struct usbmix_ctl_map usbmix_ctl_maps[] = {
542542
.id = USB_ID(0x05a7, 0x40fa),
543543
.map = bose_soundlink_map,
544544
},
545+
{
546+
/* Corsair Virtuoso SE Latest (wired mode) */
547+
.id = USB_ID(0x1b1c, 0x0a3f),
548+
.map = corsair_virtuoso_map,
549+
},
550+
{
551+
/* Corsair Virtuoso SE Latest (wireless mode) */
552+
.id = USB_ID(0x1b1c, 0x0a40),
553+
.map = corsair_virtuoso_map,
554+
},
545555
{
546556
/* Corsair Virtuoso SE (wired mode) */
547557
.id = USB_ID(0x1b1c, 0x0a3d),

sound/x86/intel_hdmi_audio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ static int had_pcm_mmap(struct snd_pcm_substream *substream,
12611261
{
12621262
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
12631263
return remap_pfn_range(vma, vma->vm_start,
1264-
substream->dma_buffer.addr >> PAGE_SHIFT,
1264+
substream->runtime->dma_addr >> PAGE_SHIFT,
12651265
vma->vm_end - vma->vm_start, vma->vm_page_prot);
12661266
}
12671267

0 commit comments

Comments
 (0)