diff options
author | Eliot Blennerhassett <eliot@blennerhassett.gen.nz> | 2014-11-20 06:22:56 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-11-23 00:33:48 +0300 |
commit | dc612838eac746b11bb4e5d923dafeea0ba7e81b (patch) | |
tree | e5b9b53ad9346cd6a23298ad75435e400a0e5bb7 /sound/pci | |
parent | 12eb0898741870882ca474708e811983d5a5d768 (diff) | |
download | linux-dc612838eac746b11bb4e5d923dafeea0ba7e81b.tar.xz |
ALSA: asihpi: don't fail probe if adapter mode read fails
Only determining if low latency mode is enabled. Failure
indicates adapter has no modes
Signed-off-by: Eliot Blennerhassett <eliot@blennerhassett.gen.nz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/asihpi/hpioctl.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sound/pci/asihpi/hpioctl.c b/sound/pci/asihpi/hpioctl.c index 9454932fc9c0..e457eb80658b 100644 --- a/sound/pci/asihpi/hpioctl.c +++ b/sound/pci/asihpi/hpioctl.c @@ -424,14 +424,13 @@ int asihpi_adapter_probe(struct pci_dev *pci_dev, hm.adapter_index = adapter.adapter->index; hpi_send_recv_ex(&hm, &hr, HOWNER_KERNEL); - if (hr.error) { - HPI_DEBUG_LOG(ERROR, - "HPI_ADAPTER_GET_MODE failed, aborting\n"); - goto err; - } - - if (hr.u.ax.mode.adapter_mode == HPI_ADAPTER_MODE_LOW_LATENCY) + if (!hr.error + && hr.u.ax.mode.adapter_mode == HPI_ADAPTER_MODE_LOW_LATENCY) low_latency_mode = 1; + else + dev_info(&pci_dev->dev, + "Adapter at index %d is not in low latency mode\n", + adapter.adapter->index); /* Check if IRQs are supported */ hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, |