Lines Matching defs:pcsp_chip
40 struct snd_pcsp pcsp_chip;
73 pcsp_chip.max_treble = min(order, PCSP_MAX_TREBLE);
74 pcsp_chip.treble = min(pcsp_chip.max_treble, PCSP_DEFAULT_TREBLE);
75 pcsp_chip.playback_ptr = 0;
76 pcsp_chip.period_ptr = 0;
77 atomic_set(&pcsp_chip.timer_active, 0);
78 pcsp_chip.enable = 1;
79 pcsp_chip.pcspkr = 1;
81 spin_lock_init(&pcsp_chip.substream_lock);
83 pcsp_chip.card = card;
84 pcsp_chip.port = 0x61;
85 pcsp_chip.irq = -1;
86 pcsp_chip.dma = -1;
89 err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, &pcsp_chip, &ops);
104 hrtimer_init(&pcsp_chip.timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
105 pcsp_chip.timer.function = pcsp_do_timer;
117 err = snd_pcsp_new_pcm(&pcsp_chip);
123 err = snd_pcsp_new_mixer(&pcsp_chip, nopcm);
129 snd_card_set_dev(pcsp_chip.card, dev);
134 pcsp_chip.port);
173 err = pcspkr_input_init(&pcsp_chip.input_dev, &dev->dev);
179 pcspkr_input_remove(pcsp_chip.input_dev);
183 platform_set_drvdata(dev, &pcsp_chip);