Skip to content

Commit 64e3914

Browse files
Marcin Makadbaluta
authored andcommitted
volume: trace: replace errors with warnings
There are cases where the component applies constrained settings which should be reported as warning rather than error. Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
1 parent 6cd8acc commit 64e3914

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/audio/volume/volume.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,15 +367,15 @@ static inline int volume_set_chan(struct comp_dev *dev, int chan,
367367
*/
368368
if (v < VOL_MIN) {
369369
/* No need to fail, just trace the event. */
370-
comp_err(dev, "volume_set_chan: Limited request %d to min. %d",
371-
v, VOL_MIN);
370+
comp_warn(dev, "volume_set_chan: Limited request %d to min. %d",
371+
v, VOL_MIN);
372372
v = VOL_MIN;
373373
}
374374

375375
if (v > VOL_MAX) {
376376
/* No need to fail, just trace the event. */
377-
comp_err(dev, "volume_set_chan: Limited request %d to max. %d",
378-
v, VOL_MAX);
377+
comp_warn(dev, "volume_set_chan: Limited request %d to max. %d",
378+
v, VOL_MAX);
379379
v = VOL_MAX;
380380
}
381381

0 commit comments

Comments
 (0)