[ALSA] Nest sound devices

Modules: ALSA Core

Make the control device parent of all other ALSA devices of a card.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
This commit is contained in:
Clemens Ladisch
2005-12-07 09:11:05 +01:00
committed by Jaroslav Kysela
parent 156b2aa3be
commit 416c1079d3
3 changed files with 11 additions and 3 deletions

View File

@@ -134,6 +134,7 @@ struct snd_card {
wait_queue_head_t shutdown_sleep;
struct work_struct free_workq; /* for free in workqueue */
struct device *dev;
struct class_device *parent_device;
#ifdef CONFIG_PM
unsigned int power_state; /* power state */