[alsa-devel] [PATCH] ASoC: Add sysfs entries via static attribute groups
Lars-Peter Clausen
lars at metafoo.de
Fri Jan 30 18:27:05 CET 2015
On 01/30/2015 06:22 PM, Takashi Iwai wrote:
[...]
> -
> - if (rtd->codec) {
It looks as if these attributes are now registered unconditionally.
> - /* add DAPM sysfs entries for this codec */
> - ret = snd_soc_dapm_sys_add(rtd->dev);
> - if (ret < 0)
> - dev_err(rtd->dev,
> - "ASoC: failed to add codec dapm sysfs entries: %d\n",
> - ret);
> -
> - /* add codec sysfs entries */
> - ret = device_create_file(rtd->dev, &dev_attr_codec_reg);
> - if (ret < 0)
> - dev_err(rtd->dev,
> - "ASoC: failed to add codec sysfs files: %d\n",
> - ret);
> - }
> -
> return 0;
> }
>
More information about the Alsa-devel
mailing list