aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/asihpi/hpicmn.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/asihpi/hpicmn.c')
-rw-r--r--sound/pci/asihpi/hpicmn.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/sound/pci/asihpi/hpicmn.c b/sound/pci/asihpi/hpicmn.c
index 793236ef0a54..85c297279792 100644
--- a/sound/pci/asihpi/hpicmn.c
+++ b/sound/pci/asihpi/hpicmn.c
@@ -197,11 +197,18 @@ static unsigned int control_cache_alloc_check(struct hpi_control_cache *pC)
197 &p_master_cache[byte_count]; 197 &p_master_cache[byte_count];
198 198
199 if (!info->size_in32bit_words) { 199 if (!info->size_in32bit_words) {
200 if (i == 0) {
201 HPI_DEBUG_LOG(INFO,
202 "adap %d cache not ready?\n",
203 pC->adap_idx);
204 return 0;
205 }
200 /* ? This is a severe error, the cache is probably 206 /* ? This is a severe error, the cache is probably
201 corrupted. Minimum valid entry size is 207 corrupted. Minimum valid entry size is
202 sizeof(struct hpi_control_cache_info) */ 208 sizeof(struct hpi_control_cache_info) */
203 HPI_DEBUG_LOG(ERROR, 209 HPI_DEBUG_LOG(ERROR,
204 "zero size cache entry %d\n", i); 210 "adap %d zero size cache entry %d\n",
211 pC->adap_idx, i);
205 break; 212 break;
206 } 213 }
207 214
@@ -231,12 +238,13 @@ static unsigned int control_cache_alloc_check(struct hpi_control_cache *pC)
231 238
232 if (byte_count != pC->cache_size_in_bytes) 239 if (byte_count != pC->cache_size_in_bytes)
233 HPI_DEBUG_LOG(WARNING, 240 HPI_DEBUG_LOG(WARNING,
234 "bytecount %d != cache size %d", byte_count, 241 "adap %d bytecount %d != cache size %d",
242 pC->adap_idx, byte_count,
235 pC->cache_size_in_bytes); 243 pC->cache_size_in_bytes);
236 else 244 else
237 HPI_DEBUG_LOG(DEBUG, 245 HPI_DEBUG_LOG(DEBUG,
238 "cache good. bytecount == cache size = %d", 246 "adap %d cache good, bytecount == cache size = %d",
239 byte_count); 247 pC->adap_idx, byte_count);
240 248
241 pC->init = cached; 249 pC->init = cached;
242 } 250 }