Skip to content

Commit ef1bbd2

Browse files
ujfalusidkalowsk
authored andcommitted
drivers: uaol: log the link and stream configuration
Neither the link initialization nor the values programmed for a stream are visible at runtime, which makes any mismatch between the host, the gateway configuration and the link hard to narrow down. Log both at debug level. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent d943840 commit ef1bbd2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/uaol/uaol_intel_adsp.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,13 +668,19 @@ static int uaol_intel_adsp_config(const struct device *dev, int stream, struct u
668668
goto out;
669669
}
670670

671+
LOG_DBG("link initialized, frame counter aligned");
672+
671673
dp->is_initialized = true;
672674
}
673675

674676
/* Program the FIFO Start Address Offset and Channel Mapping */
675677
sys_write16(cfg->fifo_start_offset, UAOLxPCMSyFSA_ADDR(dp, stream));
676678
sys_write16(cfg->channel_map, UAOLxPCMSyCM_ADDR(dp, stream));
677679

680+
LOG_DBG("stream %d: FSA 0x%04x, CM 0x%04x, rate %u, chan %u, bits %u, mps %u",
681+
stream, cfg->fifo_start_offset, cfg->channel_map, cfg->sample_rate,
682+
cfg->channels, cfg->sample_bits, cfg->sio_credit_size);
683+
678684
uaol_intel_adsp_program_format(dev, stream, cfg->sample_rate, cfg->channels,
679685
cfg->sample_bits, cfg->sio_credit_size,
680686
cfg->service_interval);

0 commit comments

Comments
 (0)