Toon speaker

Forum about Toon hardware, both versions 1 and 2 of Toon

Moderators: marcelr, TheHogNL, Toonz

cygnusx
Starting Member
Starting Member
Posts: 48
Joined: Tue Apr 14, 2015 10:12 am

Toon speaker

Post by cygnusx »

Apperently the Toon hadware has a speaker connected according to the hardware manufacturer.

Anyone tried to get the speaker working? Would be cool to be able to make some sounds sometimes...
https://prodrive-technologies.com/produ ... net-things
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon speaker

Post by marcelr »

There's no kernel support for the speaker in toon, at least not in the kernels provided by Quby. I will try and build some modules to get the speaker working. Will need a kernel replacement for that as well, because Quby have switched on module versioning.
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon speaker

Post by marcelr »

I had a look at the speaker today. This is the device:
https://www.amec-gmbh.de/images/amec-me ... -1224B.pdf
It's the SFM-1224B 03. It's not exactly a high-end surround sound system. Probably capable of making a buzzing sound (alarms etc) but no real sound reproduction. With a little luck, it's wired to the processor's sound mixer.
I built a kernel with sound support, now I'm looking into some simple software to actually make some noise...
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon speaker

Post by Toonz »

Cool..... even if it is just a beep. Alarm functions could be handy....or connect it to Domoticz stuff.... This low level kernel/driver stuff is out of my league but happy to look into QML apps later on ;-)
member of the Toon Software Collective
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon speaker

Post by marcelr »

Cool..... even if it is just a beep.
I'm afraid so, there won't be a lot to choose from.
Just installed a modified kernel and a bunch of modules for the sound subsystem, and ALSA utilities. This is what I get from amixer:

Code: Select all

toon:~/kernel_sound# amixer
Simple mixer control 'Mic Bias Voltage',0
  Capabilities: enum
  Items: 'off' '2V' '2.5V' 'AVDD'
  Item0: '2.5V'
Simple mixer control 'Beep Cos(x) LSB',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 255
  Mono: 227 [89%]
Simple mixer control 'Beep Cos(x) MSB',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 255
  Mono: 126 [49%]
Simple mixer control 'Beep Length LSB',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 255
  Mono: 238 [93%]
Simple mixer control 'Beep Length MID',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 255
  Mono: 0 [0%]
Simple mixer control 'Beep Length MSB',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 255
  Mono: 0 [0%]
Simple mixer control 'Beep Sin(x) LSB',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 255
  Mono: 216 [85%]
Simple mixer control 'Beep Sin(x) MSB',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 255
  Mono: 16 [6%]
