Re: [PATCH 1/6] staging: most: sound: create one sound card w/ multiple PCM devices per MOST device

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

 



On Wed, Dec 12, 2018 at 03:31:13PM +0000, Christian.Gromm@xxxxxxxxxxxxx wrote:
> An additional field is added to the configuration parameter,
> which is provided by user space.
> This seemed to be less painful than adding a new sysfs
> file and make the configuration even more complicated. 

I think that adding a bunch of new sysfs files *and directories* is the
way to go actually.

echo "mdev0:ep01:sound:most51_playback.6x16" >$(DRV_DIR)/add_link

I've never used the most driver but my guess is that $DRV_DIR is
/sys/module/most/.  In theory, you're supposed to write one word or
number to sysfs files so this is sort of a misuse of the API.

There should be an mdev0/ep01/sound/most51_playback/ directory.  Maybe
every ep01 channel will have a sound/ subdirectory or maybe we have to
create it manually, I don't know.

There should be a command to create an new adpt, and another command to
add some commponents to it and a last command to register it with the
kernel.

regards,
dan carpenter
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux