Re: (OM2008.8-update) (audio/GSM) alsamixer names

2008-09-16 Thread Ian
Disclamer: I'm not a kernel hacker... yet.

Just poking around I'd say look in the kernel sources under
/sound/soc/codecs/wm8753.c

Happy Hacking,
-Ian

On Tue, Sep 16, 2008 at 11:55 AM, Vasco Névoa [EMAIL PROTECTED] wrote:
 Hi.

 Some callers have been complaining my GSM microphone level is low, so
 I've been reading the threads about echo cancellation and alsa state
 files, but every time I walk into alsamixer I get lost.

 I'd like to suggest different names for the Alsa controls, because quite
 frankly I cannot relate to the ones I see in alsamixer. But first I'd
 like to ask you guys if you feel the same need as me. Do you feel
 comfortable with the present alsa channel names, or would you like them
 to be clearer?
 I think that these names are confusing and sometimes even misleading.
 They should be closer to the user... like for example, from (1) we know
 that the Voice interface is connected to the bluetooth interface; why
 not call it bluetooth?? The same goes for PCM; I know everybody
 knows that PCM means Pulse Code Modulated and that can only come from
 the CPU, but can't we make life easier on ourselves and call it CPU or
 SoC or System or something more obvious that says this is Linux's sound
 card? The Mic1 and Mic2 could be called HeadMic and BuiltInMic or
 something.

 This would make it clearer for everyone messing with these settings, and
 so would help accelerate the troubleshooting of this complex system.

 As to the more obscure controls, like the MUXers and the intermediate
 routing volume levels, I'd like them to be less distracting and more
 accurate; they are used for several things, so they should not be named
 for external objects; how about calling them their wolfson datasheet
 names, like LMSEL?...  this way we wouldn't need to constantly try to
 decode the meaning of each of these things, we'd just open up the
 picture (1) and everybody would know precisely what is being talked
 about...

 Basically, I'm trying to propose a naming scheme that separates
 high-level stuff (like plain Headphones and Microphone volume) from
 low-level stuff  (like routing in the mixers). This would allow us
 newbies to play in alsamixer without fear of breaking some obscure
 routing that may later come back to bite us in the ear.

 Does anyone know where the alsa channel names are defined (which file)?

 Oh, and I think I see a bug: the channel names Headphone and Speaker
 are exchanged, as far as I can see. Phone call volume is controlled via
 Speaker and SoC music play is controlled via Headphone; Isn't this
 supposed to be the other way around? Please confirm/deny.

 (1): http://wiki.openmoko.org/wiki/Neo_1973_audio_subsystem#ALSA_Channels

 Vasco Névoa.

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community




-- 
On the day *I* go to work for Microsoft, faint oinking sounds will be
heard from far overhead, the moon will not merely turn blue but
develop polkadots, and hell will freeze over so solid the brimstone
will go superconductive.
 -- Erik Raymond, 2005
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: (OM2008.8-update) (audio/GSM) alsamixer names

2008-09-16 Thread Daniel Hedblom
Hi,

If someone could just write up their knowledge about the various mixer
items in alsa i think that would help a lot. I have been fiddling with
alsa for days on end but its a real maze. For example it would speed
up development of better defaults if people would post their working
state files.

//danielh