Simple mixer control 'Beep generator Enable/Disable',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Beep generator Volume Control (0=-61dbdB, 6',0
  Capabilities: volume penum
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 63
  Front Left: 63 [100%]
  Front Right: 63 [100%]
Simple mixer control ' MIC1LM CM Setting',0
  Capabilities: enum
  Items: 'floating' 'connected to CM internally'
  Item0: 'floating'
Simple mixer control ' MIC1LP CM Setting',0
  Capabilities: enum
  Items: 'floating' 'connected to CM internally'
  Item0: 'floating'
Simple mixer control ' MIC1RP CM Setting',0
  Capabilities: enum
  Items: 'floating' 'connected to CM internally'
  Item0: 'floating'
Simple mixer control 'ADC Mute',0
  Capabilities: enum
  Items: 'Unmute' 'Mute'
  Item0: 'Unmute'
Simple mixer control 'ADC Processing Block Selection(0 <-> 25)',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 18
  Mono: 5 [28%]
Simple mixer control 'AGC Attack Time control',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 31
  Mono: 0 [0%]
Simple mixer control 'AGC Decay Time control',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 31
  Mono: 0 [0%]
Simple mixer control 'AGC Maximum PGA Control',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 119
  Mono: 127 [107%]
Simple mixer control 'AGC Noice bounce control',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 31
  Mono: 0 [0%]
Simple mixer control 'AGC Signal bounce control',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 15
  Mono: 0 [0%]
Simple mixer control 'AGC Target Level Control',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 7 [100%]
Simple mixer control 'Audio Gain Control (AGC)',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'CM selection for ADC IP M-terminal',0
  Capabilities: enum
  Items: 'off' '10k' '20k' '40k'
  Item0: 'off'
Simple mixer control 'DAC',0
  Capabilities: pvolume penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 140
  Mono:
  Front Left: Playback 127 [91%]
  Front Right: Playback 127 [91%]
Simple mixer control 'DAC Processing Block Selection(0 <-> 25)',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 25
  Mono: 1 [4%]
Simple mixer control 'DAC Volume soft stepping',0
  Capabilities: enum
  Items: '1 step/sample' '1 step/2 sample' 'disabled'
  Item0: '1 step/sample'
Simple mixer control 'DAC volume Control register/pin',0
  Capabilities: enum
  Items: 'control register' 'pin'
  Item0: 'control register'
Simple mixer control 'DAC volume Extra control',0
  Capabilities: enum
  Items: 'L&R Ind Vol' 'LVol=RVol' 'RVol=LVol'
  Item0: 'L&R Ind Vol'
Simple mixer control 'DRC Enable/Disable',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
  Item1: 'Enabled'
Simple mixer control 'DRC Hysteresis value (0=0db, 3=3db)',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 3
  Mono: 3 [100%]
Simple mixer control 'DRC Threshold value (0=-3db, 7=-24db)',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 3 [43%]
Simple mixer control 'DRC attack rate',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 15
  Mono: 0 [0%]
Simple mixer control 'DRC decay rate',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 15
  Mono: 0 [0%]
Simple mixer control 'DRC hold time',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 15
  Mono: 7 [47%]
Simple mixer control 'HP Analog Gain Volume(0=0dB, 127=-78.3dB)',0
  Capabilities: volume penum
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 127
  Front Left: 127 [100%]
  Front Right: 127 [100%]
Simple mixer control 'HP Output common-mode voltage control',0
  Capabilities: enum
  Items: '1.35V' '5V' '1.65V' '1.8V'
  Item0: '1.35V'
Simple mixer control 'HP driver Volume(0=0dB, 9=9dB)',0
  Capabilities: volume penum
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 9
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'HP driver mute',0
  Capabilities: pswitch penum
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'Headset detection Enable/Disable',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Left DAC Mute',0
  Capabilities: enum
  Items: 'Unmute' 'Mute'
  Item0: 'Unmute'
Simple mixer control 'Left DAC input selection',0
  Capabilities: enum
  Items: 'off' 'left data' 'right data' '(left + right)/2'
  Item0: 'left data'
Simple mixer control 'Left Output Mixer DAC_L To HPL Driver switc',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Left Output Mixer DAC_L To Left Mixer Amp s',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Left Output Mixer MIC1LP To Left Mixer Amp ',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Left Output Mixer MIC1RP To Left Mixer Amp ',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'MIC PGA Control',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 119
  Mono: 0 [0%]
Simple mixer control 'MIC PGA Setting',0
  Capabilities: enum
  Items: 'Gain controlled by D0-D6' '0db Gain'
  Item0: '0db Gain'
Simple mixer control 'MIC1LM selection for ADC I/P M-terminal',0
  Capabilities: enum
  Items: 'off' '10k' '20k' '40k'
  Item0: 'off'
Simple mixer control 'MIC1LM selection for ADC I/P P-terminal',0
  Capabilities: enum
  Items: 'off' '10k' '20k' '40k'
  Item0: 'off'
Simple mixer control 'MIC1LP selection for ADC I/P P-terminal',0
  Capabilities: enum
  Items: 'off' '10k' '20k' '40k'
  Item0: 'off'
Simple mixer control 'MIC1RP selection for ADC I/P P-terminal',0
  Capabilities: enum
  Items: 'off' '10k' '20k' '40k'
  Item0: 'off'
Simple mixer control 'Program Registers',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 65535
  Mono: 0 [0%]
Simple mixer control 'Right DAC Mute',0
  Capabilities: enum
  Items: 'Unmute' 'Mute'
  Item0: 'Unmute'
Simple mixer control 'Right DAC input selection',0
  Capabilities: enum
  Items: 'off' 'right data' 'left data' '(left+right)/2'
  Item0: 'right data'
Simple mixer control 'Right Output Mixer DAC_R To HPR Driver swit',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Right Output Mixer DAC_R To Right Mixer Amp',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Right Output Mixer MIC1RP To Right Mixer Am',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'SP Analog Gain Volume(0=0dB, 127=-78.3dB)',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 127
  Mono: 127 [100%]
Simple mixer control 'SP Class-D driver Volume(0=6dB, 4=24dB)',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 0
  Mono: 0 [0%]
Simple mixer control 'SP driver mute',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Throughput of 7-bit vol ADC for pin',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 0 [0%]
toon:~/kernel_sound# 
An insane amount of options for just a beeping device.
(for reference, this is what my laptop can do: full stereo, record, playback, synthesize, the whole shebang:)

Code: Select all

[marcelr@laptop46 ~]$ amixer
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 22917 [35%] [on]
  Front Right: Playback 22917 [35%] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 65536
  Front Left: Capture 11310 [17%] [on]
  Front Right: Capture 11310 [17%] [on]
[marcelr@laptop46 ~]$ 
Anyway, will try to make some sense of it and get the beeps going :-).
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon speaker

