Loading sound/pci/asihpi/hpimsgx.c +12 −3 Original line number Diff line number Diff line /****************************************************************************** AudioScience HPI driver Copyright (C) 1997-2011 AudioScience Inc. <support@audioscience.com> Copyright (C) 1997-2014 AudioScience Inc. <support@audioscience.com> This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as Loading Loading @@ -35,6 +35,7 @@ static struct pci_device_id asihpi_pci_tbl[] = { static struct hpios_spinlock msgx_lock; static hpi_handler_func *hpi_entry_points[HPI_MAX_ADAPTERS]; static int logging_enabled = 1; static hpi_handler_func *hpi_lookup_entry_point_function(const struct hpi_pci *pci_info) Loading Loading @@ -312,6 +313,8 @@ static void instream_message(struct hpi_message *phm, void hpi_send_recv_ex(struct hpi_message *phm, struct hpi_response *phr, void *h_owner) { if (logging_enabled) HPI_DEBUG_MESSAGE(DEBUG, phm); if (phm->type != HPI_TYPE_REQUEST) { Loading Loading @@ -352,8 +355,14 @@ void hpi_send_recv_ex(struct hpi_message *phm, struct hpi_response *phr, hw_entry_point(phm, phr); break; } if (logging_enabled) HPI_DEBUG_RESPONSE(phr); if (phr->error >= HPI_ERROR_DSP_COMMUNICATION) { hpi_debug_level_set(HPI_DEBUG_LEVEL_ERROR); logging_enabled = 0; } } static void adapter_open(struct hpi_message *phm, struct hpi_response *phr) Loading Loading
sound/pci/asihpi/hpimsgx.c +12 −3 Original line number Diff line number Diff line /****************************************************************************** AudioScience HPI driver Copyright (C) 1997-2011 AudioScience Inc. <support@audioscience.com> Copyright (C) 1997-2014 AudioScience Inc. <support@audioscience.com> This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as Loading Loading @@ -35,6 +35,7 @@ static struct pci_device_id asihpi_pci_tbl[] = { static struct hpios_spinlock msgx_lock; static hpi_handler_func *hpi_entry_points[HPI_MAX_ADAPTERS]; static int logging_enabled = 1; static hpi_handler_func *hpi_lookup_entry_point_function(const struct hpi_pci *pci_info) Loading Loading @@ -312,6 +313,8 @@ static void instream_message(struct hpi_message *phm, void hpi_send_recv_ex(struct hpi_message *phm, struct hpi_response *phr, void *h_owner) { if (logging_enabled) HPI_DEBUG_MESSAGE(DEBUG, phm); if (phm->type != HPI_TYPE_REQUEST) { Loading Loading @@ -352,8 +355,14 @@ void hpi_send_recv_ex(struct hpi_message *phm, struct hpi_response *phr, hw_entry_point(phm, phr); break; } if (logging_enabled) HPI_DEBUG_RESPONSE(phr); if (phr->error >= HPI_ERROR_DSP_COMMUNICATION) { hpi_debug_level_set(HPI_DEBUG_LEVEL_ERROR); logging_enabled = 0; } } static void adapter_open(struct hpi_message *phm, struct hpi_response *phr) Loading