Changeset 777 for GPL/trunk/alsa-kernel/pci/maestro3.c
- Timestamp:
- Apr 21, 2025, 7:17:25 PM (4 months ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-exp merged: 766-767,770-771,773-774
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/pci/maestro3.c
r772 r777 777 777 unsigned int in_suspend; 778 778 779 #ifdef CONFIG_PM_SLEEP780 779 u16 *suspend_mem; 781 #endif782 780 783 781 const struct firmware *assp_kernel_image; … … 2366 2364 } 2367 2365 2368 #ifdef CONFIG_PM_SLEEP2369 2366 vfree(chip->suspend_mem); 2370 #endif2371 2367 release_firmware(chip->assp_kernel_image); 2372 2368 release_firmware(chip->assp_minisrc_image); … … 2377 2373 * APM support 2378 2374 */ 2379 #ifdef CONFIG_PM_SLEEP2380 2375 static int m3_suspend(struct device *dev) 2381 2376 { … … 2451 2446 } 2452 2447 2453 static SIMPLE_DEV_PM_OPS(m3_pm, m3_suspend, m3_resume); 2454 #define M3_PM_OPS &m3_pm 2455 #else 2456 #define M3_PM_OPS NULL 2457 #endif /* CONFIG_PM_SLEEP */ 2448 static DEFINE_SIMPLE_DEV_PM_OPS(m3_pm, m3_suspend, m3_resume); 2458 2449 2459 2450 #ifdef CONFIG_SND_MAESTRO3_INPUT … … 2599 2590 card->sync_irq = chip->irq; 2600 2591 2601 #ifdef CONFIG_PM_SLEEP 2592 #ifndef TARGET_OS2 2593 if (IS_ENABLED(CONFIG_PM_SLEEP)) { 2602 2594 chip->suspend_mem = 2603 2595 vmalloc(array_size(sizeof(u16), 2604 2596 REV_B_CODE_MEMORY_LENGTH + 2605 2597 REV_B_DATA_MEMORY_LENGTH)); 2606 if (chip->suspend_mem == NULL)2598 if (!chip->suspend_mem) 2607 2599 dev_warn(card->dev, "can't allocate apm buffer\n"); 2600 } 2608 2601 #endif 2609 2610 2602 err = snd_m3_mixer(chip); 2611 2603 if (err < 0) … … 2718 2710 .probe = snd_m3_probe, 2719 2711 .driver = { 2720 .pm = M3_PM_OPS,2712 .pm = &m3_pm, 2721 2713 }, 2722 2714 };
Note:
See TracChangeset
for help on using the changeset viewer.