Post by marcelr »

Hmmm ...

It's a slow process.

I recompiled the kernel + modules to contain the snd-soc-imx driver. Built all the ALSA tools, installed the lot (again), the whole shebang boots (using the newest zwave and wifi drivers from Quby ;-) ), the hardware is detected properly, and the ALSA tools detect the correct sound interface:

Code: Select all

toon:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: cpuimxaudio [cpuimx-audio], device 0: aic3100 aic3111-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Now I need to find a configuration script for the sound hardware.

Will keep trying, but don't hold your breath ...
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon speaker

Post by Toonz »

Cool,

we also need some sort of an interface layer between QML/Javascript and the hardware (out of my league).
While you are that, could you possibly look into including QtWebsockets in that build?
This will allow realtime communication with QML on Toon from the outside (e.g. Domoticz or others).
Absolutely not sure if that is even possible at all but I thought it's worth the ask.

Regardz,

Toonz
member of the Toon Software Collective
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon speaker

Post by marcelr »

I don't know (yet).

The qt build on toon allows plugins, so if these subsystems can be built as plugins, it should be possible.
The whole qt build in openembedded is quite a challenge in itself (a sheer infinite number of libraries and other parts). It's on my list, just hasn't made it to the top, yet ;-)
cygnusx
Starting Member
Starting Member
Posts: 48
Joined: Tue Apr 14, 2015 10:12 am

Re: Toon speaker

Post by cygnusx »

So how about just getting it to play via aplay? Just as proof of concept? Can we get it to play sound/beeps at all?
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon speaker

Post by marcelr »

Nope, tried that.
Templar
Member
Member
Posts: 178
Joined: Fri Mar 18, 2011 8:49 pm
Location: Netherlands

Re: Toon speaker

Post by Templar »

marcelr wrote:
Cool..... even if it is just a beep.
I'm afraid so, there won't be a lot to choose from.
Just installed a modified kernel and a bunch of modules for the sound subsystem, and ALSA utilities. This is what I get from amixer:

Code: Select all

toon:~/kernel_sound# amixer
Simple mixer control 'Mic Bias Voltage',0
  Capabilities: enum
  Items: 'off' '2V' '2.5V' 'AVDD'
  Item0: '2.5V'
Simple mixer control 'Beep Cos(x) LSB',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 255
  Mono: 227 [89%]
Simple mixer control 'Beep Cos(x) MSB',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 255
  Mono: 126 [49%]
Simple mixer control 'Beep Length LSB',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 255
  Mono: 238 [93%]
Simple mixer control 'Beep Length MID',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 255
  Mono: 0 [0%]
Simple mixer control 'Beep Length MSB',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 255
  Mono: 0 [0%]
Simple mixer control 'Beep Sin(x) LSB',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 255
  Mono: 216 [85%]
Simple mixer control 'Beep Sin(x) MSB',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 255
  Mono: 16 [6%]
