600D Audio Controls?

Started by testaevisual, June 17, 2012, 06:16:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

miyake

1%
Oh,no! Why you didn't share this video.....

I just understood convination of routing. may be , I will try to write it soon.

1%

You were the inspiration. I made it in the morning after I saw the other vid.

miyake

ah, I see.

Now I including mic type in "input select" part. But it's really mysterious.

intLR: working int/ext both on LR channel
LintRext: working fine
extLR:  stop working.....

I need more time to finding best combinations.

It's just quick report. BTW, It's monday today, I need to go work .

scrax and 1%:
If you have a time,  please find best combination for those inputs. I will push current my codes.

miyake

Current scrax's repo is supported audio_reg_dump_600D on "dont click me".
Also added E1 and E3 entry in .h

So you can find combination with differential from working dump and problem dump.

scrax

I've started to check the numbers in audioki.h and found something.
probably you already saw it too but i've added some numbers with commento on when they are set from canon.

I'm showing always E1 E3 E5 and E7
E1 and E5 change  when external mic is connected (E5 also after play or entering audio menu)
E1 is 01 with internal mic, 02 with external
E5 is 03 when "resetted", in rec or canon menu 06 with internal mic, 07 with external mic
E3 is always 0
E7 is always 1
I'm using ML2.3 for photography with:
EOS 600DML | EOS 400Dplus | EOS 5D MLbeta5- EF 100mm f/2.8 USM Macro  - EF-S 17-85mm f4-5.6 IS USM - EF 70-200mm f/4 L USM - 580EXII - OsX, PS, LR, RawTherapee, LightZone -no video experience-

scrax

Quote from: 1% on July 29, 2012, 08:28:48 PM
but never int L/R while external is plugged in.
maybe found out why, I've added to set E1 to 2 when intLR mic is selected, and it works until rec starts, then it will be reverted to 1 probably by canon, but changing input and going back to int LR will reset it to 2 and record from internal mic with external connected.
So E1 need to be set after rec start depending on what mic input is selected in ML menu.
I can do it only manually so far.
I found how to force it but not yet usable:

static void
enable_recording(
                 int                    mode
                 )
{
switch( mode )
{
        case 0:
            // Movie recording stopped;  (fallthrough)
override_audio_setting(1);
case 2:
            // Movie recording started
            give_semaphore( gain.sem );
            override_audio_setting(1);
/*
//this force rec whith internal mic always also with external mic plugged
audio_ic_write(ML_NODOC_E1 | ML_NODOC_E1_REC_INT); // 02 test
audio_ic_write(ML_NODOC_E5 | ML_NODOC_E5_REC_INT); // 06 test
*/
           break;
        case 1:
            // Movie recording about to start?
            break;
        default:
            // Uh?
            break;
}
}
I'm using ML2.3 for photography with:
EOS 600DML | EOS 400Dplus | EOS 5D MLbeta5- EF 100mm f/2.8 USM Macro  - EF-S 17-85mm f4-5.6 IS USM - EF 70-200mm f/4 L USM - 580EXII - OsX, PS, LR, RawTherapee, LightZone -no video experience-

miyake

Oh great.
Now I understand E1 and E5 meaning.
E5= L-ch input source.
E1= R-ch input source.

So now
LRint:    both int/ext input
Lint Rext:  working perfect with current my repo.(previously not working when move from LRint)
LRext: not working....no sound.

I will try to test more. 

One more thing , It's time to change E1 and E5 names .


Anyway, my english may be poor So please solve if you find strange english.

miyake


coutts

I emailed LAPIS, they are going to send me a datasheet for the ML26121A :)

Waiting for a reply but I will keep you updated.

miyake

-startup override OK!
-start recording override OK!
-stop recording override get hang , need more code  for it.(now override disabled)

May be functions a improved now!!!!!!  Sounds good.

https://bitbucket.org/miyake_t/magic-lantern-for-600d-miyake/changeset/540ba53676cbe026347a64cf6fd718b52e7ad013

Michael Zöller

Really great work you are doing here!  :D
neoluxx.de
EOS 5D Mark II | EOS 600D | EF 24-70mm f/2.8 | Tascam DR-40

scrax

Quote from: miyake on July 30, 2012, 01:49:28 PM
Oh great.
Now I understand E1 and E5 meaning.
E5= L-ch input source.
E1= R-ch input source.

I'm not sure about this, to me looks like E1 is for internal (02) or external (01) mic in
E5 from canon is set only to 6 or 7 we instead use it to 2 or 3 don't know why

I've not yet understood well mictypes so far, will try to make more test...
I'm using ML2.3 for photography with:
EOS 600DML | EOS 400Dplus | EOS 5D MLbeta5- EF 100mm f/2.8 USM Macro  - EF-S 17-85mm f4-5.6 IS USM - EF 70-200mm f/4 L USM - 580EXII - OsX, PS, LR, RawTherapee, LightZone -no video experience-

funkysound

