ALSA: asihpi - Replace adapter list with single item in subsys response.
Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:

کامیت شده توسط
Takashi Iwai

والد
1d595d2a21
کامیت
2f918a6445
@@ -164,11 +164,10 @@ static void subsys_get_adapter(struct hpi_message *phm,
|
||||
|
||||
if (index < HPI_MAX_ADAPTERS) {
|
||||
phr->u.s.adapter_index = adapters.adapter[index].index;
|
||||
phr->u.s.aw_adapter_list[0] =
|
||||
adapters.adapter[index].adapter_type;
|
||||
phr->u.s.adapter_type = adapters.adapter[index].adapter_type;
|
||||
} else {
|
||||
phr->u.s.adapter_index = 0;
|
||||
phr->u.s.aw_adapter_list[0] = 0;
|
||||
phr->u.s.adapter_type = 0;
|
||||
phr->error = HPI_ERROR_BAD_ADAPTER_NUMBER;
|
||||
}
|
||||
}
|
||||
|
مرجع در شماره جدید
Block a user