alsa에대한 문제입니다..

김기남의 이미지

root#modules-update
root#rc-update add alsasound boot
root#/etc/init.d/alsasound start
--------------------------------------------------------
위명령어대로 쳤습니다.. 근데.. 부팅화면때 snd_cmpci 에러가 뜨더군요...
그래서 다시 원상복귀 할려는데... 방법을 모르겠습니다.. 어떻게하면 설치하기 이전으로 할수있을까요?

환상경의 이미지

김기남 wrote:
root#modules-update
root#rc-update add alsasound boot
root#/etc/init.d/alsasound start
--------------------------------------------------------
위명령어대로 쳤습니다.. 근데.. 부팅화면때 snd_cmpci 에러가 뜨더군요...
그래서 다시 원상복귀 할려는데... 방법을 모르겠습니다.. 어떻게하면 설치하기 이전으로 할수있을까요?

음 젠투유저홈에도 똑같은 질문이 있던데 혹시 기남님께서 올리신건가? ^^;;
답변은 저기서 보시면 add가 있듯이 지울때는 del로 바꿔주시면 되구요
start로 시작시켰으니 stop으로 정지가 가능하죠 ^^;;

부팅시 자동 실행 중지
#rc-update del alsasound boot

alsasound 정지
#/etc/init.d/alsasound stop

입니다. ^^;;

==================================================================
정체된 일상.... 계기를 만들어야 하는데........
BLOG : http://khmirage.tistory.com/

김기남의 이미지

근데.. 부팅하면때
ALSA device list:
No soundcards found.
라고 뜨던데여... 무슨 문제가 있나요?

랜덤여신의 이미지

김기남 wrote:
근데.. 부팅하면때
ALSA device list:
No soundcards found.
라고 뜨던데여... 무슨 문제가 있나요?

커널 2.6 을 사용하신다면... 기본 설정에서 ALSA 드라이버가 내장되어 있으니... 상관 없으실 테고... 혹시 커널 2.4 이신가요?
그렇다면 emerge alsa-driver 해보세요...

http://www.gentoo.org/doc/en/alsa-guide.xml

요 문서도 참고하시구요... (이미 보셨을라나?)

김기남의 이미지

커널 2.6에서 alsa사운드 잡고나서 alsa-utils 깔고나서 alsamixer
누르면 alsamixer: function snd_ctl_open failed for default: No such file or directory 요런 메세지가 뜨더군요..

codebank의 이미지

Sound를 잡을때
Sequencer support
OSS Mixer API
OSS PCM API
OSS Sequencer API
를 모듈이나 커널 포함형태로 잡아 놓으셔야합니다.
해당되는 메시지는 API호출 부분에서 걸린 부분 같네요.
alsa-utils를 설치했으니 alsa-header나 alsa-libs는 자동설치되었을 것이니
윗부분만 설정해주면 될것 같네요.

------------------------------
좋은 하루 되세요.

김기남의 이미지

Sequencer support <-----------모듈로 잡음
OSS Mixer API <----------------모듈
OSS PCM API<------------------모듈
OSS Sequencer API<------------*
잡혔져 있네여...
아참 soundsupport와 alsa도 모듈로 잡았네여..

김기남의 이미지

