On Thu, Sep 11, 2025 at 09:26:59PM +0530, Niranjan H Y wrote: > Add API snd_soc_get_volsw_clamped to read > the volume from device. This similar to > existing API snd_soc_get_volsw. But has > additional step to clamp the value to max value > if the register value is larger than max value. Why is this a separate API, what is the situation where we would want to report an invalid value from a control? I was thinking of just adding this to the existing operations rather than adding separate ones that need to be explicitly set.
Attachment:
signature.asc
Description: PGP signature
- Follow-Ups:
- RE: [EXTERNAL] Re: [PATCH v4 2/6] ASoC: ops: add snd_soc_get_volsw_clamped
- From: Holalu Yogendra, Niranjan
- RE: [EXTERNAL] Re: [PATCH v4 2/6] ASoC: ops: add snd_soc_get_volsw_clamped
- References:
- [PATCH v4 1/6] ASoC: ops: improve snd_soc_get_volsw
- From: Niranjan H Y
- [PATCH v4 2/6] ASoC: ops: add snd_soc_get_volsw_clamped
- From: Niranjan H Y
- [PATCH v4 1/6] ASoC: ops: improve snd_soc_get_volsw
- Prev by Date: RE: [EXTERNAL] Re: [PATCH v4 2/6] ASoC: ops: add snd_soc_get_volsw_clamped
- Next by Date: [PATCH v4 6/6] tas2783A: Add acpi match changes for Intel MTL
- Previous by thread: [PATCH v4 2/6] ASoC: ops: add snd_soc_get_volsw_clamped
- Next by thread: RE: [EXTERNAL] Re: [PATCH v4 2/6] ASoC: ops: add snd_soc_get_volsw_clamped
- Index(es):
![]() |