Simple mixer control 'Beep generator Enable/Disable',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Beep generator Volume Control (0=-61dbdB, 6',0
  Capabilities: volume penum
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 63
  Front Left: 63 [100%]
  Front Right: 63 [100%]
Simple mixer control ' MIC1LM CM Setting',0
  Capabilities: enum
  Items: 'floating' 'connected to CM internally'
  Item0: 'floating'
Simple mixer control ' MIC1LP CM Setting',0
  Capabilities: enum
  Items: 'floating' 'connected to CM internally'
  Item0: 'floating'
Simple mixer control ' MIC1RP CM Setting',0
  Capabilities: enum
  Items: 'floating' 'connected to CM internally'
  Item0: 'floating'
Simple mixer control 'ADC Mute',0
  Capabilities: enum
  Items: 'Unmute' 'Mute'
  Item0: 'Unmute'
Simple mixer control 'ADC Processing Block Selection(0 <-> 25)',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 18
  Mono: 5 [28%]
Simple mixer control 'AGC Attack Time control',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 31
  Mono: 0 [0%]
Simple mixer control 'AGC Decay Time control',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 31
  Mono: 0 [0%]
Simple mixer control 'AGC Maximum PGA Control',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 119
  Mono: 127 [107%]
Simple mixer control 'AGC Noice bounce control',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 31
  Mono: 0 [0%]
Simple mixer control 'AGC Signal bounce control',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 15
  Mono: 0 [0%]
Simple mixer control 'AGC Target Level Control',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 7 [100%]
Simple mixer control 'Audio Gain Control (AGC)',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'CM selection for ADC IP M-terminal',0
  Capabilities: enum
  Items: 'off' '10k' '20k' '40k'
  Item0: 'off'
Simple mixer control 'DAC',0
  Capabilities: pvolume penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 140
  Mono:
  Front Left: Playback 127 [91%]
  Front Right: Playback 127 [91%]
Simple mixer control 'DAC Processing Block Selection(0 <-> 25)',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 25
  Mono: 1 [4%]
Simple mixer control 'DAC Volume soft stepping',0
  Capabilities: enum
  Items: '1 step/sample' '1 step/2 sample' 'disabled'
  Item0: '1 step/sample'
Simple mixer control 'DAC volume Control register/pin',0
  Capabilities: enum
  Items: 'control register' 'pin'
  Item0: 'control register'
Simple mixer control 'DAC volume Extra control',0
  Capabilities: enum
  Items: 'L&R Ind Vol' 'LVol=RVol' 'RVol=LVol'
  Item0: 'L&R Ind Vol'
Simple mixer control 'DRC Enable/Disable',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
  Item1: 'Enabled'
Simple mixer control 'DRC Hysteresis value (0=0db, 3=3db)',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 3
  Mono: 3 [100%]
Simple mixer control 'DRC Threshold value (0=-3db, 7=-24db)',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 3 [43%]
Simple mixer control 'DRC attack rate',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 15
  Mono: 0 [0%]
Simple mixer control 'DRC decay rate',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 15
  Mono: 0 [0%]
Simple mixer control 'DRC hold time',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 15
  Mono: 7 [47%]
Simple mixer control 'HP Analog Gain Volume(0=0dB, 127=-78.3dB)',0
  Capabilities: volume penum
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 127
  Front Left: 127 [100%]
  Front Right: 127 [100%]
Simple mixer control 'HP Output common-mode voltage control',0
  Capabilities: enum
  Items: '1.35V' '5V' '1.65V' '1.8V'
  Item0: '1.35V'
Simple mixer control 'HP driver Volume(0=0dB, 9=9dB)',0
  Capabilities: volume penum
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 9
  Front Left: 0 [0%]
  Front Right: 0 [0%]
Simple mixer control 'HP driver mute',0
  Capabilities: pswitch penum
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'Headset detection Enable/Disable',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Left DAC Mute',0
  Capabilities: enum
  Items: 'Unmute' 'Mute'
  Item0: 'Unmute'
Simple mixer control 'Left DAC input selection',0
  Capabilities: enum
  Items: 'off' 'left data' 'right data' '(left + right)/2'
  Item0: 'left data'
Simple mixer control 'Left Output Mixer DAC_L To HPL Driver switc',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Left Output Mixer DAC_L To Left Mixer Amp s',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Left Output Mixer MIC1LP To Left Mixer Amp ',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Left Output Mixer MIC1RP To Left Mixer Amp ',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'MIC PGA Control',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 119
  Mono: 0 [0%]
Simple mixer control 'MIC PGA Setting',0
  Capabilities: enum
  Items: 'Gain controlled by D0-D6' '0db Gain'
  Item0: '0db Gain'
Simple mixer control 'MIC1LM selection for ADC I/P M-terminal',0
  Capabilities: enum
  Items: 'off' '10k' '20k' '40k'
  Item0: 'off'
Simple mixer control 'MIC1LM selection for ADC I/P P-terminal',0
  Capabilities: enum
  Items: 'off' '10k' '20k' '40k'
  Item0: 'off'
Simple mixer control 'MIC1LP selection for ADC I/P P-terminal',0
  Capabilities: enum
  Items: 'off' '10k' '20k' '40k'
  Item0: 'off'
Simple mixer control 'MIC1RP selection for ADC I/P P-terminal',0
  Capabilities: enum
  Items: 'off' '10k' '20k' '40k'
  Item0: 'off'
Simple mixer control 'Program Registers',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 65535
  Mono: 0 [0%]
Simple mixer control 'Right DAC Mute',0
  Capabilities: enum
  Items: 'Unmute' 'Mute'
  Item0: 'Unmute'
Simple mixer control 'Right DAC input selection',0
  Capabilities: enum
  Items: 'off' 'right data' 'left data' '(left+right)/2'
  Item0: 'right data'
Simple mixer control 'Right Output Mixer DAC_R To HPR Driver swit',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Right Output Mixer DAC_R To Right Mixer Amp',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Right Output Mixer MIC1RP To Right Mixer Am',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'SP Analog Gain Volume(0=0dB, 127=-78.3dB)',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 127
  Mono: 127 [100%]
Simple mixer control 'SP Class-D driver Volume(0=6dB, 4=24dB)',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 0
  Mono: 0 [0%]
Simple mixer control 'SP driver mute',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Throughput of 7-bit vol ADC for pin',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 0 [0%]
toon:~/kernel_sound# 
An insane amount of options for just a beeping device.
(for reference, this is what my laptop can do: full stereo, record, playback, synthesize, the whole shebang:)

Code: Select all

[marcelr@laptop46 ~]$ amixer
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 22917 [35%] [on]
  Front Right: Playback 22917 [35%] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 65536
  Front Left: Capture 11310 [17%] [on]
  Front Right: Capture 11310 [17%] [on]
[marcelr@laptop46 ~]$ 
Anyway, will try to make some sense of it and get the beeps going :-).
Hi marcelr,

