Skip to contentSkip to conversation

OSS MIxer API(OSS Emulation mode)

DISCUSSION aditya shankar 2 participants 9 messages Nov 6, 2006 – Nov 22, 2006

lore
Share & tools
lore
#0 lore raw

Hi Group,

I'm integrating OSS mixer API support on a custom ARM based platform (custom audio chip as well). I would like to know if I can add my own IOCTL commands in OSS mixer API and then route them to my implementation. (This is required because there are some features in audio chip and I can't find a mapping to the existing OSS mixer IOCTL commands).
Also I've observed that some standard IOCTLs such as REC_MASK etc are not getting properly routed to the corresponding kcontrols.

Pl let me know any thoughts on this.

Thanks in advance
Aditya

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#1 lore raw

At Mon, 6 Nov 2006 18:21:40 +0530,

Quoted 10 lines · aditya shankar

Hi Group,

I'm integrating OSS mixer API support on a custom ARM based platform (custom audio chip as well). I would like to know if I can add my own IOCTL commands in OSS mixer API and then route them to my implementation. (This is required because there are some features in audio chip and I can't find a mapping to the existing OSS mixer IOCTL commands).
Also I've observed that some standard IOCTLs such as REC_MASK etc are not getting properly routed to the corresponding kcontrols.

How did you check this exactly? Note that REC_MASK (RECSRC) doesn't always correspond to an ALSA mixer element as 1:1 but often to a group of elements.

Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#2 lore raw

Takashi-san,

