dsdreamer wrote: 
> This is way down in terms of importance, but I noticed that the Jivelite
> screen that reports the asound stream0 status info doesn't anymore (for
> my particular DAC).
> 
> We had similar issues before, and at that time we found that the exact
> format of /proc/asound/card[n]/stream0 varies with kernel, and the
> assumptions in the Lua code that parses this file may have to be
> adjusted for different kernels. I am not sure if this is the same issue
> again.
> 
> > 
Code:
--------------------
  >   > 
  > TEAC Corporation TEAC UD-501 at usb-ci_hdrc.1-1.1, high speed : USB Audio
  > 
  > Playback:
  > Status: Running
  > Interface = 1
  > Altset = 1
  > Packet Size = 63
  > Momentary freq = 44102 Hz (0x5.8340)
  > Feedback Format = 16.16
  > Interface 1
  > Altset 1
  > Format: S32_LE
  > Channels: 2
  > Endpoint: 1 OUT (ASYNC)
  > Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
  > Data packet interval: 125 us
  > Interface 1
  > Altset 2
  > Format: S32_LE
  > Channels: 2
  > Endpoint: 1 OUT (ASYNC)
  > Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
  > Data packet interval: 125 us
  > 
--------------------
> > 

Code:
--------------------
    diff --git a/share/jive/applets/SetupSqueezelite/SetupSqueezeliteApplet.lua 
b/sh
  index c051f6e..4038332 100644
  --- a/share/jive/applets/SetupSqueezelite/SetupSqueezeliteApplet.lua
  +++ b/share/jive/applets/SetupSqueezelite/SetupSqueezeliteApplet.lua
  @@ -310,8 +310,9 @@ function _parseStreamInfo(self, card)
  if t.status == "Running" then
  t.interface = parse("    Interface = (%d+)")
  t.altset    = parse("    Altset = (%d+)")
  -               skip(2)
  -               t.momfreq   = parse("    Momentary freq = (%d+) Hz")
  +               while not eof() and not t.momfreq do
  +                   t.momfreq   = parse("    Momentary freq = (%d+) Hz")
  +               end
  t.feedbkfmt = parse("    Feedback Format = (.*)", true)
  end
--------------------


I could also have simply replaced skip(2) with skip(1) to just fix it on
this particular kernel, but it may be better to get rid of all the magic
integers used as arguments to skip?


+-------------------------------------------------------------------+
|Filename: jivelite.patch.zip                                       |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=15555|
+-------------------------------------------------------------------+


----------------------
"Dreamer, easy in the chair that really fits you..."
------------------------------------------------------------------------
dsdreamer's Profile: http://forums.slimdevices.com/member.php?userid=12588
View this thread: http://forums.slimdevices.com/showthread.php?t=99395

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to