beep.c (f72222c74bd642182cc892c99df65cb105c61193) beep.c (15afafc2565bc785eb7a440b8b4a53f77910cf04)
1/*
2 * Beep using pcm
3 *
4 * Copyright (c) by Takashi Iwai <tiwai@suse.de>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 201 unchanged lines hidden (view full) ---

210 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
211 .name = "Beep Playback Volume",
212 .info = snd_pmac_info_beep,
213 .get = snd_pmac_get_beep,
214 .put = snd_pmac_put_beep,
215};
216
217/* Initialize beep stuff */
1/*
2 * Beep using pcm
3 *
4 * Copyright (c) by Takashi Iwai <tiwai@suse.de>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 201 unchanged lines hidden (view full) ---

210 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
211 .name = "Beep Playback Volume",
212 .info = snd_pmac_info_beep,
213 .get = snd_pmac_get_beep,
214 .put = snd_pmac_put_beep,
215};
216
217/* Initialize beep stuff */
218int __devinit snd_pmac_attach_beep(struct snd_pmac *chip)
218int snd_pmac_attach_beep(struct snd_pmac *chip)
219{
220 struct pmac_beep *beep;
221 struct input_dev *input_dev;
222 struct snd_kcontrol *beep_ctl;
223 void *dmabuf;
224 int err = -ENOMEM;
225
226 beep = kzalloc(sizeof(*beep), GFP_KERNEL);

--- 59 unchanged lines hidden ---
219{
220 struct pmac_beep *beep;
221 struct input_dev *input_dev;
222 struct snd_kcontrol *beep_ctl;
223 void *dmabuf;
224 int err = -ENOMEM;
225
226 beep = kzalloc(sizeof(*beep), GFP_KERNEL);

--- 59 unchanged lines hidden ---