Microphone jack in for linux

Moderators: mdrjr, odroid

Microphone jack in for linux

Unread postby EugeneKiver » Mon Feb 24, 2014 3:50 am

Is there a peripheral that adds a microphone jack to U3 that will work in linux? Or I should stick with X2 which has the one built-in?
Thank you
EugeneKiver
 
Posts: 1
Joined: Mon Feb 24, 2014 3:45 am
languages_spoken: english

Re: Microphone jack in for linux

Unread postby mdrjr » Mon Feb 24, 2014 9:42 am

The jack on U3 is capable of mono mic input.
Using a headphone like the one from Galaxy S2, S3 / S4
mdrjr
Site Admin
 
Posts: 11640
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Microphone jack in for linux

Unread postby burkhardyoo » Mon Feb 24, 2014 1:57 pm

However as of now, the mono mic doesn't work on the 3.8 kernel.
check this out: viewtopic.php?f=8&t=3614

Odroid should be fixing it soon.
burkhardyoo
 
Posts: 43
Joined: Fri Oct 11, 2013 3:28 pm
languages_spoken: English, German, Korean
ODROIDs: X2, U2

Re: Microphone jack in for linux

Unread postby odroid » Mon Feb 24, 2014 3:38 pm

We are trying to implement the input function in Kernel 3.8 now.
But it is not easy due to a very annoying side effect. If we enable the input, all the audio output doesn't work. :o
We need more time to resolve this issue. :(
User avatar
odroid
Site Admin
 
Posts: 25353
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Microphone jack in for linux

Unread postby burkhardyoo » Mon Feb 24, 2014 11:11 pm

Thank you for your hard work trying to get this working. :)

Personally, I do not need ANY kind of audio output (HDMI or 3.5mm audio output) from the Odroid U3.
I just would like to get the mono mic working. I was wondering if you can release the kernel where the input works, but the output doesn't. It would be very helpful.

Thank you!
burkhardyoo
 
Posts: 43
Joined: Fri Oct 11, 2013 3:28 pm
languages_spoken: English, German, Korean
ODROIDs: X2, U2

Re: Microphone jack in for linux

Unread postby mdrjr » Tue Feb 25, 2014 4:00 am

older images, ones with Kernel 3.0 should work.
Android should be working too.
mdrjr
Site Admin
 
Posts: 11640
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Microphone jack in for linux

Unread postby burkhardyoo » Tue Feb 25, 2014 5:03 am

Well i would much prefer the 3.8 kernel with input working, but not the output working. I know that Odroid has tested with android and it works well, however it seems though that there are some issues even with Android's HAL (viewtopic.php?f=78&t=3836)

Before I try to compile the 3.0 kernel and test it out, i would like to know.. Does the 3.0 kernel have extensive control over the sound? i.e using Alsamixer. Because on the 3.0 kernel seems like the max98090 driver has not been updated since a year. The pre-set mic setting has a very large gain and I couldn't control it.

Thanks mdrjr
burkhardyoo
 
Posts: 43
Joined: Fri Oct 11, 2013 3:28 pm
languages_spoken: English, German, Korean
ODROIDs: X2, U2

Re: Microphone jack in for linux

Unread postby mdrjr » Tue Feb 25, 2014 8:36 am

Nope it doesn't have any detailed control
mdrjr
Site Admin
 
Posts: 11640
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Microphone jack in for linux

Unread postby burkhardyoo » Tue Feb 25, 2014 9:44 am

So is it possible to release the 3.8 kernel with the input mic working, but not any output? That is perfect for me! :D

Thanks mdrjr and odroid!
burkhardyoo
 
Posts: 43
Joined: Fri Oct 11, 2013 3:28 pm
languages_spoken: English, German, Korean
ODROIDs: X2, U2

Re: Microphone jack in for linux

Unread postby odroid » Tue Feb 25, 2014 9:56 am

No...
We will fix the output issue first.
Tons of people will complain if we can't support the audio output.
User avatar
odroid
Site Admin
 
Posts: 25353
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Microphone jack in for linux

Unread postby odroid » Wed Feb 26, 2014 2:35 pm

Install Gnome Alsa mixer and adjust a couple of input configuration and the microphone seems to be working.
We tested it on our latest image(Feb-11 img) without any modification of Kernel 3.8 source code.

