tangled
alpha
login
or
join now
tjh.dev
/
kernel
Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1
fork
atom
overview
issues
pulls
pipelines
Merge branch 'fix/hda' into for-linus
Takashi Iwai
15 years ago
c949e3d6
37fa84d8
+13
-9
3 changed files
expand all
collapse all
unified
split
sound
core
oss
pcm_oss.c
pci
hda
patch_realtek.c
patch_sigmatel.c
+11
-8
sound/core/oss/pcm_oss.c
···
1510
1510
static int snd_pcm_oss_reset(struct snd_pcm_oss_file *pcm_oss_file)
1511
1511
{
1512
1512
struct snd_pcm_substream *substream;
1513
1513
+
struct snd_pcm_runtime *runtime;
1514
1514
+
int i;
1513
1515
1514
1514
-
substream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK];
1515
1515
-
if (substream != NULL) {
1516
1516
+
for (i = 0; i < 2; i++) {
1517
1517
+
substream = pcm_oss_file->streams[i];
1518
1518
+
if (!substream)
1519
1519
+
continue;
1520
1520
+
runtime = substream->runtime;
1516
1521
snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DROP, NULL);
1517
1517
-
substream->runtime->oss.prepare = 1;
1518
1518
-
}
1519
1519
-
substream = pcm_oss_file->streams[SNDRV_PCM_STREAM_CAPTURE];
1520
1520
-
if (substream != NULL) {
1521
1521
-
snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DROP, NULL);
1522
1522
-
substream->runtime->oss.prepare = 1;
1522
1522
+
runtime->oss.prepare = 1;
1523
1523
+
runtime->oss.buffer_used = 0;
1524
1524
+
runtime->oss.prev_hw_ptr_period = 0;
1525
1525
+
runtime->oss.period_ptr = 0;
1523
1526
}
1524
1527
return 0;
1525
1528
}
-1
sound/pci/hda/patch_realtek.c
···
9865
9865
SND_PCI_QUIRK(0x17aa, 0x3bfc, "Lenovo NB0763", ALC883_LENOVO_NB0763),
9866
9866
SND_PCI_QUIRK(0x17aa, 0x3bfd, "Lenovo NB0763", ALC883_LENOVO_NB0763),
9867
9867
SND_PCI_QUIRK(0x17aa, 0x101d, "Lenovo Sky", ALC888_LENOVO_SKY),
9868
9868
-
SND_PCI_QUIRK(0x17c0, 0x4071, "MEDION MD2", ALC883_MEDION_MD2),
9869
9868
SND_PCI_QUIRK(0x17c0, 0x4085, "MEDION MD96630", ALC888_LENOVO_MS7195_DIG),
9870
9869
SND_PCI_QUIRK(0x17f2, 0x5000, "Albatron KI690-AM2", ALC883_6ST_DIG),
9871
9870
SND_PCI_QUIRK(0x1991, 0x5625, "Haier W66", ALC883_HAIER_W66),
+2
sound/pci/hda/patch_sigmatel.c
···
1627
1627
static struct snd_pci_quirk stac92hd73xx_codec_id_cfg_tbl[] = {
1628
1628
SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x02a1,
1629
1629
"Alienware M17x", STAC_ALIENWARE_M17X),
1630
1630
+
SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x043a,
1631
1631
+
"Alienware M17x", STAC_ALIENWARE_M17X),
1630
1632
{} /* terminator */
1631
1633
};
1632
1634