diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2006-10-05 09:06:34 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2007-02-09 03:00:07 -0500 |
commit | c78085fcd2ce7cd036e1488472eb41a64d70949a (patch) | |
tree | db48675117e830b287784bf68baadd286a12a6a7 /include | |
parent | 12b131c4cf3eb1dc8a60082a434b7b100774c2e7 (diff) |
[ALSA] alsa core: add struct device pointer to struct snd_pcm
This patch adds a struct device pointer to struct snd_pcm in order to be
able to give it a different device than the card. It defaults to the card's
device, however, so it should behave identically for drivers not touching
the field.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/pcm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h index 2f645dfd7f70..016c41893b06 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h | |||
@@ -427,6 +427,7 @@ struct snd_pcm { | |||
427 | wait_queue_head_t open_wait; | 427 | wait_queue_head_t open_wait; |
428 | void *private_data; | 428 | void *private_data; |
429 | void (*private_free) (struct snd_pcm *pcm); | 429 | void (*private_free) (struct snd_pcm *pcm); |
430 | struct device *dev; /* actual hw device this belongs to */ | ||
430 | #if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) | 431 | #if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) |
431 | struct snd_pcm_oss oss; | 432 | struct snd_pcm_oss oss; |
432 | #endif | 433 | #endif |