BTW, what Xubuntu/Linux application software is available to record the microphone input in GUI?
User avatar
odroid
Site Admin
 
Posts: 25353
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Microphone jack in for linux

Unread postby burkhardyoo » Wed Feb 26, 2014 3:11 pm

I have not tried the Feb-11 image. I will try that now.
burkhardyoo
 
Posts: 43
Joined: Fri Oct 11, 2013 3:28 pm
languages_spoken: English, German, Korean
ODROIDs: X2, U2

Re: Microphone jack in for linux

Unread postby odroid » Wed Feb 26, 2014 4:51 pm

Okay..

Here is a procedure what we did.
1. Run "PulseAudio VolumeControl"
2. In the Configuration tab, select the “Analog Stereo + Analog Mono Input”
3. Install “GNOME ALSA Mixer” via "sudo apt-get install gnome-alsamixer"
4. Ignore an error pop-up. It seems to be a permission issue of saving configuration file.
5. Check 3 items of “MIC Bias VCM Bandgap”, “MIC1 Mux”, “Left ADC Mixer MIC1” in the mixer GUI.
6. You can adjust the input gain or boost option with “ADCL”, “ADCL Boo”, ”MIC1”, “MIC1 Boo” control bar.
7. You can see the real time microphone input level in the Input Device tab of "PulseAudio VolumeControl"


Good luck!
User avatar
odroid
Site Admin
 
Posts: 25353
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Microphone jack in for linux

Unread postby burkhardyoo » Thu Feb 27, 2014 1:34 am

Thank you so much, Odroid!

Would you have any ideas why it would work on Xubuntu desktop 13.10, but not on Lubuntu 13.05 server? Maybe I will compare the xubuntu kernel config file with the lubuntu server config file.

Thanks!
burkhardyoo
 
Posts: 43
Joined: Fri Oct 11, 2013 3:28 pm
languages_spoken: English, German, Korean
ODROIDs: X2, U2

Re: Microphone jack in for linux

Unread postby odroid » Thu Feb 27, 2014 12:02 pm

I don't know which Kernel version is included in the Lubuntu 13.05 server image.
If it has the same version of Xubuntu 13.10, it should work.
User avatar
odroid
Site Admin
 
Posts: 25353
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Microphone jack in for linux

Unread postby mdrjr » Thu Feb 27, 2014 12:33 pm

Always update your kernel to the latest version :) There's a global thread for the 3.8 kernel with a nice shell script that you run and get the latest kernel :P
mdrjr
Site Admin
 
Posts: 11640
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Microphone jack in for linux

Unread postby burkhardyoo » Thu Feb 27, 2014 3:27 pm

Hello! So I tested on the Xubuntu and it works with my program! thank you! :D
So the it seems like the newest build of Xubuntu and the Lubuntu i use have the exact same kernel (3.8)

The only thing that I didn't try before was "In the Configuration tab, select the “Analog Stereo + Analog Mono Input”

It is very easy to do using the GUI on Xubuntu, however I was wondering if I can select "Analog Stereo + Analog Mono Input" via command line. I would like to try it on my Lubuntu server of mine. I can use GNOME alsamixer fine, but configuring the "Analog Stereo + Analog Mono Input" via command line is not trivial.

Thank you guys I REALLY appreciate it!
burkhardyoo
 
Posts: 43
Joined: Fri Oct 11, 2013 3:28 pm
languages_spoken: English, German, Korean
ODROIDs: X2, U2

Re: Microphone jack in for linux

Unread postby odroid » Thu Feb 27, 2014 4:31 pm

I also want to know how to configure the mixer settings in the command line.
If you find the solution, please let us know.

Good luck! ;)
User avatar
odroid
Site Admin
 
Posts: 25353
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Microphone jack in for linux

Unread postby burkhardyoo » Fri Feb 28, 2014 2:09 pm

I got it working on my lubuntu server. It wasn't the kernel, the driver or any other complicating thing. The Left ADC Mixer MIC1 simply wasn't enabled! In retrospect, it was stupidly simple. :D

Using the command line, install alsamixer and type and hit enter "alsamixer", you simply need to find Left ADC Mixer MIC1 and press "m" to enable it. Simple as that.

It sounds and works beautifully for me!

