Bugzilla – Bug 8701
Need a Line In plugin to allow users to use the line in when connected
Last modified: 2008-12-15 11:58:55 UTC
This should be an updated version of Digital Input that shows Line In on boom as a home menu choice when there's something plugged into the jack. Otherwise, it should be hidden. (Noah: We'll need a "line in" icon as well. A stylized 3.5mm plug is probably a good graphic to use.) This plugin should also work on SN.
digital input plugin doesn't currently work at all with SN, correct? So, if line-in needs to work through SN, we'd need to write it not as a plugin (perhaps under settings->audio?) What is the slimproto command for enabling line in?
oh, also need the status info to know when something is plugged in.
Digital Input works fine on SN. :)
cc'ing Caleb so he can talk about some of the features he has in mind. Andy asks if the slimproto command has been implemented yet, and Felix says 'no' so that needs to get done first, then assign to Michael for the plugin.
I lied. ;) The slimproto command 'audp' (same as for TR) is already in place to set 'line in' as source in Boom. Use '1' to turn 'line in' on and '0' to turn it off. What's still missing in firmware is a notification for SC when something gets plugged into the jack so line in can be selected automatically.
Felix - what do you want me to do?
Michael - Well, you could start implementing the 'Line In' plugin, similar to TRs 'Digital Input' plugin.
What is the deadline for the Line-In icon artwork?
Very soon. We're trying to finish this up in the next few days.
Would by Friday, the 25th work?
Boom firmware now reports the status of 'line in' and 'line out' (i.e. whether something is plugged into the jack) in the slimproto STAT event. I've reused the 'voltage' field (which was only used for TR so far). 0 : nothing is plugged into either jack 1 : something is plugged into 'line in' jack 2 : something is plugged into 'line out' jack 3 : something is plugged into both jacks This change is in Boom fw 19.
Felix - could you please provide ten lines of code to show me how you do the switching?
I think there are two parts to it, some is handled in the Digital Input plugin, which sets a special URL and the second part, the switching actually is done in Tranporter.pm setDigitalInput(). I suggest making a copy of DigitalInput plugin, reducing it to one input and using whatever is needed from Transporter.pm and copy it into Boom.pm. And to answer your question about how to switch, something like that: $client->sendFrame('audp', \pack('C', $input)); where $input is '1' to turn it on and '0' to turn it off.
I'll try to put a prototype together today for Michael to iron out.
Working LineIn prototype added to SC boom branch. Quickly tested on SC, Boom and SBC. At a minimum the correct icon needs to be added, maybe more.
change 22118 - simplified web and player UI for Line In
Created attachment 3684 [details] Icon proposal: 1 Attached artwork needs to be approved.
Works for me! Approved.
change 22141 - update icon. Feel free to re-open if the plugin doesn't what you wanted it to do.
Verified with SC 7.2 - 22900
This bug has been fixed in the latest release of SqueezeCenter! Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already. If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.