Skip to content

Commit

Permalink
cras: include pcm_name in log when set_active_node
Browse files Browse the repository at this point in the history
This can help understand which pcm device is used by current active
node.

BUG=b:363241483
TEST=CQ

Change-Id: I4e681705ceebccee91cbbefbb1b069af7a758d2e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/5856753
Commit-Queue: Ching Yun Chang <whalechang@google.com>
Tested-by: chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com <chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com>
Reviewed-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
  • Loading branch information
WhaleChang authored and Chromeos LUCI committed Sep 24, 2024
1 parent 30d3677 commit 1d2d648
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cras/src/server/cras_alsa_common_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,13 @@ int cras_alsa_common_set_active_node(struct cras_iodev* iodev,
struct alsa_common_io* aio = (struct alsa_common_io*)iodev;
cras_iodev_set_active_node(iodev, ionode);
syslog(LOG_INFO,
"card type: %s, Set active node. name: %s, id: %d, direction: %s, "
"card type: %s, Set active node. name: %s, pcm_name: %s, id: %d, "
"direction: %s, "
"type: %s, "
"enable software volume: %d, intrinsic_sensitivity: %ld, volume: %d, "
"number_of_volume_steps: %d",
cras_card_type_to_string(aio->card_type), ionode->name, ionode->idx,
cras_card_type_to_string(aio->card_type), ionode->name, aio->pcm_name,
ionode->idx,
iodev->direction == CRAS_STREAM_OUTPUT ? "output" : "input",
cras_node_type_to_str(ionode->type, ionode->position),
ionode->software_volume_needed, ionode->intrinsic_sensitivity,
Expand Down

0 comments on commit 1d2d648

Please sign in to comment.