On Thu, Sep 12, 2024 at 08:35:05AM +0000, Ki-Seok Jo wrote: > > > +static DEVICE_ATTR_RW(check_fault_period); > > Any reason the fault stuff isn't an ALSA control? > I'm planning to change it to ALSA control as per the feedback. > Could you please let me know how to set the default value for a control? > For example, I would like to set it to a value of 60. > (For controls with a boolean value, I would like to initialize it with a true value.) For something like this which isn't coming from the register map you can just pick a value and set wherever the data is stored during the CODEC init function.
Attachment:
signature.asc
Description: PGP signature
- References:
- [PATCH v2 0/3] Add a driver for the Iron Device SMA1307 Amp
- From: Kiseok Jo
- [PATCH v2 1/3] ASoC: sma1307: Add driver for Iron Device SMA1307
- From: Kiseok Jo
- Re: [PATCH v2 1/3] ASoC: sma1307: Add driver for Iron Device SMA1307
- From: Mark Brown
- RE: [PATCH v2 1/3] ASoC: sma1307: Add driver for Iron Device SMA1307
- From: Ki-Seok Jo
- [PATCH v2 0/3] Add a driver for the Iron Device SMA1307 Amp
- Prev by Date: Re: [PATCH] ALSA: control: prevent some integer overflow issues
- Next by Date: [PATCH 0/7] ASoC: Intel: boards: updates for 6.12 - part 2
- Previous by thread: RE: [PATCH v2 1/3] ASoC: sma1307: Add driver for Iron Device SMA1307
- Next by thread: [PATCH v2 3/3] doc: ABI: testing: sma1307: Add support for SMA1307
- Index(es):