alsa-state: Support all atmel at91 boards
PATCH v2 1/1 alsa-state: Support all atmel at91 boards
Signed-off-by Ulf Samuelsson <[email protected]>
--- recipes/alsa/alsa-state.bb | 29 ++- recipes/alsa/alsa-state/at91/asound.conf | 2 + recipes/alsa/alsa-state/at91/asound.state | 283 ++++++++++++++++++++ recipes/alsa/alsa-state/at91sam9263ek/asound.conf | 2 - recipes/alsa/alsa-state/at91sam9263ek/asound.state | 283 -------------------- recipes/alsa/alsa-state/at91sam9g45ek/asound.conf | 2 - recipes/alsa/alsa-state/at91sam9g45ek/asound.state | 283 -------------------- 7 files changed, 313 insertions(+), 571 deletions(-) create mode 100644 recipes/alsa/alsa-state/at91/asound.conf create mode 100644 recipes/alsa/alsa-state/at91/asound.state delete mode 100644 recipes/alsa/alsa-state/at91sam9263ek/asound.conf delete mode 100644 recipes/alsa/alsa-state/at91sam9263ek/asound.state delete mode 100644 recipes/alsa/alsa-state/at91sam9g45ek/asound.conf delete mode 100644 recipes/alsa/alsa-state/at91sam9g45ek/asound.state
recipes/alsa/alsa-state.bb +28 -1
@@ -5,9 +5,16 @@ # Filename: alsa-state.bb DESCRIPTION = "Alsa Scenario Files" +LICENSE = "MIT"# Copyright Matthias Hentges <[email protected]> (c) 2007 +# License: MIT (see http://www.opensource.org/licenses/mit-license.php +# for a copy of the license) +# +# Filename: alsa-state.bb + +DESCRIPTION = "Alsa Scenario Files" LICENSE = "MIT" PV = "0.2.0" -PR = "r11" +PR = "r12" SRC_URI = "\ file://asound.conf \
@@ -19,6 +26,25 @@ SRC_URI_append_a780 = "file://gsmhandset.state \ file://gsmheadset.state \ file://stereoout.state" +ALSA_STATE_AT91 = "\ + file://at91/asound.conf \ + file://at91/asound.state \ + file://alsa-state \ + " + +SRC_URI_at91sam9260ek = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9261ek = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9263ek = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9g10ek = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9g20ek = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9g20ek_2mmc = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9g45ek = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9g45ekes = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9m10ekes = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9m10g45ek = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9rlek = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9xeek = " $(ALSA_STATE_AT91} " + inherit update-rc.d INITSCRIPT_NAME = "alsa-state"
@@ -59,3 +85,4 @@ pkg_postinst_${PN}() { update-rc.d ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS} fi } +
recipes/alsa/alsa-state/at91/asound.conf new file +2 -0
@@ -0,0 +1,2 @@ +pcm.!default { type hw card 0 } +ctl.!default { type hw card 0 }
recipes/alsa/alsa-state/at91/asound.state new file +283 -0
283 lines not on this page · raw message
recipes/alsa/alsa-state/at91sam9263ek/asound.conf deleted +0 -2
@@ -1,2 +0,0 @@ -pcm.!default { type hw card 0 } -ctl.!default { type hw card 0 }
recipes/alsa/alsa-state/at91sam9263ek/asound.state deleted +0 -283
283 lines not on this page · raw message
recipes/alsa/alsa-state/at91sam9g45ek/asound.conf deleted +0 -2
@@ -1,2 +0,0 @@ -pcm.!default { type hw card 0 } -ctl.!default { type hw card 0 }
recipes/alsa/alsa-state/at91sam9g45ek/asound.state deleted +0 -283
283 lines not on this page · raw message
Signature · 1 line
1.6.0.2
I will resubmit the alsa-state patch using
SOC_CLASS="at91" in conf/machine/at91*
and
SRC_URI_at91 = "\ file://at91/asound.conf \ file://at91/asound.state \ file://alsa-state \ "
in alsa-state.bb
Signature · 4 lines
Best Regards Ulf Samuelsson Ulf Samuelsson skrev:
Quoted 70 lines
Signed-off-by Ulf Samuelsson <[email protected]>--- recipes/alsa/alsa-state.bb | 29 ++- recipes/alsa/alsa-state/at91/asound.conf | 2 + recipes/alsa/alsa-state/at91/asound.state | 283 ++++++++++++++++++++ recipes/alsa/alsa-state/at91sam9263ek/asound.conf | 2 - recipes/alsa/alsa-state/at91sam9263ek/asound.state | 283 -------------------- recipes/alsa/alsa-state/at91sam9g45ek/asound.conf | 2 - recipes/alsa/alsa-state/at91sam9g45ek/asound.state | 283 -------------------- 7 files changed, 313 insertions(+), 571 deletions(-) create mode 100644 recipes/alsa/alsa-state/at91/asound.conf create mode 100644 recipes/alsa/alsa-state/at91/asound.state delete mode 100644 recipes/alsa/alsa-state/at91sam9263ek/asound.conf delete mode 100644 recipes/alsa/alsa-state/at91sam9263ek/asound.state delete mode 100644 recipes/alsa/alsa-state/at91sam9g45ek/asound.conf delete mode 100644 recipes/alsa/alsa-state/at91sam9g45ek/asound.staterecipes/alsa/alsa-state.bb +28
-1@@ -5,9 +5,16 @@ # Filename: alsa-state.bb DESCRIPTION = "Alsa Scenario Files" +LICENSE = "MIT"# Copyright Matthias Hentges <[email protected]> (c) 2007 +# License: MIT (see http://www.opensource.org/licenses/mit-license.php +# for a copy of the license) +# +# Filename: alsa-state.bb + +DESCRIPTION = "Alsa Scenario Files" LICENSE = "MIT" PV = "0.2.0" -PR = "r11" +PR = "r12" SRC_URI = "\ file://asound.conf \@@ -19,6 +26,25 @@ SRC_URI_append_a780 = "file://gsmhandset.state \ file://gsmheadset.state \ file://stereoout.state" +ALSA_STATE_AT91 = "\ + file://at91/asound.conf \ + file://at91/asound.state \ + file://alsa-state \ + " + +SRC_URI_at91sam9260ek = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9261ek = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9263ek = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9g10ek = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9g20ek = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9g20ek_2mmc = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9g45ek = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9g45ekes = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9m10ekes = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9m10g45ek = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9rlek = " $(ALSA_STATE_AT91} " +SRC_URI_at91sam9xeek = " $(ALSA_STATE_AT91} " + inherit update-rc.d INITSCRIPT_NAME = "alsa-state"@@ -59,3 +85,4 @@ pkg_postinst_${PN}() { update-rc.d ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS} fi } +
Le 15/03/2010 10:35, Ulf Samuelsson :
Quoted 6 lines
I will resubmit the alsa-state patch using
SOC_CLASS="at91" in conf/machine/at91*
and
Quoted 7 lines
SRC_URI_at91 = "\ file://at91/asound.conf \ file://at91/asound.state \ file://alsa-state \ "in alsa-state.bb
Ulf,
I do not understand: all at91 machines do *not* have the same alsa states *at all* !! So why create a common asound.state file? I understand for asound.conf but not for the other file.
Best regards,
Signature · 1 line
Nicolas Ferre