또 alsa사운드때문에 글을 쓰게 되었습니다.
Module Size Used by
snd_pcm_oss 49192 0
nls_utf8 1792 1
snd_mixer_oss 17920 4 snd_pcm_oss
snd_seq_oss 34048 0
snd_seq_midi_event 6272 1 snd_seq_oss
snd_seq 50832 4 snd_seq_oss,snd_seq_midi_event
snd_cmipci 29060 1
snd_opl3_lib 9472 1 snd_cmipci
snd_hwdep 7556 1 snd_opl3_lib
snd_mpu401_uart 6528 1 snd_cmipci
nls_cp949 148864 1
vfat 12288 1
fat 39968 1 vfat
snd_usb_audio 62944 2
snd_pcm 86024 3 snd_pcm_oss,snd_cmipci,snd_usb_audio
snd_timer 21764 3 snd_seq,snd_opl3_lib,snd_pcm
snd_page_alloc 7816 1 snd_pcm
snd_usb_lib 11392 1 snd_usb_audio
snd_rawmidi 20388 2 snd_mpu401_uart,snd_usb_lib
snd_seq_device 6920 4 snd_seq_oss,snd_seq,snd_opl3_lib,snd_rawmidi
snd 48996 14
snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_cmipci,snd_opl3_lib,snd_hwdep,snd_mpu401_uart,snd_usb_audio,snd_pcm,snd_timer,snd_usb_lib,snd_rawmidi,snd_seq_device
----------------------------------------------------------------------------------------------------------------
0 [U0x55d0x9000 ]: USB-Audio - USB Device 0x55d:0x9000
USB Device 0x55d:0x9000 at usb-0000:00:07.2-1.2, full speed
1 [CMI8738MC6 ]: CMI8738-MC6 - C-Media PCI CMI8738-MC6
C-Media PCI CMI8738-MC6 (model 55) at 0xe000, irq 5

----------------------------------------------------------------------------------------------------------------
첫번째 사운드 모듈은 제대로 연결이 되었나요??
두번째 사운드가 두개 잡히네여.... 사실 사운드는 하나인데여...
세번째 지금 사운드 자체가 안나옵니다. 무슨문제일까요?
그리고 마지막줄에 /etc/modules.d/alsa 텍스트 파일올리겠습니다
# Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.4 2004/11/16 01:31:22
eradicator Exp $

# ALSA portion
alias char-major-116 snd
options snd snd_major=116 snd_cards_limit=1
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
## ALSA portion
##alias snd-card-0 snd-cmipci
alias snd-card-1 snd-cmipci
## OSS/Free portion
## alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
##
post-install snd-cmipci /sbin/modprobe snd-pcm-oss
post-install snd-cmipci /sbin/modprobe snd-mixer-oss
post-install snd-cmipci /sbin/modprobe snd-seq-oss

# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
## OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
--------------------------------------------------------------------------------------------------------
어디를고쳐야 사운드가 날까요?? 그리고 부팅때 snd:Unknown parameter 'snd-major'이라고 뜨네여...
송효진님과 비롯하여 젠투유저들에 귀찮게 해드려서 죄송합니다...

codebank의 이미지

첫번째 사운드 모듈은 제대로 연결이 되었나요??
글쎄요. 제가 모듈로 사용하질 않아서 잘모르겠네요. 이건 다른분에게 부탁하시는게
좋겠습니다.

두번째 사운드가 두개 잡히네여.... 사실 사운드는 하나인데여...
두개가 맞습니다. 현재 USB에 연결되어있는 장치중에 하나가 사운드기능을 가지고
있기때문에 2개가 잡히는 겁니다.

세번째 지금 사운드 자체가 안나옵니다. 무슨문제일까요?
글을 너무 많은곳에 분산시켜 질문하셔서 정확하게 무엇이 문제인지는 확실치가
않습니다.
사운드가 안나온다면 USB쪽 사운드로 출력되는지 확인해 보셔야할겁니다.
즉, USB에 아무것도(마우스가 USB라면 꼽아도 상관없지만요.) 꼽지 않은 상태에서
확인을 해보는게 좋을겁니다.

그리고 마지막줄에 /etc/modules.d/alsa 텍스트 파일올리겠습니다
제가 볼때 이 파일은 alsa-drive를 설치해서 생성된것이 아닌가 생각됩니다.
즉, 이 파일 자체를 다른곳에 임시 저장을 해놓고 테스트를 해보세요.