Do you really need the kernel soundsystem and ALSA modules? According to specs I found it's just a continuous buzzer, isn't it driven with a simple PWM output?

https://www.east-elec.com/sounder/sfm-1224b
multitrack-buzzer.de/wp-content/gallery ... -1224B.pdf
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon speaker

Post by marcelr »

Correct, but you will still need some software to drive it. Linux only has the sound stack (ALSA or other) to make sound, even if it's just a single beep.
Templar
Member
Member
Posts: 178
Joined: Fri Mar 18, 2011 8:49 pm
Location: Netherlands

Re: Toon speaker

Post by Templar »

marcelr wrote:Correct, but you will still need some software to drive it. Linux only has the sound stack (ALSA or other) to make sound, even if it's just a single beep.
So no use of a GPIO driver like this one: gpio-beeper: drivers/input/misc/gpio-beeper.c is used to provide a beep from an external speaker connected to a GPIO line.
kernel.org/doc/html/latest/driver-api/g ... -gpio.html
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon speaker

Post by marcelr »

Could be, but then you need to know to which GPIO line the beeper is connected. Do you?
Templar
Member
Member
Posts: 178
Joined: Fri Mar 18, 2011 8:49 pm
Location: Netherlands

Re: Toon speaker

Post by Templar »

marcelr wrote:Could be, but then you need to know to which GPIO line the beeper is connected. Do you?
Nope, but I could open the Toon and give it a try... :D
Post Reply

Return to “Toon Hardware”