64studio / plegger

PiDeck Bootlegger
http://pideck.com/
1 stars 0 forks source link

Initialise the audioinjector card on first or subsequent boots #6

Open danielhjames opened 7 years ago

danielhjames commented 7 years ago

The audioinjector.net stereo card defaults to having the Line In capture switched off.

obbardc commented 7 years ago

We could add a command to switch to Line In Capture into the plegger_recorder script before the rec command is run, as it's not unreasonable that the Line In should be the default capture source. An amixer command could be used for this.

Also, I think the AudioInjector Line In volumes are pointless settings. For now, I think we can just assume the AudioInjector card is the only card connected to the system.

danielhjames commented 7 years ago

Switching line-in capture on as part of the rec script sounds like a plan. I don't think the Mic capture is wired up on the boards we have, not much point enabling that :-)

The default capture level in alsamixer seems to be 100% and isn't affected by the position of the hardware knob. Maybe the knob is a gain control on the analogue side of the input? I'll test that.

obbardc commented 7 years ago

I don't have an audioinjector card or pi here to test the commands needed, unfortunately.

I thought the capture level in alsa mixer was just a software gain and the knobs on the audioinjector are hardware attenuators, so will not add any gain to the signal.

would be best to leave to alsamixer at 0dB and use the hardware attenuators, probably. the pots don't look very good quality, but they will probably do a fine job.

On Fri, 15 Sep 2017 at 18:29, Daniel James notifications@github.com wrote:

Switching line-in capture on as part of the rec script sounds like a plan. I don't think the Mic capture is wired up on the boards we have, not much point enabling that :-)

The default capture level in alsamixer seems to be 100% and isn't affected by the position of the hardware knob. Maybe the knob is a gain control on the analogue side of the input? I'll test that.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/64studio/plegger/issues/6#issuecomment-329846982, or mute the thread https://github.com/notifications/unsubscribe-auth/AA-11hXQV9L7Ci0Bl3k8qFNHx5Cog0uKks5sirPsgaJpZM4PU7s3 .

danielhjames commented 7 years ago

I'll check those hardware pots. I figure they should always be set to max if the meter on the DJ hardware mixer is not in the red, but I guess I'll find out how much headroom is really there.