2008/9/16 Vasco Névoa [EMAIL PROTECTED]:
 Hi.

 Some callers have been complaining my GSM microphone level is low, so
 I've been reading the threads about echo cancellation and alsa state
 files, but every time I walk into alsamixer I get lost.

 I'd like to suggest different names for the Alsa controls, because quite
 frankly I cannot relate to the ones I see in alsamixer. But first I'd
 like to ask you guys if you feel the same need as me. Do you feel
 comfortable with the present alsa channel names, or would you like them
 to be clearer?
 I think that these names are confusing and sometimes even misleading.
 They should be closer to the user... like for example, from (1) we know
 that the Voice interface is connected to the bluetooth interface; why
 not call it bluetooth?? The same goes for PCM; I know everybody
 knows that PCM means Pulse Code Modulated and that can only come from
 the CPU, but can't we make life easier on ourselves and call it CPU or
 SoC or System or something more obvious that says this is Linux's sound
 card? The Mic1 and Mic2 could be called HeadMic and BuiltInMic or
 something.

 This would make it clearer for everyone messing with these settings, and
 so would help accelerate the troubleshooting of this complex system.

 As to the more obscure controls, like the MUXers and the intermediate
 routing volume levels, I'd like them to be less distracting and more
 accurate; they are used for several things, so they should not be named
 for external objects; how about calling them their wolfson datasheet
 names, like LMSEL?...  this way we wouldn't need to constantly try to
 decode the meaning of each of these things, we'd just open up the
 picture (1) and everybody would know precisely what is being talked
 about...

 Basically, I'm trying to propose a naming scheme that separates
 high-level stuff (like plain Headphones and Microphone volume) from
 low-level stuff  (like routing in the mixers). This would allow us
 newbies to play in alsamixer without fear of breaking some obscure
 routing that may later come back to bite us in the ear.

 Does anyone know where the alsa channel names are defined (which file)?

 Oh, and I think I see a bug: the channel names Headphone and Speaker
 are exchanged, as far as I can see. Phone call volume is controlled via
 Speaker and SoC music play is controlled via Headphone; Isn't this
 supposed to be the other way around? Please confirm/deny.

 (1): http://wiki.openmoko.org/wiki/Neo_1973_audio_subsystem#ALSA_Channels

 Vasco Névoa.

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


(OM2008.8-update) (audio/GSM) alsamixer names

2008-09-16 Thread haduong
 I'd like to suggest different names for the Alsa controls, because quite
 frankly I cannot relate to the ones I see in alsamixer. But first I'd
 like to ask you guys if you feel the same need as me. Do you feel
 comfortable with the present alsa channel names, or would you like them
 to be clearer?

That would be a great deed. The present alsa channel names stink so much
that only the bravest of the brave dare to get close to that subsystem.
That goes a long way to explain why so far we still do not have the
automagical configuration we all would like. Even on my desktop box, by
the way, I had to rewire it to my stereo using the analog jack output
because I lost the configuration for the coax digital.

Minh

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: (OM2008.8-update) (audio/GSM) alsamixer names

2008-09-16 Thread Al Johnson
On Tuesday 16 September 2008, Ian wrote:
 Disclamer: I'm not a kernel hacker... yet.

 Just poking around I'd say look in the kernel sources under
 /sound/soc/codecs/wm8753.c

And this is why it has conusing names. The names come from the alsa driver, 
and the alsa driver is for the generic wm8753 so the names are following the 
usage on the Wolfson datasheet rather than the way they've been used in the 
Freerunner.

An alternative approach would be to patch alsamixer to use a set of alternate 
display names from a config file. This way the kernel driver remains useful 
to anyone using the audio chip, and the names can reflect the usage on a 
particular device.

more inline below...

 On Tue, Sep 16, 2008 at 11:55 AM, Vasco Névoa [EMAIL PROTECTED] wrote:
  Hi.
 
  Some callers have been complaining my GSM microphone level is low, so
  I've been reading the threads about echo cancellation and alsa state
  files, but every time I walk into alsamixer I get lost.
 
  I'd like to suggest different names for the Alsa controls, because quite
  frankly I cannot relate to the ones I see in alsamixer. But first I'd
  like to ask you guys if you feel the same need as me. Do you feel
  comfortable with the present alsa channel names, or would you like them
  to be clearer?

  I think that these names are confusing and sometimes even misleading.
  They should be closer to the user... like for example, from (1) we know
  that the Voice interface is connected to the bluetooth interface; why
  not call it bluetooth?? The same goes for PCM; I know everybody
  knows that PCM means Pulse Code Modulated and that can only come from
  the CPU, but can't we make life easier on ourselves and call it CPU or
  SoC or System or something more obvious that says this is Linux's sound
  card? The Mic1 and Mic2 could be called HeadMic and BuiltInMic or
  something.
 
  This would make it clearer for everyone messing with these settings, and
  so would help accelerate the troubleshooting of this complex system.
 
  As to the more obscure controls, like the MUXers and the intermediate
  routing volume levels, I'd like them to be less distracting and more
  accurate; they are used for several things, so they should not be named
  for external objects; how about calling them their wolfson datasheet
  names, like LMSEL?...  this way we wouldn't need to constantly try to
  decode the meaning of each of these things, we'd just open up the
  picture (1) and everybody would know precisely what is being talked
  about...
 
  Basically, I'm trying to propose a naming scheme that separates
  high-level stuff (like plain Headphones and Microphone volume) from
  low-level stuff  (like routing in the mixers). This would allow us
  newbies to play in alsamixer without fear of breaking some obscure
  routing that may later come back to bite us in the ear.

