Other Parts Discussed in Thread: TAS2552
Tool/software: Linux
Hallo,
we want to use TAS2552 Amplifier and Converter with an ARM based embedded Linux.
However, after configuring DTS there is a ALSA Souncard, but aplay gives an error:
aplay -v -c 1 -t raw /usr/share/sounds/alsa/Noise.wav Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono aplay: set_params:1305: Channels count non available
We configured two new Items in DTS for Kernel:
tas2552_sound: tas2552-sound { status = "okay"; compatible = "simple-audio-card"; model = "ti-tas2550"; simple-audio-card,format = "i2s"; simple-audio-card,mclk-fs = <256>; simple-audio-card,name = "P5tas2552"; audio-routing = "Ext Spk", "OUT" , "Int Mic", "IN"; simple-audio-card,cpu { sound-dai = <&i2s0>; }; simple-audio-card,codec { sound-dai = <&tas2552>; }; };
&i2c2 { status = "okay"; clock-frequency = <400000>; tas2552: tas2552@40 { compatible = "ti,tas2552"; reg = <0x40>; #sound-dai-cells = <0>; vbat-supply = <&vdda_codec>; iovdd-supply = <&vccadc_ref>; avdd-supply= <&vccadc_ref>; }; };
This is an excerpt of messages during boot of the Board:
.. [ 0.189809] Advanced Linux Sound Architecture Driver Initialized. ... [ 4.876924] asoc-simple-card hdmi-codec: i2s-hifi <-> ff8a0000.i2s mapping ok [ 4.888926] asoc-simple-card tas2552-sound: tas2552-amplifier <-> ff880000.i2s mapping ok ... [ 5.131152] ALSA device list: [ 5.139035] #0: HDMI-CODEC [ 5.146635] #1: P5tas2552 [ OK ] Reached target Sound Card.
To use TAS2552 as default, I created /etc/asound.conf:
# cat /etc/asound.conf pcm.!default { type hw card 1 } ctl.!default { type hw card 1 }
Accessing with Alsa-Tools:
# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: HDMICODEC [HDMI-CODEC], device 0: ff8a0000.i2s-i2s-hifi i2s-hifi-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: P5tas2552 [P5tas2552], device 0: ff880000.i2s-tas2552-amplifier tas2552-amplifier-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 # aplay -L null Discard all samples (playback) or generate zero samples (capture) sysdefault:CARD=HDMICODEC HDMI-CODEC, Default Audio Device sysdefault:CARD=P5tas2552 P5tas2552, Default Audio Device # amixer set 'Speaker Driver' 100% Simple mixer control 'Speaker Driver',0 Capabilities: pvolume pvolume-joined Playback channels: Mono Limits: Playback 0 - 31 Mono: Playback 31 [100%] [24.00dB] # amixer set 'Input selection' "Digital" Simple mixer control 'Input selection',0 Capabilities: enum Items: 'Digital' 'Analog' Item0: 'Digital' # aplay -v -c 1 -t raw /usr/share/sounds/alsa/Noise.wav Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono aplay: set_params:1305: Channels count non available
As simple-audio-card is working with HDMI, I think something wrong with configuration of TAS2552
Any hints will be greatly appreciated.
With best regards
Klaus