Quote from: Michael Zöller on July 30, 2012, 04:30:20 PM
Really great work you are doing here! ????????????
Yeah, I´m very impressed too - just great work so far and I can´t wait to use the final solution!!! You´ll get it done!
I will donate again the moment I have it in may hands - or better in my 600d  :)
EOS 600d, Tamron 17-50mm 2,8 with stab., Tamron 70-300mm, Canon 50mm 1:1,8, Sigma 10-20mm 4-5,6, Sigma 30mm 1,4,  EOS M with 18-55mm, 22mm and EF adapter, tons of more glases incl. FD/FL, EOS 70D, Canon 18-135mm STM

scrax

about e5, i'm not sure if it is like this, someone can confirm it?

02 duplicate L to R
03 only L
04 only R
----
06 duplicate internal mic?
07 duplicate external mic?

and about e1, looks similar to e9
Quote#define ML_MIC_SELECT              0xe900 /* Mic IF Control */
#define ML_MIC_SELECT_INTMIC   0x0001 /* Internal Mic */
#define ML_MIC_SELECT_EXTMIC   0x0002 /* External Mic*/
#define ML_MIC_SELECT_BOTH   0x0003 /* Both Mics */
01 external input
02 internal input

maybe there is a 03 value here also, how e9 were found?
I'm using ML2.3 for photography with:
EOS 600DML | EOS 400Dplus | EOS 5D MLbeta5- EF 100mm f/2.8 USM Macro  - EF-S 17-85mm f4-5.6 IS USM - EF 70-200mm f/4 L USM - 580EXII - OsX, PS, LR, RawTherapee, LightZone -no video experience-

miyake

I guess those are mixer control.

E5,E1 is collect L,R different. E9 is collect LR together.
Actually, normal firmware is using only using E9.

and
E5 2,3,4 is confirmed me. But I dont know how to use it.Not good for us.
6,7 is input select for L-ch. I confirmed.

I think current
So first you need to check my code and those inputs are working fine.(But volume menu is not fine....changing automatically)

Anyway, you don't believe current define entry.


scrax

that makes more sense to me now. But I see canon firmware is also using e7, isn't?
(I have the scrolling problem sometimes too in volume control.)

will update fork soon.
I'm using ML2.3 for photography with:
EOS 600DML | EOS 400Dplus | EOS 5D MLbeta5- EF 100mm f/2.8 USM Macro  - EF-S 17-85mm f4-5.6 IS USM - EF 70-200mm f/4 L USM - 580EXII - OsX, PS, LR, RawTherapee, LightZone -no video experience-

miyake

Current input select is not smart , but working code is important. It's good for our first step.
So we need find more smart combinations for it.
But it's not so bad for using now.

scrolling issue:
comment out this.
        .edit_mode = EM_MANY_VALUES,


scrax

Quote from: miyake on July 30, 2012, 06:28:38 PM
scrolling issue:
comment out this.
        .edit_mode = EM_MANY_VALUES,


Is not enought I have them still if increased after pressing Q
I'm using ML2.3 for photography with:
EOS 600DML | EOS 400Dplus | EOS 5D MLbeta5- EF 100mm f/2.8 USM Macro  - EF-S 17-85mm f4-5.6 IS USM - EF 70-200mm f/4 L USM - 580EXII - OsX, PS, LR, RawTherapee, LightZone -no video experience-

miyake

miyake's monology

Recently, I spend a lot of time for this coding. and my magiclantern friends are living in Europa and US areas.
So start sleeping is late.  Current my life like a everyday jet lag.

I want to more real time communicate with yours.  If I have a time and money, I want to trip Europa. Because I never go to Europa areas.

If I go to europa, Does someone take me to a great place or great restaurant?(lol


Already 1:30am in Japan. I need goto bed.
Good night.

P.S. I'm sorry for this off-topic.

Michael Zöller

miyake, if you come to Germany, you are free to stay at my home for a night or two, we'd even have enough space for you and your wife.
neoluxx.de
EOS 5D Mark II | EOS 600D | EF 24-70mm f/2.8 | Tascam DR-40

1%

QuoteCurrent my life like a everyday jet lag.

2 years going so far. Always jet lag.


Maybe other E registers that never change are the same thing for output? I have a full week of work so I've been waiting to see what you guys come up with. :)

coutts

Success! I asked kindly and was awarded a full spec data sheet for the ML26121A. Register map included :) hope this helps!

http://db.tt/lYtYhsBf

miyake

@Michael Zöller
Thank you for your offer ;D

@coutts
ohhhhhh.Geat!!
I will check it

miyake

I just clearly understanding registers. Time will tell correct codes.
But I think it's really huge functions. What functions does users needed ?
For example we can control Equalizer now!


scrax:
E1 and E9 is correct register for R,L ch input mixer control (lllllllol
I will check and solve audioki.h first.

a1ex

IMO, the most important features are:

* Analog gain (most important, and separate L/R control is GREAT) - of course, with AGC off
* Digital gain set to zero (for cleanest audio)
* Input source (internal mic, external mic, or combinations like Left internal, right external, differential)
* Audio monitoring (when you plug the A/V cable, keep audio signal on the A/V jack, but keep the image on main display)

Sure, it may be nice to have equalizer presets, but as long as you have the cleanest raw signal (without digital gain / filters), you can apply any filter in post.

Big up for Coutts - the datasheet is very well written.