dummy.c (436ec40e0cdf74eae90af6be6c287396e388f1fb) | dummy.c (815d808c7bfc91edbf25813cea54709f4a805c71) |
---|---|
1/* 2 * Dummy soundcard 3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 1023 unchanged lines hidden (view full) --- 1032 *get_dummy_int_ptr(dummy, fields[i].offset) = val; 1033 else 1034 *get_dummy_ll_ptr(dummy, fields[i].offset) = val; 1035 } 1036} 1037 1038static void dummy_proc_init(struct snd_dummy *chip) 1039{ | 1/* 2 * Dummy soundcard 3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 1023 unchanged lines hidden (view full) --- 1032 *get_dummy_int_ptr(dummy, fields[i].offset) = val; 1033 else 1034 *get_dummy_ll_ptr(dummy, fields[i].offset) = val; 1035 } 1036} 1037 1038static void dummy_proc_init(struct snd_dummy *chip) 1039{ |
1040 struct snd_info_entry *entry; 1041 1042 if (!snd_card_proc_new(chip->card, "dummy_pcm", &entry)) { 1043 snd_info_set_text_ops(entry, chip, dummy_proc_read); 1044 entry->c.text.write = dummy_proc_write; 1045 entry->mode |= 0200; 1046 entry->private_data = chip; 1047 } | 1040 snd_card_rw_proc_new(chip->card, "dummy_pcm", chip, 1041 dummy_proc_read, dummy_proc_write); |
1048} 1049#else 1050#define dummy_proc_init(x) 1051#endif /* CONFIG_SND_DEBUG && CONFIG_SND_PROC_FS */ 1052 1053static int snd_dummy_probe(struct platform_device *devptr) 1054{ 1055 struct snd_card *card; --- 172 unchanged lines hidden --- | 1042} 1043#else 1044#define dummy_proc_init(x) 1045#endif /* CONFIG_SND_DEBUG && CONFIG_SND_PROC_FS */ 1046 1047static int snd_dummy_probe(struct platform_device *devptr) 1048{ 1049 struct snd_card *card; --- 172 unchanged lines hidden --- |