Skip to content

Commit

Permalink
ALSA: oxfw: enable to keep memory block for model-specific structure
Browse files Browse the repository at this point in the history
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 <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
takaswie authored and tiwai committed Dec 22, 2015
1 parent f67d71a commit c582cc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions sound/firewire/oxfw/oxfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ static void oxfw_card_free(struct snd_card *card)
kfree(oxfw->rx_stream_formats[i]);
}

kfree(oxfw->spec);
mutex_destroy(&oxfw->mutex);
}

Expand Down
1 change: 1 addition & 0 deletions sound/firewire/oxfw/oxfw.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ struct snd_oxfw {
wait_queue_head_t hwdep_wait;

const struct ieee1394_device_id *entry;
void *spec;
};

/*
Expand Down

0 comments on commit c582cc6

Please sign in to comment.