···52065206 You need to pass the <function>snd_dma_pci_data(pci)</function>,52075207 where pci is the struct <structname>pci_dev</structname> pointer52085208 of the chip as well.52095209- The <type>snd_sg_buf_t</type> instance is created as52095209+ The <type>struct snd_sg_buf</type> instance is created as52105210 substream->dma_private. You can cast52115211 the pointer like: 5212521252135213 <informalexample>52145214 <programlisting>52155215<![CDATA[52165216- struct snd_sg_buf *sgbuf = (struct snd_sg_buf_t*)substream->dma_private;52165216+ struct snd_sg_buf *sgbuf = (struct snd_sg_buf *)substream->dma_private;52175217]]>52185218 </programlisting>52195219 </informalexample>
···6969MODULE_PARM_DESC(dma, "DMA # for SoundScape driver.");70707171static struct platform_device *platform_devices[SNDRV_CARDS];7272-static int pnp_registered;73727473#ifdef CONFIG_PNP7474+static int pnp_registered;7575static struct pnp_card_device_id sscape_pnpids[] = {7676 { .id = "ENS3081", .devs = { { "ENS0000" } } },7777 { .id = "" } /* end */···13911391{13921392 int i;1393139313941394+#ifdef CONFIG_PNP13941395 if (pnp_registered)13951396 pnp_unregister_card_driver(&sscape_pnpc_driver);13971397+#endif13961398 for (i = 0; i < ARRAY_SIZE(platform_devices); ++i)13971399 platform_device_unregister(platform_devices[i]);13981400 platform_driver_unregister(&snd_sscape_driver);···14681466 ret = sscape_manual_probe();14691467 if (ret < 0)14701468 return ret;14691469+#ifdef CONFIG_PNP14711470 if (pnp_register_card_driver(&sscape_pnpc_driver) >= 0)14721471 pnp_registered = 1;14721472+#endif14731473 return 0;14741474}14751475
+5-2
sound/isa/wavefront/wavefront.c
···8484MODULE_PARM_DESC(use_cs4232_midi, "Use CS4232 MPU-401 interface (inaccessibly located inside your computer)");85858686static struct platform_device *platform_devices[SNDRV_CARDS];8787-static int pnp_registered;8888-89879088#ifdef CONFIG_PNP8989+static int pnp_registered;91909291static struct pnp_card_device_id snd_wavefront_pnpids[] = {9392 /* Tropez */···694695{695696 int i;696697698698+#ifdef CONFIG_PNP697699 if (pnp_registered)698700 pnp_unregister_card_driver(&wavefront_pnpc_driver);701701+#endif699702 for (i = 0; i < ARRAY_SIZE(platform_devices); ++i)700703 platform_device_unregister(platform_devices[i]);701704 platform_driver_unregister(&snd_wavefront_driver);···726725 cards++;727726 }728727728728+#ifdef CONFIG_PNP729729 i = pnp_register_card_driver(&wavefront_pnpc_driver);730730 if (i >= 0) {731731 pnp_registered = 1;732732 cards += i;733733 }734734+#endif734735735736 if (!cards) {736737#ifdef MODULE
···849849snd_vortex_peaks_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)850850{851851 vortex_t *vortex = snd_kcontrol_chip(kcontrol);852852- int i, count;852852+ int i, count = 0;853853 u16 peaks[20];854854855855 vortex_Eqlzr_GetAllPeaks(vortex, peaks, &count);
+3-1
sound/pci/bt87x.c
···781781 BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_879, 0x0070, 0x13eb, 32000),782782 /* Viewcast Osprey 200 */783783 BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x0070, 0xff01, 44100),784784+ /* AVerMedia Studio No. 103, 203, ...? */785785+ BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x1461, 0x0003, 48000),784786 { }785787};786788MODULE_DEVICE_TABLE(pci, snd_bt87x_ids);···810808 const struct pci_device_id *supported;811809812810 supported = pci_match_device(&driver, pci);813813- if (supported)811811+ if (supported && supported->driver_data > 0)814812 return supported->driver_data;815813816814 for (i = 0; i < ARRAY_SIZE(blacklist); ++i)
+11-1
sound/pci/ca0106/ca0106_main.c
···199199 .name = "MSI K8N Diamond MB [SB0438]",200200 .gpio_type = 1,201201 .i2c_adc = 1 } ,202202- /* Shuttle XPC SD31P which has an onboard Creative Labs Sound Blaster Live! 24-bit EAX202202+ /* Shuttle XPC SD31P which has an onboard Creative Labs203203+ * Sound Blaster Live! 24-bit EAX203204 * high-definition 7.1 audio processor".204205 * Added using info from andrewvegan in alsa bug #1298205206 */···208207 .name = "Shuttle XPC SD31P [SD31P]",209208 .gpio_type = 1,210209 .i2c_adc = 1 } ,210210+ /* Shuttle XPC SD11G5 which has an onboard Creative Labs211211+ * Sound Blaster Live! 24-bit EAX212212+ * high-definition 7.1 audio processor".213213+ * Fixes ALSA bug#1600214214+ */215215+ { .serial = 0x30411297,216216+ .name = "Shuttle XPC SD11G5 [SD11G5]",217217+ .gpio_type = 1,218218+ .i2c_adc = 1 } ,211219 { .serial = 0,212220 .name = "AudigyLS [Unknown]" }213221};
+1-1
sound/pci/cs46xx/dsp_spos_scb_lib.c
···675675 if (pass_through) {676676 /* wont work with any other rate than677677 the native DSP rate */678678- snd_assert (rate = 48000);678678+ snd_assert (rate == 48000);679679680680 scb = cs46xx_dsp_create_generic_scb(chip,scb_name,(u32 *)&src_task_scb,681681 dest,"DMAREADER",parent_scb,
···454454 is_capture = (subs->stream == SNDRV_PCM_STREAM_CAPTURE);455455 stream_num = is_capture ? 0 : subs->number;456456457457- snd_printdd("pcxhr_update_r_buffer(pcm%c%d) : addr(%p) bytes(%x) subs(%d)\n",457457+ snd_printdd("pcxhr_update_r_buffer(pcm%c%d) : addr(%p) bytes(%zx) subs(%d)\n",458458 is_capture ? 'c' : 'p',459459 chip->chip_idx, (void*)subs->runtime->dma_addr,460460 subs->runtime->dma_bytes, subs->number);···744744 /* only the first stream can choose the sample rate */745745 /* the further opened streams will be limited to its frequency (see open) */746746 /* set the clock only once (first stream) */747747- if (mgr->sample_rate == 0) {747747+ if (mgr->sample_rate != subs->runtime->rate) {748748 err = pcxhr_set_clock(mgr, subs->runtime->rate);749749 if (err)750750 break;751751+ if (mgr->sample_rate == 0)752752+ /* start the DSP-timer */753753+ err = pcxhr_hardware_timer(mgr, 1);751754 mgr->sample_rate = subs->runtime->rate;752752-753753- err = pcxhr_hardware_timer(mgr, 1); /* start the DSP-timer */754755 }755756 } while(0); /* do only once (so we can use break instead of goto) */756757