We tried invoking an IOCTL on /dev/mixer with command SOUND_MIXER_WRITE_RECSRC. It did not seem to invoke the put function of the kcontrol for selecting recording source (it's "Master Input Capture").

Also, can I add my own IOCTL commands and route control to their implementations?

Thanks in advance
Aditya

Quoted 17 lines · Takashi Iwai

At Mon, 6 Nov 2006 18:21:40 +0530,

Quoted 4 lines · aditya shankar

Hi Group,

I'm integrating OSS mixer API support on a custom ARM based platform

(custom audio

Quoted 1 line

chip as well). I would like to know if I can add my own IOCTL commands

in OSS mixer

Quoted 1 line

API and then route them to my implementation. (This is required because

there are some

Quoted 1 line

features in audio chip and I can't find a mapping to the existing OSS

mixer IOCTL

Quoted 2 lines

commands).
Also I've observed that some standard IOCTLs such as REC_MASK etc are

not getting

Quoted 8 lines
Quoted 1 line

properly routed to the corresponding kcontrols.

How did you check this exactly? Note that REC_MASK (RECSRC) doesn't always correspond to an ALSA mixer element as 1:1 but often to a group of elements.

Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#3 lore raw

At Thu, 9 Nov 2006 15:22:34 +0530,

Quoted 6 lines · aditya shankar

Takashi-san,

We tried invoking an IOCTL on /dev/mixer with command SOUND_MIXER_WRITE_RECSRC. It did not seem to invoke the put function of the kcontrol for selecting recording source (it's "Master Input Capture").

"Master Input Capture" is an uncommon name, and it won't be mapped to OSS mixer elements unless you specify via proc file.

Quoted 1 line

Also, can I add my own IOCTL commands and route control to their implementations?

No for oss mixer API. Yes for ALSA native API using hwdep device.

Takashi

Quoted 23 lines

Thanks in advance
Aditya

On 11/7/06, Takashi Iwai <[email protected]> wrote:

At Mon, 6 Nov 2006 18:21:40 +0530,
aditya shankar wrote:
>
> Hi Group,
>
> I'm integrating OSS mixer API support on a custom ARM based platform (custom audio
> chip as well). I would like to know if I can add my own IOCTL commands in OSS mixer
> API and then route them to my implementation. (This is required because there are some
> features in audio chip and I can't find a mapping to the existing OSS mixer IOCTL
> commands).
> Also I've observed that some standard IOCTLs such as REC_MASK etc are not getting
> properly routed to the corresponding kcontrols.

Quoted 7 lines

How did you check this exactly? Note that REC_MASK (RECSRC) doesn't always correspond to an ALSA mixer element as 1:1 but often to a group of elements.

Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#4 lore raw

Takashi-san,

Thanks for the info on that.
I am trying to invoke the ioctl command SOUND_MIXER_WRITE_RECSRC . The
name or the identifier string in the kcontrol record is "Master Input Capture Route". But with this also, it's not getting mapped to the put func of the kcontrol. Is the name for the kcontrol correct or is there something additional that must be done? pls let me know..

Thanks & Regards,
Aditya

Quoted 12 lines · Takashi Iwai

At Thu, 9 Nov 2006 15:22:34 +0530,

Quoted 4 lines · aditya shankar

Takashi-san,

We tried invoking an IOCTL on /dev/mixer with command

SOUND_MIXER_WRITE_RECSRC. It did

Quoted 1 line

not seem to invoke the put function of the kcontrol for selecting

recording source

Quoted 1 line

(it's "Master Input Capture").

Quoted 8 lines

"Master Input Capture" is an uncommon name, and it won't be mapped to OSS mixer elements unless you specify via proc file.

Quoted 1 line

Also, can I add my own IOCTL commands and route control to their

implementations?

No for oss mixer API. Yes for ALSA native API using hwdep device.

Takashi

Quoted 11 lines

Thanks in advance
Aditya

On 11/7/06, Takashi Iwai <[email protected]> wrote:

At Mon, 6 Nov 2006 18:21:40 +0530,
aditya shankar wrote:
>
> Hi Group,
>
> I'm integrating OSS mixer API support on a custom ARM based platform

(custom

Quoted 2 lines

audio
> chip as well). I would like to know if I can add my own IOCTL

commands in OSS

Quoted 2 lines

mixer
> API and then route them to my implementation. (This is required

because there

Quoted 2 lines

are some
> features in audio chip and I can't find a mapping to the existing

OSS mixer

Quoted 3 lines

IOCTL
> commands).
> Also I've observed that some standard IOCTLs such as REC_MASK etc

are not

Quoted 10 lines

getting
> properly routed to the corresponding kcontrols.

How did you check this exactly? Note that REC_MASK (RECSRC) doesn't always correspond to an ALSA mixer element as 1:1 but often to a group of elements.

Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#5 lore raw

At Tue, 14 Nov 2006 13:16:50 +0530,

Quoted 9 lines · Aditya Shankar

Takashi-san,

Thanks for the info on that.
I am trying to invoke the ioctl command SOUND_MIXER_WRITE_RECSRC . The name or
the identifier string in the kcontrol record is "Master Input Capture Route". But with this also, it's not getting mapped to the put func of the kcontrol. Is the name for the kcontrol correct or is there something additional that must be done? pls let me know..

Right, "Master Input Capture Route" is a non-standard name and wouldn't be referred from OSS mixer emulation layer. Try "Master Capture Route", for example.

But, it'd be better that you show the all control elements, for example, via "alsactl store". The mapping of ALSA <-> OSS mixer elements is pretty complex (as you can find in core/oss/mixer_oss.c).

Takashi

-------------------------------------------------------------------------
SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now. Check out Slashdot's new job board. Browse through tons of technical jobs posted by companies looking to hire people just like you.
http://jobs.slashdot.org/

#6 lore raw

Takashi-san,

I tried giving the name as "Master Capture Route" and it got mapped to the proper put function of the kcontrol *:)*. *Thanks* for the suggestion. But I do not see any new control( for Master Capture Route ) being created when I run alsamixer. Is there any other change necessary for this?

Regards,
Aditya

Quoted 21 lines · Takashi Iwai

At Tue, 14 Nov 2006 13:16:50 +0530,

Quoted 5 lines · Aditya Shankar

Takashi-san,

Thanks for the info on that.
I am trying to invoke the ioctl command SOUND_MIXER_WRITE_RECSRC .

The name or

Quoted 1 line

the identifier string in the kcontrol record is "Master Input Capture

Route". But

Quoted 1 line

with this also, it's not getting mapped to the put func of the kcontrol.

Is the

Quoted 1 line

name for the kcontrol correct or is there something additional that must

be done? pls

Quoted 1 line

let me know..

Right, "Master Input Capture Route" is a non-standard name and wouldn't be referred from OSS mixer emulation layer. Try "Master Capture Route", for example.

Quoted 7 lines

But, it'd be better that you show the all control elements, for example, via "alsactl store". The mapping of ALSA <-> OSS mixer elements is pretty complex (as you can find in core/oss/mixer_oss.c).

Takashi

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#7 lore raw

At Wed, 15 Nov 2006 14:27:28 +0530,

Quoted 8 lines · Aditya Shankar

Takashi-san,

I tried giving the name as "Master Capture Route" and it got mapped to the proper put function of the kcontrol :). Thanks for the suggestion. But I do not see any new control( for Master Capture Route ) being created when I run alsamixer. Is there any other change necessary for this?

I guess you see "Master" in alsamixer's capture mode? What does amixer show?

Takashi

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

#8 lore raw

Yes in alsamixer window I have a control component as "Master" which is a result of a kcontrol element "Master Capture Volume". But I see no control component in alsamixer due to "Master Capture Route".

The command amixer controls shows the following corresponding to capture,

numid=6,iface=MIXER,name='Master Capture Route'
numid=5,iface=MIXER,name='Master Capture Volume'

Regards,
Aditya

Quoted 12 lines · Takashi Iwai

At Wed, 15 Nov 2006 14:27:28 +0530,

Quoted 5 lines · Aditya Shankar

Takashi-san,

I tried giving the name as "Master Capture Route" and it got mapped to

the proper put

Quoted 1 line

function of the kcontrol :). Thanks for the suggestion. But I do not

see any new

Quoted 1 line

control( for Master Capture Route ) being created when I run alsamixer.

Quoted 9 lines

Is there

Quoted 1 line

any other change necessary for this?

I guess you see "Master" in alsamixer's capture mode? What does amixer show?

Takashi

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel