Changeset 92 for GPL/branches/alsa-resync1/alsa-kernel/pci/es1968.c
- Timestamp:
- May 2, 2007, 9:13:43 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/alsa-resync1/alsa-kernel/pci/es1968.c
r77 r92 1606 1606 es->substream = substream; 1607 1607 es->mode = ESM_MODE_PLAY; 1608 INIT_LIST_HEAD(&es->list); 1608 1609 1609 1610 runtime->private_data = es; … … 1657 1658 es->substream = substream; 1658 1659 es->mode = ESM_MODE_CAPTURE; 1660 INIT_LIST_HEAD(&es->list); 1659 1661 1660 1662 /* get mixbuffer */ … … 1717 1719 return 0; 1718 1720 } 1721 1719 1722 static snd_pcm_ops_t snd_es1968_playback_ops = { 1720 1723 /* open: */ snd_es1968_playback_open, … … 2005 2008 2006 2009 if (event & ESM_SOUND_IRQ) { 2007 struct list_head *p;2010 struct list_head *p, *n; 2008 2011 spin_lock(&chip->substream_lock); 2009 list_for_each(p, &chip->substream_list) { 2012 /* we need to use list_for_each_safe here since the substream 2013 * can be deleted in period_elapsed(). 2014 */ 2015 list_for_each_safe(p, n, &chip->substream_list) { 2010 2016 esschan_t *es = list_entry(p, esschan_t, list); 2011 2017 if (es->running) … … 2841 2847 if ((err = pci_module_init(&driver)) < 0) { 2842 2848 #ifdef MODULE 2843 // snd_printk("ESS Maestro soundcard not found or device busy\n");2849 // snd_printk(KERN_ERR "ESS Maestro soundcard not found or device busy\n"); 2844 2850 #endif 2845 2851 return err;
Note:
See TracChangeset
for help on using the changeset viewer.