ALSA: Drop __bitwise and typedefs for snd_device attributes

Using __bitwise and typedefs for the attributes of snd_device struct
isn't so useful, and rather it worsens the readability.  Let's drop
them and use the straightforward enum.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai
2014-01-29 15:13:33 +01:00
parent 483eb06276
commit 9ce5054363
4 changed files with 37 additions and 34 deletions

View File

@@ -116,7 +116,7 @@ struct aoa_card {
struct snd_card *alsa_card;
};
extern int aoa_snd_device_new(snd_device_type_t type,
extern int aoa_snd_device_new(enum snd_device_type type,
void * device_data, struct snd_device_ops * ops);
extern struct snd_card *aoa_get_card(void);
extern int aoa_snd_ctl_add(struct snd_kcontrol* control);

View File

@@ -59,7 +59,7 @@ void aoa_alsa_cleanup(void)
}
}
int aoa_snd_device_new(snd_device_type_t type,
int aoa_snd_device_new(enum snd_device_type type,
void * device_data, struct snd_device_ops * ops)
{
struct snd_card *card = aoa_get_card();