Re: composition switch design

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

 



On 1/21/10, Felipe Balbi <me@xxxxxxxxxxxxxxx> wrote:
> On Thu, Jan 21, 2010 at 06:27:07PM +0200, Felipe Balbi wrote:
>> On Thu, Jan 21, 2010 at 09:53:07PM +0530, sai pavan wrote:
>> > I am looking for a solution where user can select desired functions in
>> > a composite device. It can be done without having multiple
>> > configurations by just unregistering the composite driver and register
>> > with a new configuration.  This feature can be seen in most phones (in
>> > Nokia there is a option to select PC studio/media player/mass
>> > storage).
>>
>> Yes and for that we have a userland application that literally rmmod
>> g_nokia && modprobe g_file_storage (at least that's how we did on N900)
>>
>> if that's all the problem you have, it should be fairly simple to write
>> a few composite drivers that would bind the correct functions to the
>> configurations.
>
> a bit more explanation of what you can do:
>
> 1. when you get a VBUS irq from your transceiver, you could popup the
> dialog for selecting the mode.
>
> 2. after user selects the correct mode, you just run the correct gadget
> driver.
>
> Initially I thought your problem would really be related to the windows
> limitation on several configurations, but it's not.
>
> --
> balbi
>

This approach would meet our requirement. Thank you very much for your
valuable inputs.

Thanks,
Pavan
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux