ALSA: remove CONFIG_KMOD from sound
A bunch of things in alsa depend on CONFIG_KMOD, use CONFIG_MODULES instead where the dependency is needed at all. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:

committed by
Jaroslav Kysela

parent
7fc077fba5
commit
ee2da99782
@@ -146,7 +146,7 @@ static struct snd_timer *snd_timer_find(struct snd_timer_id *tid)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_KMOD
|
||||
#ifdef CONFIG_MODULES
|
||||
|
||||
static void snd_timer_request(struct snd_timer_id *tid)
|
||||
{
|
||||
@@ -259,8 +259,8 @@ int snd_timer_open(struct snd_timer_instance **ti,
|
||||
/* open a master instance */
|
||||
mutex_lock(®ister_mutex);
|
||||
timer = snd_timer_find(tid);
|
||||
#ifdef CONFIG_KMOD
|
||||
if (timer == NULL) {
|
||||
#ifdef CONFIG_MODULES
|
||||
if (!timer) {
|
||||
mutex_unlock(®ister_mutex);
|
||||
snd_timer_request(tid);
|
||||
mutex_lock(®ister_mutex);
|
||||
|
Reference in New Issue
Block a user