Thanks guys!
burkhardyoo
 
Posts: 43
Joined: Fri Oct 11, 2013 3:28 pm
languages_spoken: English, German, Korean
ODROIDs: X2, U2

Re: Microphone jack in for linux

Unread postby odroid » Fri Feb 28, 2014 6:45 pm

Thank you for the feed back.

BTW, after changing the alsamixer configuration, those settings are automatically loaded after rebooting?
Or should I run the alsamixer on every booting?
User avatar
odroid
Site Admin
 
Posts: 25353
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Microphone jack in for linux

Unread postby burkhardyoo » Sat Mar 01, 2014 1:05 am

It is automatically saved. No need to run it every time you reboot. :)
burkhardyoo
 
Posts: 43
Joined: Fri Oct 11, 2013 3:28 pm
languages_spoken: English, German, Korean
ODROIDs: X2, U2

Re: Microphone jack in for linux

Unread postby odroid » Sat Mar 01, 2014 9:41 am

Great! Thank you for the information.

To finalize this thread, I need one more answer.
As I mentioned in another thread, iPhone compatible headset has a different pin map from Galaxy compatible headset.
Image

Apple follows CTIA standard while Samsung, LG, Blackberry and ODROID follow the OMTP standard.
So you should use an OMTP type headset. Can you tell me the brand name or model name of your headset?


EDIT! :o :o
ODROID-XU and ODROID-U3 are following CTIA.
CTIA includes (2012 on~~)
- Apple
- HTC
- latest Nokia
- latest Samsung
- latest Sony
- most Android phones
User avatar
odroid
Site Admin
 
Posts: 25353
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Microphone jack in for linux

Unread postby burkhardyoo » Sun Mar 02, 2014 3:34 am

I used the Samsung HS130 http://amzn.to/1beKYzg.

Since I wanted to input audio from any source, I SIMPLY modified the headphone from Samsung so that I can send a signal via 3.5mm.
http://imgur.com/IOivowC

The audio is now very very clear on the client iOS and Android devices. There is no more static or white noise thanks to having control over the gain and boost.

Odroid and mdrjr are making it possible to take my project to the next stage. ;) Thanks guys!
Maybe the Odroid Magazine would be interested in knowing what I am doing with my Odroid U3. ;)

I am working on The Ubercaster, a Mobile Wifi Hotspot Audio Broadcaster. One can input audio into my Odroid U3 portable hotspot device, Client devices (iOS and Android) connect like a WiFi hotspot, the clients open up my app on their smartphones, they stream the audio in real time (currently <45-50ms total audio latency).

I have dual band wifi card so I had no problem demoing at CES 2014 without any interference. It is portable and the battery lasts about 3-4 hours. Range is about 100ft. I am trying to disrupt FM transmitter systems and revolutionize local micro-broadcasting. Sound is a stepping stone. I want Ubercaster to be a bigger thing. I want it to broadcast video and web content soon. I just think of the future a lot and it is clear that frequency is getting crowded, people want more bandwidth, faster information. However I think in public spaces, there are too many bit redundancies. If a lot people in a public area is interested in knowing more about Real Madrid game, it is redundant for their devices to access information from the same server a thousand miles away in Texas or California. TVs in the public are in essence a form of local broadcast. People within 50 feet see the TV. However I don't like how it works, at least in the US ;). So my goal is local distribution of content. Someone sees in the airport TV from CNN with a breaking news, they should be have at least access to the sound, eventually HD video streaming to their phone at a local distance and also additional web content relating to that news that is constantly aggregating on the Ubercaster device for distribution. It is more efficient, people get information quicker and it is seamlessly.

Pretty cool, right? ;)
burkhardyoo
 
Posts: 43
Joined: Fri Oct 11, 2013 3:28 pm
languages_spoken: English, German, Korean
ODROIDs: X2, U2

Re: Microphone jack in for linux

Unread postby odroid » Sun Mar 02, 2014 10:08 am

Very exciting project! :o
Please consider to make an article for the Magazine.

I've locked this thread and changed to sticky.
I can unlock it if you want. Just PM me.
User avatar
odroid
Site Admin
 
Posts: 25353
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID


Return to Hardware and peripherals

Who is online

Users browsing this forum: No registered users and 1 guest