Skip to content

Commit c582cc6

Browse files
takaswietiwai
authored andcommitted
ALSA: oxfw: enable to keep memory block for model-specific structure
ALSA oxfw driver should have backward compatibility to old firewire-speakers driver. Additionally, in future commit, scs1x driver will be merged. It's nice to add a pointer to have a memory block for model-specific structures. This commit adds a member to 'struct snd_oxfw' for this aim. Deallocation is done at freeing ALSA card structure. Signed-off-by: Takashi Sakamoto <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent f67d71a commit c582cc6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

sound/firewire/oxfw/oxfw.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ static void oxfw_card_free(struct snd_card *card)
132132
kfree(oxfw->rx_stream_formats[i]);
133133
}
134134

135+
kfree(oxfw->spec);
135136
mutex_destroy(&oxfw->mutex);
136137
}
137138

sound/firewire/oxfw/oxfw.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ struct snd_oxfw {
7474
wait_queue_head_t hwdep_wait;
7575

7676
const struct ieee1394_device_id *entry;
77+
void *spec;
7778
};
7879

7980
/*

0 commit comments

Comments
 (0)