30 Jan
2015
30 Jan
'15
6:27 p.m.
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; }