1. 06 Feb, 2016 4 commits
  2. 03 Feb, 2016 9 commits
    • Greg Kroah-Hartman's avatar
      greybus: fix sparse warning in manifest.c · d1a9c056
      Greg Kroah-Hartman authored
      The cport id field is a le16, so treat it as such when comparing it to
      something else.
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      Reviewed-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      d1a9c056
    • Bartosz Golaszewski's avatar
      greybus: audio_manager: add missing header · ec413566
      Bartosz Golaszewski authored
      There's a definition missing in audio_manager causing the kernel build
      to fail:
      
        CC [M]  ./greybus/audio_manager.o
      ./greybus/audio_manager.c:22:8: warning: type defaults to 'int' in declaration of 'DEFINE_IDA' [-Wimplicit-int]
      error, forbidden warning: audio_manager.c:22
      ./kernel/scripts/Makefile.build:308: recipe for target './greybus/audio_manager.o' failed
      
      Including linux/idr.h fixes the issue.
      Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      ec413566
    • Vaibhav Agarwal's avatar
      greybus: audio: use variable 'is_connected' to maintain module state · 3994e0b1
      Vaibhav Agarwal authored
      there is race condition between _disconnect() request &
      stop_trigger() in case of abrupt module removal.
      And sometimes this can lead to deadlock while acquiring
      codec_info->lock.
      To avoid such situation, atomic variable is used to maintain
      codec connected state.
      During dai operations (trigger, shutdown, etc.), 'is_connected'
      variable is validated to avoid unnecessary lock acquire in
      case module already removed.
      Signed-off-by: default avatarVaibhav Agarwal <vaibhav.agarwal@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      3994e0b1
    • Vaibhav Agarwal's avatar
      greybus: audio: codec driver cleanup · 796fad44
      Vaibhav Agarwal authored
      audio codec driver is now moved to bundle driver approach.
      This resolved many race conditions related to audio mgmt &
      data connection init/exit sequence.
      Thus, a lot of helper functions can now be safely removed.
      Signed-off-by: default avatarVaibhav Agarwal <vaibhav.agarwal@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      796fad44
    • Viresh Kumar's avatar
      greybus: connection: Fix sparse warnings around locking · 127c1fbd
      Viresh Kumar authored
      The callers ensures that connection->lock is taken before calling few
      routines, but that isn't enough for sparse as it sees an unexpected
      unlock.
      
      greybus/connection.c:380:29: warning: context imbalance in 'gb_connection_cancel_operations' - unexpected unlock
      
      Fix that adding __must_lock() attribute to the function declaration.
      
      This also adds the attribute for
      gb_connection_flush_incoming_operations(), which isn't showing any
      sparse warnings with the current state of code, but with minor
      rearrangements of the code.
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Reviewed-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      127c1fbd
    • Greg Kroah-Hartman's avatar
      greybus: lsgb: remove it, it's in the gb-utils repo · 68ba0a01
      Greg Kroah-Hartman authored
      lsgb does not need to be in this repo, it gets installed as part of
      gb-utils now.
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      68ba0a01
    • Viresh Kumar's avatar
      greybus: control: Fix sparse warnings · ee9627bc
      Viresh Kumar authored
      gb_control_get_version() is not used outside of the file and must be
      marked as static. Following sparse warnings are reported today:
      
      greybus/control.c:20:5: warning: symbol 'gb_control_get_version' was not declared. Should it be static?
      
      Fix it by marking gb_control_get_version() 'static'.
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Reviewed-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      ee9627bc
    • Viresh Kumar's avatar
      greybus: audio: Fix sparse warnings · 1045451f
      Viresh Kumar authored
      greybus/audio_apbridgea.c:13:5: warning: symbol 'gb_audio_apbridgea_set_config' was not declared. Should it be static?
      greybus/audio_apbridgea.c:30:5: warning: symbol 'gb_audio_apbridgea_register_cport' was not declared. Should it be static?
      greybus/audio_apbridgea.c:44:5: warning: symbol 'gb_audio_apbridgea_unregister_cport' was not declared. Should it be static?
      greybus/audio_apbridgea.c:58:5: warning: symbol 'gb_audio_apbridgea_set_tx_data_size' was not declared. Should it be static?
      greybus/audio_apbridgea.c:72:5: warning: symbol 'gb_audio_apbridgea_get_tx_delay' was not declared. Should it be static?
      greybus/audio_apbridgea.c:80:5: warning: symbol 'gb_audio_apbridgea_start_tx' was not declared. Should it be static?
      greybus/audio_apbridgea.c:94:5: warning: symbol 'gb_audio_apbridgea_stop_tx' was not declared. Should it be static?
      greybus/audio_apbridgea.c:106:5: warning: symbol 'gb_audio_apbridgea_set_rx_data_size' was not declared. Should it be static?
      greybus/audio_apbridgea.c:120:5: warning: symbol 'gb_audio_apbridgea_get_rx_delay' was not declared. Should it be static?
      greybus/audio_apbridgea.c:128:5: warning: symbol 'gb_audio_apbridgea_start_rx' was not declared. Should it be static?
      greybus/audio_apbridgea.c:141:5: warning: symbol 'gb_audio_apbridgea_stop_rx' was not declared. Should it be static?
      greybus/audio_gb.c:14:5: warning: symbol 'gb_audio_gb_get_topology' was not declared. Should it be static?
      greybus/audio_gb.c:48:5: warning: symbol 'gb_audio_gb_get_control' was not declared. Should it be static?
      greybus/audio_gb.c:70:5: warning: symbol 'gb_audio_gb_set_control' was not declared. Should it be static?
      greybus/audio_gb.c:85:5: warning: symbol 'gb_audio_gb_enable_widget' was not declared. Should it be static?
      greybus/audio_gb.c:97:5: warning: symbol 'gb_audio_gb_disable_widget' was not declared. Should it be static?
      greybus/audio_gb.c:109:5: warning: symbol 'gb_audio_gb_get_pcm' was not declared. Should it be static?
      greybus/audio_gb.c:133:5: warning: symbol 'gb_audio_gb_set_pcm' was not declared. Should it be static?
      greybus/audio_gb.c:150:5: warning: symbol 'gb_audio_gb_set_tx_data_size' was not declared. Should it be static?
      greybus/audio_gb.c:163:5: warning: symbol 'gb_audio_gb_get_tx_delay' was not declared. Should it be static?
      greybus/audio_gb.c:183:5: warning: symbol 'gb_audio_gb_activate_tx' was not declared. Should it be static?
      greybus/audio_gb.c:195:5: warning: symbol 'gb_audio_gb_deactivate_tx' was not declared. Should it be static?
      greybus/audio_gb.c:207:5: warning: symbol 'gb_audio_gb_set_rx_data_size' was not declared. Should it be static?
      greybus/audio_gb.c:220:5: warning: symbol 'gb_audio_gb_get_rx_delay' was not declared. Should it be static?
      greybus/audio_gb.c:240:5: warning: symbol 'gb_audio_gb_activate_rx' was not declared. Should it be static?
      greybus/audio_gb.c:252:5: warning: symbol 'gb_audio_gb_deactivate_rx' was not declared. Should it be static?
      
      Fix them by including the header that declares the exported routines.
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Reviewed-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      1045451f
    • Greg Kroah-Hartman's avatar
      greybus: audio_manager: use an 'ida' for the module id · 3c5de594
      Greg Kroah-Hartman authored
      Every time we hotplug an audio module, we get a new audio module id.  We
      should recycle them instead of just constantly incrementing the number
      so we don't see things like:
      	[178016.832580] Created audio module #6124
      in the kernel logs.
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      3c5de594
  3. 02 Feb, 2016 3 commits
  4. 29 Jan, 2016 4 commits
  5. 28 Jan, 2016 6 commits
  6. 27 Jan, 2016 2 commits
  7. 26 Jan, 2016 4 commits
  8. 24 Jan, 2016 2 commits
  9. 23 Jan, 2016 1 commit
  10. 22 Jan, 2016 5 commits