diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-08-30 06:58:37 (GMT) |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-08-30 06:58:37 (GMT) |
commit | d568121ce3151c36cc4718dd4e977f217c6144c2 (patch) | |
tree | ee61f946a485c7cbe74c888d53ea7775aeef7444 /sound/core/sound_oss.c | |
parent | 68c339d9068502347015ce462530ec54c4d841e4 (diff) | |
download | linux-fsl-qoriq-d568121ce3151c36cc4718dd4e977f217c6144c2.tar.xz |
[PATCH] Assign device pointer to OSS devices
Add register_sound_special_device() function to allow assignment of
device pointer to a specific OSS device for HAL.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/sound_oss.c')
-rw-r--r-- | sound/core/sound_oss.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sound/core/sound_oss.c b/sound/core/sound_oss.c index de39d21..e401c67 100644 --- a/sound/core/sound_oss.c +++ b/sound/core/sound_oss.c @@ -98,6 +98,7 @@ int snd_register_oss_device(int type, snd_card_t * card, int dev, snd_minor_t * int cidx = SNDRV_MINOR_OSS_CARD(minor); int track2 = -1; int register1 = -1, register2 = -1; + struct device *carddev = NULL; if (minor < 0) return minor; @@ -121,11 +122,13 @@ int snd_register_oss_device(int type, snd_card_t * card, int dev, snd_minor_t * track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI1); break; } - register1 = register_sound_special(reg->f_ops, minor); + if (card) + carddev = card->dev; + register1 = register_sound_special_device(reg->f_ops, minor, carddev); if (register1 != minor) goto __end; if (track2 >= 0) { - register2 = register_sound_special(reg->f_ops, track2); + register2 = register_sound_special_device(reg->f_ops, track2, carddev); if (register2 != track2) goto __end; } |