From: Cezary Rojewski <cezary.rojewski@intel.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: <tiwai@suse.com>, <broonie@kernel.org>, <perex@perex.cz>,
<amade@asmblr.net>, <linux-sound@vger.kernel.org>,
<kuninori.morimoto.gx@renesas.com>
Subject: Re: [PATCH v3] ALSA: control: Verify put() result when in debug mode
Date: Mon, 9 Feb 2026 15:43:37 +0100 [thread overview]
Message-ID: <5979bcd6-f066-418e-920a-8d127f921ba2@intel.com> (raw)
In-Reply-To: <87ms1m9htu.wl-tiwai@suse.de>
On 2026-02-06 1:28 PM, Takashi Iwai wrote:
> On Fri, 06 Feb 2026 12:32:50 +0100,
> Cezary Rojewski wrote:
>>
>> The put() operation is expected to return:
>> 1) 0 on success if no changes were made
>> 2) 1 on success if changes were made
>> 3) error code otherwise
...
> Also, this message doesn't show any relevant information about which
> card, device and which control caused the error, and that makes
> debugging harder. Put some prefix to identify the problematic
> control.
Quick peak to what I'm currently logging - output from 'cat trace':
# TASK-PID CPU# ||||| TIMESTAMP FUNCTION
# | | | ||||| | |
amixer-1177 [003] ..... 97.421022: snd_ctl_put_success:
expected=0, actual=0 for ctl "Master Playback Volume" of numid=1 from
dev="bdw_rt286", card="broadwell-rt286"
amixer-1181 [003] ..... 99.065279: snd_ctl_put_success:
expected=1, actual=1 for ctl "Master Playback Volume" of numid=1 from
dev="bdw_rt286", card="broadwell-rt286"
amixer-1185 [003] ..... 144.007205: snd_ctl_put_fail:
expected=1, actual=0 for ctl "Loopback Mute" of numid=5 from
dev="bdw_rt286", card="broadwell-rt286"
The format for trace_snd_ctl_put event class:
TP_printk("expected=%d, actual=%d for ctl \"%s\" of numid=%d
from dev=\"%s\", card=\"%s\"\n",
__entry->expected, __entry->actual,
__get_str(kname), __entry->numid,
__get_str(dname), __get_str(cname))
kname = kctl->id.name
dname = dev_name(card->dev)
cname = shortname or longname, shortname prio
Is there something still to be added?
next prev parent reply other threads:[~2026-02-09 14:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-06 11:32 [PATCH v3] ALSA: control: Verify put() result when in debug mode Cezary Rojewski
2026-02-06 12:28 ` Takashi Iwai
2026-02-06 14:08 ` Mark Brown
2026-02-06 14:33 ` Takashi Iwai
2026-02-06 14:44 ` Mark Brown
2026-02-06 17:34 ` Cezary Rojewski
2026-02-06 17:45 ` Cezary Rojewski
2026-02-06 17:57 ` Mark Brown
2026-02-09 14:43 ` Cezary Rojewski [this message]
2026-02-09 15:14 ` Jaroslav Kysela
2026-02-09 21:05 ` Cezary Rojewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5979bcd6-f066-418e-920a-8d127f921ba2@intel.com \
--to=cezary.rojewski@intel.com \
--cc=amade@asmblr.net \
--cc=broonie@kernel.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox