Thanks for your advise. I understood that HDMI audio level is fixed and I have to change other volume, like "PCM".
At first, I checked alsa devices by amixer. Result was following,
$ amixer
Simple mixer control 'hdmi audio format Function',0
Capabilities: enum
Items: 'null' 'pcm' 'AC3' 'MPEG1' 'MP3' 'MPEG2' 'AAC' 'DTS' 'ATRAC' 'ONE_BIT_AUDIO' 'DOLBY_DIGITAL_PLUS' 'DTS_HD' 'MAT' 'WMAPRO'
Item0: 'pcm'
Then tried to check alsamixer. Displayed "sndhdmi" device and press F6: select sound card.
$ alsamixer
Card: sndhdmi
Chip:
Item: hdmi audio format Function [pcm]
Sound Card
- (default)
0 audiocodec
1 sndhdmi
enter device name...
I put below command, but result was error. It means "default" has no "Lineout volume control", right?
$ amixer set 'Lineout volume control' 1-
amixer: Unable to find simple control 'Lineout volume control',0
I expect I have to change line out volume on sound card 0:audiocodec.
How do you think and how to change it?
I'm studying ALSA sample code now...