P.S. : 김기남씨는 현재 여러 게시물에서 동일한 주제로 글을 써오고 계셨습니다.
그런데 현재 상태가 어떤지에 대한 글은 1~2개 더군요. 이글을 올리실 때에도
이전에 설치된 alsa-drive를 어떻게 처리했는지에 대한 언급도 없고 다른글을
보면 kernel을 새로 설치하신것 같은데 그때 사운드는 어떻게 처리했는지도
언급이 없습니다.
즉, 정보가 혼재되어있고 조언을 하고자 하지만 현재 상태가 어떤식으로 돌아가는지를
알 수가 없어서 도움을 드리기가 어렵다는점 이해해 주시기 바랍니다.

------------------------------
좋은 하루 되세요.

익명 사용자의 이미지

그러면.. alsamixer말고 다른걸루 광출력 가능한가요??

codebank의 이미지

김기.남 wrote:
그러면.. alsamixer말고 다른걸루 광출력 가능한가요??

mixer는 말그대로 볼륨의 조절을 하는 프로그램입니다.
사운드카드에 포함(또는 연결)되어있는 장비들의 볼륨을 조절하는 기능을합니다.
광출력은 사운드카드에서 하기때문에 alsamixer로 광출력을 하는게 아니라 광출력의
소리를 조절하는 겁니다.
저번에 다른 게시물에서 썼던기억이 나지만 mixer는 여러개가 존재합니다.
gentoo를 사용하신다고 하셨는데 /usr/portage/media-sound 디렉토리에서
다양한 mixer들을 볼 수가 있을 겁니다.
어떤분이 aumix를 권하는것을 볼 수 있는데...

http://usr.gentoo.or.kr/forum/read.php?table=tip&no=675&page=2&o[sc]=c&o[ss]=mixer&o[st]=a&o[at]=s&o[sct]=s&o[stt]=s

자신에 맞는 mixer를 찾아보세요.
관건은 ALSA를 사용하면 부팅이후 모든 소리가 0가 된다는겁니다.
물론 amixer로 저장을하고 rc-update로 부팅시에 원상복귀됩니다.
광출력은 사용할 기회가 없어서 못봤지만 mixer에서 Control하는 부분이
있다면 그값을 이용해서 소리를 키워보시면 될겁니다.

------------------------------
좋은 하루 되세요.

김기남의 이미지

aumix로 했지만 광출력을 담당하는 부분이 없네여... 그래서 다시
alsa-utils를깔고 nano -w /etc/modules.d/alsa해서
편집하고 modules-update 한다음에 rc-update add alsasound boot하고 부팅했습니다. 그런데 딱 이부분만 에러를 내더군요...
Restoring Mixer Levels........
No mixer config in /etc/asound.state, you have to unmute your card [!!]
여기까지 읽어주셔서 감사합니다..

김기남의 이미지

Digital I/O
-----------