From a usability point of view I agree. See alternative proposal at the top 
about where to do the renaming. Coming up with a set of alternate names is a 
good start on its own as it will make a handy lookup table.

  Does anyone know where the alsa channel names are defined (which file)?
 
  Oh, and I think I see a bug: the channel names Headphone and Speaker
  are exchanged, as far as I can see. Phone call volume is controlled via
  Speaker and SoC music play is controlled via Headphone; Isn't this
  supposed to be the other way around? Please confirm/deny.

They're right from the Wolfson perspective. As used in the Freerunner it's a 
little more complicated as physically there is a speaker, a headset and a 
handset earpiece. The earpiece is connected to the wolfson 'speaker' output 
since this is mono. The 'headphone' stereo out goes to an amp chip which 
drives the physical headset and speaker. If the amp has the speaker enabled 
(I don't remember the alsa control for this) the headset will have sound in 
one ear only. If you're electrically minded you can see this in the 
schematics:

http://downloads.openmoko.org/schematics/GTA02/Schematics_Freerunner-GTA02_A5-A7cumulative_public_RC0.pdf

How best to present this as control names is another matter ;-)

  (1): http://wiki.openmoko.org/wiki/Neo_1973_audio_subsystem#ALSA_Channels
 
  Vasco Névoa.



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: (OM2008.8-update) (audio/GSM) alsamixer names

2008-09-16 Thread Matt
[EMAIL PROTECTED] wrote:
 I'd like to suggest different names for the Alsa controls, because quite
 frankly I cannot relate to the ones I see in alsamixer. But first I'd
 like to ask you guys if you feel the same need as me. Do you feel
 comfortable with the present alsa channel names, or would you like them
 to be clearer?
 

 That would be a great deed. The present alsa channel names stink so much
 that only the bravest of the brave dare to get close to that subsystem.
 That goes a long way to explain why so far we still do not have the
 automagical configuration we all would like. Even on my desktop box, by
 the way, I had to rewire it to my stereo using the analog jack output
 because I lost the configuration for the coax digital.

 Minh


   
Renaming them might be useful, but understanding their effects would be 
better.



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: (OM2008.8-update) (audio/GSM) alsamixer names

2008-09-16 Thread Joel Newkirk
On Tue, 16 Sep 2008 22:01:51 +1000, Matt [EMAIL PROTECTED]
wrote:
 [EMAIL PROTECTED] wrote:
 I'd like to suggest different names for the Alsa controls, because
 quite
 frankly I cannot relate to the ones I see in alsamixer. But first I'd
 like to ask you guys if you feel the same need as me. Do you feel
 comfortable with the present alsa channel names, or would you like them
 to be clearer?


 That would be a great deed. The present alsa channel names stink so much
 that only the bravest of the brave dare to get close to that subsystem.
 That goes a long way to explain why so far we still do not have the
 automagical configuration we all would like. Even on my desktop box, by
 the way, I had to rewire it to my stereo using the analog jack output
 because I lost the configuration for the coax digital.

 Minh



 Renaming them might be useful, but understanding their effects would be
 better.

