Skip to content

Commit 59540fe

Browse files
cladischJaroslav Kysela
authored andcommitted
[ALSA] wavefront: simplify YSS225 register initialization
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>
1 parent de66d53 commit 59540fe

4 files changed

Lines changed: 2763 additions & 768 deletions

File tree

‎include/sound/snd_wavefront.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ struct _snd_wavefront {
8585
char hw_version[2]; /* major = [0], minor = [1] */
8686
char israw; /* needs Motorola microcode */
8787
char has_fx; /* has FX processor (Tropez+) */
88+
char fx_initialized; /* FX's register pages initialized */
8889
char prog_status[WF_MAX_PROGRAM]; /* WF_SLOT_* */
8990
char patch_status[WF_MAX_PATCH]; /* WF_SLOT_* */
9091
char sample_status[WF_MAX_SAMPLE]; /* WF_ST_* | WF_SLOT_* */
@@ -94,6 +95,7 @@ struct _snd_wavefront {
9495
spinlock_t irq_lock;
9596
wait_queue_head_t interrupt_sleeper;
9697
snd_wavefront_midi_t midi; /* ICS2115 MIDI interface */
98+
struct snd_card *card;
9799
};
98100

99101
struct _snd_wavefront_card {

‎sound/isa/wavefront/wavefront.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ static struct snd_card *snd_wavefront_card_new(int dev)
402402
init_waitqueue_head(&acard->wavefront.interrupt_sleeper);
403403
spin_lock_init(&acard->wavefront.midi.open);
404404
spin_lock_init(&acard->wavefront.midi.virtual);
405+
acard->wavefront.card = card;
405406
card->private_free = snd_wavefront_free;
406407

407408
return card;

0 commit comments

Comments
 (0)