- 02 9月, 2016 10 次提交
-
-
由 Greg Kroah-Hartman 提交于
We were not really using this structure at all, it was only returning '0' when asked what cport matched to what pair, so remove it all. Reviewed-by: NJohan Hovold <johan@hovoldconsulting.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Greg Kroah-Hartman 提交于
These functions were never used, and we are about to remove the structures it was trying to reference, so let's remove it to get it out of the way. Reviewed-by: NJohan Hovold <johan@hovoldconsulting.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Sandeep Patil 提交于
This matches a corresponding firmware change to declare a single BULK EP pair for all greybus traffic and 1 BULK IN ep for ARPC. Thus, avoiding URB submittions for all the other unused BULK IN endpoints on the HOST side that took considerable amount of bus time. Testing Done: Tested with modified AP<->APB1 loopback test and also with GPBridge modules to ensure there are no regressions Signed-off-by: NSandeep Patil <sspatil@google.com> Reviewed-by: NBryan O'Donoghue <bryan.odonoghue@linaro.org> Reviewed-by: NJohan Hovold <johan@hovoldconsulting.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Johan Hovold 提交于
Remove the deprecated svc key-event type, which has already been removed from the specification. Signed-off-by: NJohan Hovold <johan@hovoldconsulting.com> Reviewed-by: NViresh Kumar <viresh.kumar@linaro.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Philip Yang 提交于
Modify Power_supply greybus driver to support runtime PM framework. During charging state, the driver will block remote device of suspending, and then enables runtime suspend when remote device is in none chargin state. Testing Done: Compiled and verified on EVT2, EVT2 1x2 GPB test module and Device class daughter board. Signed-off-by: NPhilip Yang <yang_philip@projectara.com> Reviewed-by: NRui Miguel Silva <rui.silva@linaro.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Vaibhav Agarwal 提交于
Now jack-button are registered to snd framework based on capabilities populated by codec module's topology data. Thus, valid ids for button events can also vary for different modules. This patch modifies existing button reporting mechanism to avoid reporting spurious button events for invalid button ids. Signed-off-by: NVaibhav Agarwal <vaibhav.agarwal@linaro.org> Reviewed-by: NMark Greer <mgreer@animalcreek.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Vaibhav Agarwal 提交于
Now jack & jack-buttons are registered to snd_jack framework based on the capability shared by module's topology data. Thus, jack events should be reported to above snd framework only in case corresponding jack type is registered. This patch adds additional checks to avoid reporting fake jack events. Signed-off-by: NVaibhav Agarwal <vaibhav.agarwal@linaro.org> Reviewed-by: NMark Greer <mgreer@animalcreek.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Vaibhav Agarwal 提交于
Added extra fields namely jack_mask & button_mask for each module_info. These fields are required while registering jack & reporting jack events. Earlier, these were hard coded values assuming fixed capabilities say HEADSET, LINEOUT, etc. supported by GB-codec driver. Now these are computed dynamically based on module's jack capability shared via topology data. Signed-off-by: NVaibhav Agarwal <vaibhav.agarwal@linaro.org> Reviewed-by: NMark Greer <mgreer@animalcreek.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Vaibhav Agarwal 提交于
This patch adds extra field jack_type to gb_audio_topology struct. Also, it defines bit fields to be used by module while defining it's jack and jack-button capabilities. Currently, module can populate a single jack and associated buttons. In case multiple jacks are supported data routing (say duplicating, etc.) should be handled within module's FW. It can populate additional mixer controls to do so. Signed-off-by: NVaibhav Agarwal <vaibhav.agarwal@linaro.org> Reviewed-by: NMark Greer <mgreer@animalcreek.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Vaibhav Agarwal 提交于
snd_jack will be registered based on real capabilities shared by module's FW instead of parsing widgets and register it with fixed capabilities. Remove module_info->num_jack, since it is no more required. Signed-off-by: NVaibhav Agarwal <vaibhav.agarwal@linaro.org> Reviewed-by: NMark Greer <mgreer@animalcreek.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
- 26 8月, 2016 10 次提交
-
-
由 Johan Hovold 提交于
Make sure the timeout values are aligned. Signed-off-by: NJohan Hovold <johan@hovoldconsulting.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Johan Hovold 提交于
Remove the now obsolete and redundant cport-reset ARPC, along with the consequently unused cport_disable callback. Signed-off-by: NJohan Hovold <johan@hovoldconsulting.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Johan Hovold 提交于
Remove the now obsolete ping and cport_features_enable/disable callbacks. Signed-off-by: NJohan Hovold <johan@hovoldconsulting.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Johan Hovold 提交于
Implement the new connection setup and tear-down sequences for control connections and bundle connections (offloaded and non-offloaded). Signed-off-by: NJohan Hovold <johan@hovoldconsulting.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Johan Hovold 提交于
Implement the shutdown callback which is used to execute shutdown operations on offloaded connections. This adds a new shutdown ARPC. Signed-off-by: NJohan Hovold <johan@hovoldconsulting.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Johan Hovold 提交于
Implement the flush callback which is called as part of connection tear down to flush host-device queues and stop any ongoing transfers. Note that this should be considered an optimisation of sort since if the CPort is stuck waiting for credit, the CPort is likely still stuck when we try to send the cport_shutdown request over it after the callback returns. Signed-off-by: NJohan Hovold <johan@hovoldconsulting.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Rui Miguel Silva 提交于
We were checking for existing power supply names in the wrong place, i.e, we were checking before any of the module power supply were registered, because of that of course no name collision was detected. Move the check to the register loop and with that we guarantee that this mechanism works for greybus power supply naming. Tested: using gbsim and using power supply with the same name and check that: 1. no problems creating sysfs entries; 2. naming is done following the desired rules. Signed-off-by: NRui Miguel Silva <rui.silva@linaro.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Kris Huang 提交于
According to runtime pm architecture, the kernel side driver should be as smart as needed to know when the module is idle or active, so that it can issue the suspend/resume operations to the firmware side at the right time. To add logics prevents AP from issuing the suspend request to the firmware when a channel turning to active state, and put it to suspend if the state is going to inactive with still holding a reference. Testing Done: Compiled and verified on EVT2 and gpbridge-test module with device class daughter board. Signed-off-by: NKris Huang <huang_kris@projectara.com> Reviewed-by: NRui Miguel Silva <rui.silva@linaro.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 David Lin 提交于
Fix incorrect attribute size when the channel supports fader, as well as fixing the issue that the attribute list is not null terminated. Testing Done: - Verified by setting brightness and color on red/green/blue leds of the device class test board. Signed-off-by: NDavid Lin <dtwlin@google.com> Reviewed-by: NRui Miguel Silva <rui.silva@linaro.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Mark Greer 提交于
The direction value passed to gb_audio_apbridgea_register_cport() in the gbaudio_module_enable_rx() routine is TX and not RX like it should be so fix it. Testing Done: Recorded microphone data from a headset. Signed-off-by: NMark Greer <mgreer@animalcreek.com> Fixes: c80e7c6fafa5 ("audio: Split helper APIs based on stream direction") Tested-by: NVaibhav Agarwal <vaibhav.agarwal@linaro.org> Reviewd-by: NVaibhav Agarwal <vaibhav.agarwal@linaro.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
- 19 8月, 2016 2 次提交
-
-
由 Johan Hovold 提交于
The svc functions are only supposed to be called by core and should not be exported. Most of these functions should never have been exported in the first place, while a few no longer needs to be (e.g. since core gained support for offloaded connections). The only remaining exception is gb_svc_intf_set_power_mode() which is needed by the camera driver until proper link management is in place. Signed-off-by: NJohan Hovold <johan@hovoldconsulting.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Greg Kroah-Hartman 提交于
This reverts commit a0e559d03bbb3f9774a091e31c0f77d98db1f60d. It breaks the camera driver :( Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
- 18 8月, 2016 7 次提交
-
-
由 Johan Hovold 提交于
The svc functions are only supposed to be called by core and should not be exported. Most of these functions should never have been exported in the first place, while a few no longer needs to be (e.g. since core gained support for offloaded connections). Signed-off-by: NJohan Hovold <johan@hovoldconsulting.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Rui Miguel Silva 提交于
When we receive a update request we shall not trust the cache mechanism and for that we need a way to invalidate the cache. Add a field that will control the cache status and refactor the code to check if cache is valid in a helper function. This will fix the scenario where an update request is received within the cache expiration time after a previous update as happened and would be ignored. Signed-off-by: NRui Miguel Silva <rui.silva@linaro.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Rui Miguel Silva 提交于
We use the update interval to control the remove path and we set it to zero when we do not want to have more updates in transit. That means that the check in the request handler needs to be for interval update zero to discard the newly received request and not the other way around like it is. This will fix the issue that all incoming requests were being discard. Signed-off-by: NRui Miguel Silva <rui.silva@linaro.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Rui Miguel Silva 提交于
When checking for property changes we may need to act upon that change besides reporting it using power_supply_changed. So, add a function that will be call if the specific property changed. As at it, adjust some indentation of the psy_props_changes array. Signed-off-by: NRui Miguel Silva <rui.silva@linaro.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Vaibhav Agarwal 提交于
While releasing memory during error path exit, invalid memory pointer was used for dapm_routes. Use a valid one. Signed-off-by: NVaibhav Agarwal <vaibhav.agarwal@linaro.org> Reviewed-by: NMark Greer <mgreer@animalcreek.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Vaibhav Agarwal 提交于
While mapping control id to define DAPM routes, invalid control index may cause kernel oops. Add extra check to validate index while mapping names to control_id. Signed-off-by: NVaibhav Agarwal <vaibhav.agarwal@linaro.org> Reviewed-by: NMark Greer <mgreer@animalcreek.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Ann Chen 提交于
In the beginning, module side can control the vibrator timeout value, it can disable vibrator until timeout. But after Runtime PM control added in, AP side didn't know when module can be suspended, the vibrator task will be interrupted by suspending event. Because of this problem, the module can not be in charge of counting down the timeout value, it is now up to the AP to manage this. So add workqueue to handle the vibrator timeout. Signed-off-by: NAnn Chen <chen_ann@projectara.com> Reviewed-by: NViresh Kumar <viresh.kumar@linaro.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
- 17 8月, 2016 1 次提交
-
-
由 Johan Hovold 提交于
In case a bulk-in transfer-buffer allocation failed during probe, we'd currently leak the corresponding URB. Signed-off-by: NJohan Hovold <johan@hovoldconsulting.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
- 13 8月, 2016 1 次提交
-
-
由 Jacopo Mondi 提交于
Remove support for module implementing legacy version of camera bandwidth requirements specifications, now that all available camera modules have been updated to use the new version Signed-off-by: NJacopo Mondi <jacopo.mondi@linaro.org> Reviewed-by: NLaurent Pinchart <laurent.pinchart@linaro.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
- 12 8月, 2016 4 次提交
-
-
由 Viresh Kumar 提交于
The firmware file name's maximum length is set to 56 right now, but it isn't very much readable how we got to that value (unless someone reads that line). Update the comment to show calculations. Reported-by: NAlex Elder <alex.elder@linaro.org> Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Viresh Kumar 提交于
Replace 'should' with 'must' to clear the expectation a bit more. Reported-by: NAlex Elder <alex.elder@linaro.org> Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Viresh Kumar 提交于
Alex Elder pointed out that the macros also count the trailing NULL ('\0') character and so it should be using SIZE instead of LEN. This patch makes that change. Reported-by: NAlex Elder <alex.elder@linaro.org> Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Viresh Kumar 提交于
Remove the unnecessary parenthesis. Reported-by: NAlex Elder <alex.elder@linaro.org> Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
- 11 8月, 2016 5 次提交
-
-
由 Viresh Kumar 提交于
s/shall be used the user/shall be used by the user/ Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Viresh Kumar 提交于
We already have another direct pointer for this, use that instead. Testing Done: Compiled. Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Johan Hovold 提交于
Make the control-protocol disconnecting operation a "core" operation. This is needed to be able to use the operation in the new connection tear-down sequence of control connections, which moves disconnecting after the flush barrier. Signed-off-by: NJohan Hovold <johan@hovoldconsulting.com> Reviewed-by: NViresh Kumar <viresh.kumar@linaro.org> Acked-by: NSandeep Patil <sspatil@google.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Johan Hovold 提交于
Add a host-device cport_shutdown callback which will be called as part of the new connection tear-down sequence for offloaded connection in order to do a cport_shutdown operation on behalf of the AP. Signed-off-by: NJohan Hovold <johan@hovoldconsulting.com> Reviewed-by: NViresh Kumar <viresh.kumar@linaro.org> Acked-by: NSandeep Patil <sspatil@google.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-
由 Johan Hovold 提交于
Add a host-device cport_clear callback, which will be called as part of the new connection tear-down sequence to reset the CPort state. Signed-off-by: NJohan Hovold <johan@hovoldconsulting.com> Reviewed-by: NViresh Kumar <viresh.kumar@linaro.org> Acked-by: NSandeep Patil <sspatil@google.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@google.com>
-