Re: [PATCH] [ALSA] Allow setting codec register with sys filesystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Oct 04, 2008 at 04:54:09PM -0700, Troy Kisky wrote:
> i.e. echo 6 59 >/sys/devices/platform/soc-audio.0/codec_reg
> will set register 0x06 to a value of 0x59

> Signed-off-by: Troy Kisky <troy.kisky@xxxxxxxxxxxxxxxxxxx>

I'd probably take a patch to do this in debugfs but I don't think it is
appropriate to do this in sysfs.  Writing to the registers outside the
control of the drivers can seriously interfere with their operation and
confuse user space - it's something you can get away with if you know
what you're doing but it's not something that should be available as a
standard, advertised interface.  There's also the possibility of the
driver trampling over any settings made with this interface which
wouldn't be helpful either.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux