Skip to content

Commit

Permalink
[ALSA] wavefront: simplify YSS225 register initialization
Browse files Browse the repository at this point in the history
Instead of using a somewhat algorithmic approach of initializing the
YSS225's registers, just use a simple series of port/value pairs.
This makes it easier to later replace or entirely remove the register
data blob.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
  • Loading branch information
Clemens Ladisch authored and Jaroslav Kysela committed Feb 9, 2007
1 parent de66d53 commit 59540fe
Show file tree
Hide file tree
Showing 4 changed files with 2,763 additions and 768 deletions.
2 changes: 2 additions & 0 deletions include/sound/snd_wavefront.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ struct _snd_wavefront {
char hw_version[2]; /* major = [0], minor = [1] */
char israw; /* needs Motorola microcode */
char has_fx; /* has FX processor (Tropez+) */
char fx_initialized; /* FX's register pages initialized */
char prog_status[WF_MAX_PROGRAM]; /* WF_SLOT_* */
char patch_status[WF_MAX_PATCH]; /* WF_SLOT_* */
char sample_status[WF_MAX_SAMPLE]; /* WF_ST_* | WF_SLOT_* */
Expand All @@ -94,6 +95,7 @@ struct _snd_wavefront {
spinlock_t irq_lock;
wait_queue_head_t interrupt_sleeper;
snd_wavefront_midi_t midi; /* ICS2115 MIDI interface */
struct snd_card *card;
};

struct _snd_wavefront_card {
Expand Down
1 change: 1 addition & 0 deletions sound/isa/wavefront/wavefront.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ static struct snd_card *snd_wavefront_card_new(int dev)
init_waitqueue_head(&acard->wavefront.interrupt_sleeper);
spin_lock_init(&acard->wavefront.midi.open);
spin_lock_init(&acard->wavefront.midi.virtual);
acard->wavefront.card = card;
card->private_free = snd_wavefront_free;

return card;
Expand Down
Loading

0 comments on commit 59540fe

Please sign in to comment.