Agreed.  Particularly in the context of writing a GUI interface that would
simply let us set levels for speaker/mic for each use-case. :)  That
doesn't require changing anything in ALSA, just abstracting to more
real-world-meaningful names. (EG 'speaker volume - ringer' or 'handset mic
level - in-call')

j



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: (OM2008.8-update) (audio/GSM) alsamixer names

2008-09-16 Thread Al Johnson
On Tuesday 16 September 2008, Joel Newkirk wrote:
 On Tue, 16 Sep 2008 22:01:51 +1000, Matt [EMAIL PROTECTED]

 wrote:
  [EMAIL PROTECTED] wrote:
  I'd like to suggest different names for the Alsa controls, because
 
  quite
 
  frankly I cannot relate to the ones I see in alsamixer. But first I'd
  like to ask you guys if you feel the same need as me. Do you feel
  comfortable with the present alsa channel names, or would you like them
  to be clearer?
 
  That would be a great deed. The present alsa channel names stink so much
  that only the bravest of the brave dare to get close to that subsystem.
  That goes a long way to explain why so far we still do not have the
  automagical configuration we all would like. Even on my desktop box, by
  the way, I had to rewire it to my stereo using the analog jack output
  because I lost the configuration for the coax digital.
 
  Minh
 
  Renaming them might be useful, but understanding their effects would be
  better.

 Agreed.  Particularly in the context of writing a GUI interface that would
 simply let us set levels for speaker/mic for each use-case. :)  That
 doesn't require changing anything in ALSA, just abstracting to more
 real-world-meaningful names. (EG 'speaker volume - ringer' or 'handset mic
 level - in-call')

The fun bit being that many of these simple real-world actions can involve 
multiple alsa controls - at least 3 for mic for example. Not hard, but more 
than a simple renaming exercise.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


(OM2008.8-update) (audio/GSM) alsamixer names

2008-09-15 Thread Vasco Névoa
Hi.

Some callers have been complaining my GSM microphone level is low, so 
I've been reading the threads about echo cancellation and alsa state 
files, but every time I walk into alsamixer I get lost.

I'd like to suggest different names for the Alsa controls, because quite 
frankly I cannot relate to the ones I see in alsamixer. But first I'd 
like to ask you guys if you feel the same need as me. Do you feel 
comfortable with the present alsa channel names, or would you like them 
to be clearer?
I think that these names are confusing and sometimes even misleading. 
They should be closer to the user... like for example, from (1) we know 
that the Voice interface is connected to the bluetooth interface; why 
not call it bluetooth?? The same goes for PCM; I know everybody 
knows that PCM means Pulse Code Modulated and that can only come from 
the CPU, but can't we make life easier on ourselves and call it CPU or 
SoC or System or something more obvious that says this is Linux's sound 
card? The Mic1 and Mic2 could be called HeadMic and BuiltInMic or 
something.

This would make it clearer for everyone messing with these settings, and 
so would help accelerate the troubleshooting of this complex system.

As to the more obscure controls, like the MUXers and the intermediate 
routing volume levels, I'd like them to be less distracting and more 
accurate; they are used for several things, so they should not be named 
for external objects; how about calling them their wolfson datasheet 
names, like LMSEL?...  this way we wouldn't need to constantly try to 
decode the meaning of each of these things, we'd just open up the 
picture (1) and everybody would know precisely what is being talked 
about...

Basically, I'm trying to propose a naming scheme that separates 
high-level stuff (like plain Headphones and Microphone volume) from 
low-level stuff  (like routing in the mixers). This would allow us 
newbies to play in alsamixer without fear of breaking some obscure 
routing that may later come back to bite us in the ear.

Does anyone know where the alsa channel names are defined (which file)?

Oh, and I think I see a bug: the channel names Headphone and Speaker 
are exchanged, as far as I can see. Phone call volume is controlled via 
Speaker and SoC music play is controlled via Headphone; Isn't this 
supposed to be the other way around? Please confirm/deny.

(1): http://wiki.openmoko.org/wiki/Neo_1973_audio_subsystem#ALSA_Channels

Vasco Névoa.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community