The CM8x38 provides the excellent SPDIF capability with very chip price (yes, that's the reason I bought the card :)
CM8x38(칩셋)들은 뛰어난 SPDIF출력을 저렴한 가격에 제공해 준다.(물론, 그것이 내가 이 카드를 구입한 이유이다. ^^)

The SPDIF playback and capture are done via the third PCM device(hw:0,2).
Usually this is assigned to the PCM device "spdif".
The available rates are 44100 and 48000 Hz.
For playback with aplay, you can run like below:
SPDIF 재생과 캡춰는 세번째 PCM장치를 통해 완료된다.(hw:0,2).
대개 이것은 PCM장치 "spdif"에 할당된다.
가능한 샘플레이트는 44100과 48000Hz이다.
재생과 적용을 위해서는 아래와 같이 하면 된다.

% aplay -Dhw:0,2 foo.wav
혹은
% aplay -Dspdif foo.wav

24bit format is also supported experimentally.
24비트 포맷은 실험적으로(완벽한 상태 아님) 지원된다.

The playback and capture over SPDIF use normal DAC and ADC,
respectively, so you cannot playback both analog and digital streams
simultaneously.
SPDIF에서의 재생과 캡춰는 보통 각각 DAC, ADC를 사용한다.
그러므로 아날로그와 디지털 신호를 동시에 재생할 수 없다.

To enable SPDIF output, you need to turn on "IEC958 Output Switch"
control via mixer or alsactl. Then you'll see the red light on from
the card so you know that's working obviously :)
The SPDIF input is always enabled, so you can hear SPDIF input data
from line-out with "IEC958 In Monitor" switch at any time (see
below).
SPDIF아웃을 동작하도록 하기 위해서는, 믹서나 alsactl(?)을 통해서 "IEC958 Output Switch"컨트롤을 켜야한다.
그리고나서, 카드에서 빨간 불빛을 통해 제대로 작동하는지 알 수 있을 것이다.
SPDIF입력은 항상 동작하기 때문에, "IEC958 In Monitor"스위치를 켜서
SPDIF입력 데이터를 라인아웃 단을 통해서 들을 수 있다.

You can play via SPDIF even with the first device (hw:0,0),
but SPDIF is enabled only when the proper format (S16LE), sample rate
(441100 or 48000) and channels (2) are used. Otherwise it's turned
off. (Also don't forget to turn on "IEC958 Output Switch", too.)
첫번째 장치(hw:0,0)에서도 SPDIF를 통해 재생 가능하지만,
SPDIF는 적절한 포맷(S16LE), 샘플레이트(44100 혹은 48000)와 채널(2)일 때만 가능하다.
그렇지 않으면 그것은 꺼진다.
(물론, "IEC958 Output Switch"를 켜는 것도 잊지 말아야 한다.)

Additionally there are relevant control switches:
추가로 관련된 컨트롤 스위치들이 있다.

"IEC958 Mix Analog" -
Mix analog PCM playback and FM-OPL/3 streams and output through SPDIF.
This switch appears only on old chip models (CM8738 033 and 037).
Note: without this control you can output PCM to SPDIF. This is "mixing" of streams, so e.g. it's not for AC3 output
(see the next section).
아날로그 PCM재생과 FM-OPL.3신호와 출력을 SPDIF를 통해 믹스함.
이 스위치는 구형 칩셋모델에만 나타난다.(CM8738 033 and 037)
주의: 이 컨트롤 없이는, PCM을 SPDIF로 출력할 수 있다. 이것은 신호의 '믹싱'이다. 그래서 AC3출력을 위한 것은 아니다.
(다음 섹션을 볼 것.)

"IEC958 In Select" - Select SPDIF input, the internal CD-in (false) and the external input (true).
SPDIF입력, 내부 CD-in(False)과 외부입력(True)을 선택.

"IEC958 Loop" - SPDIF input data is loop back into SPDIF output (aka bypass)
SPDIF 입력 데이터를 SPDIF출력으로 돌림.(바이패스로 알려져 있음)

"IEC958 Copyright" - Set the copyright bit.
카피라이트 비트를 설정(무슨뜻인지...)

"IEC958 5V" - Select 0.5V (coax) or 5V (optical) interface.
On some cards this doesn't work and you need to change the configuration with hardware dip-switch.
0.5V(코엑시얼)와 5V(광) 인터페이스를 선택.
어떤 카드에서는, 이 기능이 동작하지 않으며, 하드웨어의 딥스위치를 이용해 설정을 바꿔야 함.

"IEC958 In Monitor" - SPDIF input is routed to DAC.
SPDIF입력을 DAC로 연결함.

"IEC958 In Phase Inverse" - Set SPDIF input format as inverse.
[FIXME: this doesn't work on all chips..]
SPDIF입력 포맷을 역으로 바꿈.
(이것은 모든 칩셋에서 작동하지 않음.)

"IEC958 In Valid" - Set input validity flag detection.
입력 유효성 세팅(번역 정확하지 않음.)

Note: When "PCM Playback Switch" is on, you'll hear the digital output stream through analog line-out.
주의: "PCM Playback Switch"가 켜져있을 때는, 아날로그 라인아웃단을 통해 디지털출력신호를 듣게 될 것이다.

SOOYOUNG KIM
Marketing & Sales

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.