1. 01 Jul, 2019 1 commit
    • Rander Wang's avatar
      ALSA: hda: Fix a headphone detection issue when using SOF · 7c2b3629
      Rander Wang authored
      To save power, the hda hdmi driver in ASoC invokes snd_hdac_ext_bus_link_put
      to disable CORB/RIRB buffers DMA if there is no user of bus and invokes
      snd_hdac_ext_bus_link_get to set up CORB/RIRB buffers when it is used.
      Unsolicited responses is disabled in snd_hdac_bus_stop_cmd_io called by
      snd_hdac_ext_bus_link_put , but it is not enabled in snd_hdac_bus_init_cmd_io
      called by snd_hdac_ext_bus_link_get. So for put-get sequence, Unsolicited
      responses is disabled and headphone can't be detected by hda codecs.
      
      Now unsolicited responses is only enabled in snd_hdac_bus_reset_link
      which resets controller. The function is only called for setup of
      controller. This patch enables Unsolicited responses after RIRB is
      initialized in snd_hdac_bus_init_cmd_io which works together with
      snd_hdac_bus_reset_link to set up controller.
      
      Tested legacy hda driver and SOF driver on intel whiskeylake.
      Reviewed-by: default avatarTakashi Iwai <tiwai@suse.de>
      Signed-off-by: default avatarRander Wang <rander.wang@linux.intel.com>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      7c2b3629
  2. 28 Jun, 2019 3 commits
    • Takashi Sakamoto's avatar
      ALSA: firewire-lib: fix to process MIDI conformant data channel for AM824 format · 973b059c
      Takashi Sakamoto authored
      In IEC 61883-6, 8 MIDI data streams are multiplexed into single MIDI
      conformant data channel. The index of stream is calculated by modulo 8
      of the value of data block counter. Therefore data block processing
      layer requires valid value of data block counter.
      
      In recent changes of ALSA IEC 61883-1/6 engine, the value of data block
      counter is changed before calling data block processing layer. This
      brings miss detection of MIDI messages in non-blocking transmission
      method is used.
      
      This commit fixes the bug by changing chached data block counter after
      calling data block processing layer.
      
      Fixes: e335425b ("ALSA: firewire-lib: split helper function to check incoming CIP header")
      Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      973b059c
    • Takashi Sakamoto's avatar
      ALSA: firewire-lib: cache next data_block_counter after probing tracepoints event for IR context · 76864868
      Takashi Sakamoto authored
      For debugging purpose, ALSA IEC 61883-1/6 engine has tracepoints event.
      In current implementation, next data block counter is stored as current
      data block counter before probing the event for IR isoc context. It's not
      good to check current packet parameter.
      
      This commit changes to assign the next data block counter after probing
      the event.
      
      Besides, Fireworks devices has a quirk to transfer isoc packet with
      data block counter for the last data block. For this quirk, the
      assignment is done before calling data block processing layer.
      Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      76864868
    • Colin Ian King's avatar
      ALSA: xen-front: fix unintention integer overflow on left shifts · 3fc41476
      Colin Ian King authored
      Shifting the integer value 1 is evaluated using 32-bit
      arithmetic and then used in an expression that expects a 64-bit
      value, so there is potentially an integer overflow. Fix this
      by using the BIT_ULL macro to perform the shift.
      
      [ Note: as of the time being, no actual integer overflow hits because
        all values are less than 32bit, not including the extended 3-byte or
        DSD formats.  But this is the right fix for future usage, of
        course. -- tiwai ]
      
      Addresses-Coverity: ("Unintentional integer overflow")
      Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      3fc41476
  3. 24 Jun, 2019 3 commits
  4. 21 Jun, 2019 8 commits
  5. 18 Jun, 2019 10 commits
  6. 17 Jun, 2019 6 commits
  7. 13 Jun, 2019 5 commits
  8. 12 Jun, 2019 4 commits