diff options
Diffstat (limited to 'sound/oss')
-rw-r--r-- | sound/oss/au1000.c | 6 | ||||
-rw-r--r-- | sound/oss/dmasound/dmasound_awacs.c | 31 | ||||
-rw-r--r-- | sound/oss/nec_vrc5477.c | 6 | ||||
-rw-r--r-- | sound/oss/sequencer_syms.c | 1 |
4 files changed, 25 insertions, 19 deletions
diff --git a/sound/oss/au1000.c b/sound/oss/au1000.c index 2c2ae2ee01ac..c407de86cbb6 100644 --- a/sound/oss/au1000.c +++ b/sound/oss/au1000.c | |||
@@ -563,7 +563,7 @@ static void start_adc(struct au1000_state *s) | |||
563 | #define DMABUF_DEFAULTORDER (17-PAGE_SHIFT) | 563 | #define DMABUF_DEFAULTORDER (17-PAGE_SHIFT) |
564 | #define DMABUF_MINORDER 1 | 564 | #define DMABUF_MINORDER 1 |
565 | 565 | ||
566 | extern inline void dealloc_dmabuf(struct au1000_state *s, struct dmabuf *db) | 566 | static inline void dealloc_dmabuf(struct au1000_state *s, struct dmabuf *db) |
567 | { | 567 | { |
568 | struct page *page, *pend; | 568 | struct page *page, *pend; |
569 | 569 | ||
@@ -667,14 +667,14 @@ static int prog_dmabuf(struct au1000_state *s, struct dmabuf *db) | |||
667 | return 0; | 667 | return 0; |
668 | } | 668 | } |
669 | 669 | ||
670 | extern inline int prog_dmabuf_adc(struct au1000_state *s) | 670 | static inline int prog_dmabuf_adc(struct au1000_state *s) |
671 | { | 671 | { |
672 | stop_adc(s); | 672 | stop_adc(s); |
673 | return prog_dmabuf(s, &s->dma_adc); | 673 | return prog_dmabuf(s, &s->dma_adc); |
674 | 674 | ||
675 | } | 675 | } |
676 | 676 | ||
677 | extern inline int prog_dmabuf_dac(struct au1000_state *s) | 677 | static inline int prog_dmabuf_dac(struct au1000_state *s) |
678 | { | 678 | { |
679 | stop_dac(s); | 679 | stop_dac(s); |
680 | return prog_dmabuf(s, &s->dma_dac); | 680 | return prog_dmabuf(s, &s->dma_dac); |
diff --git a/sound/oss/dmasound/dmasound_awacs.c b/sound/oss/dmasound/dmasound_awacs.c index b2bf8bac842d..cebd881b91ae 100644 --- a/sound/oss/dmasound/dmasound_awacs.c +++ b/sound/oss/dmasound/dmasound_awacs.c | |||
@@ -2805,16 +2805,7 @@ __init setup_beep(void) | |||
2805 | return 0 ; | 2805 | return 0 ; |
2806 | } | 2806 | } |
2807 | 2807 | ||
2808 | static struct input_dev awacs_beep_dev = { | 2808 | static struct input_dev *awacs_beep_dev; |
2809 | .evbit = { BIT(EV_SND) }, | ||
2810 | .sndbit = { BIT(SND_BELL) | BIT(SND_TONE) }, | ||
2811 | .event = awacs_beep_event, | ||
2812 | .name = "dmasound beeper", | ||
2813 | .phys = "macio/input0", /* what the heck is this?? */ | ||
2814 | .id = { | ||
2815 | .bustype = BUS_HOST, | ||
2816 | }, | ||
2817 | }; | ||
2818 | 2809 | ||
2819 | int __init dmasound_awacs_init(void) | 2810 | int __init dmasound_awacs_init(void) |
2820 | { | 2811 | { |
@@ -2907,6 +2898,22 @@ printk("dmasound_pmac: couldn't find a Codec we can handle\n"); | |||
2907 | return -ENODEV; | 2898 | return -ENODEV; |
2908 | } | 2899 | } |
2909 | 2900 | ||
2901 | awacs_beep_dev = input_allocate_device(); | ||
2902 | if (!awacs_beep_dev) { | ||
2903 | release_OF_resource(io, 0); | ||
2904 | release_OF_resource(io, 1); | ||
2905 | release_OF_resource(io, 2); | ||
2906 | printk(KERN_ERR "dmasound: can't allocate input device !\n"); | ||
2907 | return -ENOMEM; | ||
2908 | } | ||
2909 | |||
2910 | awacs_beep_dev->name = "dmasound beeper"; | ||
2911 | awacs_beep_dev->phys = "macio/input0"; | ||
2912 | awacs_beep_dev->id.bustype = BUS_HOST; | ||
2913 | awacs_beep_dev->event = awacs_beep_event; | ||
2914 | awacs_beep_dev->sndbit[0] = BIT(SND_BELL) | BIT(SND_TONE); | ||
2915 | awacs_beep_dev->evbit[0] = BIT(EV_SND); | ||
2916 | |||
2910 | /* all OF versions I've seen use this value */ | 2917 | /* all OF versions I've seen use this value */ |
2911 | if (i2s_node) | 2918 | if (i2s_node) |
2912 | i2s = ioremap(io->addrs[0].address, 0x1000); | 2919 | i2s = ioremap(io->addrs[0].address, 0x1000); |
@@ -3140,14 +3147,14 @@ printk("dmasound_pmac: Awacs/Screamer Codec Mfct: %d Rev %d\n", mfg, rev); | |||
3140 | * XXX: we should handle errors here, but that would mean | 3147 | * XXX: we should handle errors here, but that would mean |
3141 | * rewriting the whole init code. later.. | 3148 | * rewriting the whole init code. later.. |
3142 | */ | 3149 | */ |
3143 | input_register_device(&awacs_beep_dev); | 3150 | input_register_device(awacs_beep_dev); |
3144 | 3151 | ||
3145 | return dmasound_init(); | 3152 | return dmasound_init(); |
3146 | } | 3153 | } |
3147 | 3154 | ||
3148 | static void __exit dmasound_awacs_cleanup(void) | 3155 | static void __exit dmasound_awacs_cleanup(void) |
3149 | { | 3156 | { |
3150 | input_unregister_device(&awacs_beep_dev); | 3157 | input_unregister_device(awacs_beep_dev); |
3151 | 3158 | ||
3152 | switch (awacs_revision) { | 3159 | switch (awacs_revision) { |
3153 | case AWACS_TUMBLER: | 3160 | case AWACS_TUMBLER: |
diff --git a/sound/oss/nec_vrc5477.c b/sound/oss/nec_vrc5477.c index 0481e5e54ddf..9ac4bf7e1e89 100644 --- a/sound/oss/nec_vrc5477.c +++ b/sound/oss/nec_vrc5477.c | |||
@@ -435,7 +435,7 @@ static int ac97_codec_not_present(struct ac97_codec *codec) | |||
435 | 435 | ||
436 | /* --------------------------------------------------------------------- */ | 436 | /* --------------------------------------------------------------------- */ |
437 | 437 | ||
438 | extern inline void | 438 | static inline void |
439 | stop_dac(struct vrc5477_ac97_state *s) | 439 | stop_dac(struct vrc5477_ac97_state *s) |
440 | { | 440 | { |
441 | struct dmabuf* db = &s->dma_dac; | 441 | struct dmabuf* db = &s->dma_dac; |
@@ -553,7 +553,7 @@ static void start_dac(struct vrc5477_ac97_state *s) | |||
553 | spin_unlock_irqrestore(&s->lock, flags); | 553 | spin_unlock_irqrestore(&s->lock, flags); |
554 | } | 554 | } |
555 | 555 | ||
556 | extern inline void stop_adc(struct vrc5477_ac97_state *s) | 556 | static inline void stop_adc(struct vrc5477_ac97_state *s) |
557 | { | 557 | { |
558 | struct dmabuf* db = &s->dma_adc; | 558 | struct dmabuf* db = &s->dma_adc; |
559 | unsigned long flags; | 559 | unsigned long flags; |
@@ -652,7 +652,7 @@ static void start_adc(struct vrc5477_ac97_state *s) | |||
652 | #define DMABUF_DEFAULTORDER (16-PAGE_SHIFT) | 652 | #define DMABUF_DEFAULTORDER (16-PAGE_SHIFT) |
653 | #define DMABUF_MINORDER 1 | 653 | #define DMABUF_MINORDER 1 |
654 | 654 | ||
655 | extern inline void dealloc_dmabuf(struct vrc5477_ac97_state *s, | 655 | static inline void dealloc_dmabuf(struct vrc5477_ac97_state *s, |
656 | struct dmabuf *db) | 656 | struct dmabuf *db) |
657 | { | 657 | { |
658 | if (db->lbuf) { | 658 | if (db->lbuf) { |
diff --git a/sound/oss/sequencer_syms.c b/sound/oss/sequencer_syms.c index 45edfd767e4e..5d008798c310 100644 --- a/sound/oss/sequencer_syms.c +++ b/sound/oss/sequencer_syms.c | |||
@@ -19,7 +19,6 @@ EXPORT_SYMBOL(sequencer_timer); | |||
19 | EXPORT_SYMBOL(sound_timer_init); | 19 | EXPORT_SYMBOL(sound_timer_init); |
20 | EXPORT_SYMBOL(sound_timer_interrupt); | 20 | EXPORT_SYMBOL(sound_timer_interrupt); |
21 | EXPORT_SYMBOL(sound_timer_syncinterval); | 21 | EXPORT_SYMBOL(sound_timer_syncinterval); |
22 | EXPORT_SYMBOL(reprogram_timer); | ||
23 | 22 | ||
24 | /* Tuning */ | 23 | /* Tuning */ |
25 | 24 | ||